summaryrefslogtreecommitdiff
path: root/core/test_propcomp.cpp
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
commit420d2ef464d4a741028e132e662d5626806a41f5 (patch)
tree1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /core/test_propcomp.cpp
Initial commitHEADmaster
Diffstat (limited to 'core/test_propcomp.cpp')
-rw-r--r--core/test_propcomp.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/core/test_propcomp.cpp b/core/test_propcomp.cpp
new file mode 100644
index 0000000..c5522f1
--- /dev/null
+++ b/core/test_propcomp.cpp
@@ -0,0 +1,33 @@
+#include <boost/mpl/list.hpp>
+#include <boost/mpl/pair.hpp>
+#include <boost/mpl/bool.hpp>
+#include <iostream>
+
+#include "continuous_property.hpp"
+#include "pla_debug_name.hpp"
+#include "pla_get.hpp"
+#include "property_composition.hpp"
+
+#include "model.hpp" // for Voltage
+
+#include "mempool.hpp"
+
+// create some extra properties
+GEN_CP(Neuron, CrazyVal, "crazy_val", double, 0.0);
+GEN_CP(Global, CoolVal, "cool_val", double, 0.0);
+GEN_CP(Synapse, ExtraordinaryVal, "extraordinary_val", double, 0.0);
+
+int main() {
+ using boost::mpl::pair;
+ using boost::mpl::list;
+ using boost::mpl::bool_;
+
+ // below is bullshit
+ PropertyComposition<list<
+ pair<Voltage, bool_<false> >,
+ pair<ExtraordinaryVal, bool_<false> >
+ > > test1;
+
+ PLA_Debug_Name action_debug;
+ std::cout << test1.call(action_debug) << std::endl;
+}
contact: Jan Huwald // Impressum