summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network.h8
-rw-r--r--src/tests/pic.cpp7
2 files changed, 14 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h
index 85d8407..e364459 100644
--- a/src/network.h
+++ b/src/network.h
@@ -3,6 +3,8 @@
3 3
4#include "neural/node.h" 4#include "neural/node.h"
5 5
6#include <bu/string.h>
7
6namespace Neural 8namespace Neural
7{ 9{
8 template<typename sigtype> 10 template<typename sigtype>
@@ -19,7 +21,11 @@ namespace Neural
19 delete pRoot; 21 delete pRoot;
20 } 22 }
21 23
22 24 static Network<sigtype> *fromStr( const Bu::String &sCode )
25 {
26 Network<sigtype> *pNet = new Network<sigtype>();
27 return pNet;
28 }
23 29
24 private: 30 private:
25 Node<sigtype> *pRoot; 31 Node<sigtype> *pRoot;
diff --git a/src/tests/pic.cpp b/src/tests/pic.cpp
new file mode 100644
index 0000000..89bfcaf
--- /dev/null
+++ b/src/tests/pic.cpp
@@ -0,0 +1,7 @@
1#include "neural/network.h"
2
3int main( int argc, char *argv[] )
4{
5 return 0;
6}
7