diff options
Diffstat (limited to 'core/test_propcomp.cpp')
-rw-r--r-- | core/test_propcomp.cpp | 33 |
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; +} |