summaryrefslogtreecommitdiff
path: root/src/network.h
blob: e3644599e5c77a4563c71fa34df9ad69d887323f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef NEURAL_NETWORK_H
#define NEURAL_NETWORK_H

#include "neural/node.h"

#include <bu/string.h>

namespace Neural
{
	template<typename sigtype>
	class Network
	{
	public:
		Network() :
			pRoot( 0 )
		{
		}

		virtual ~Network()
		{
			delete pRoot;
		}

		static Network<sigtype> *fromStr( const Bu::String &sCode )
		{
			Network<sigtype> *pNet = new Network<sigtype>();
			return pNet;
		}

	private:
		Node<sigtype> *pRoot;
	};
};

#endif