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
|
#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;
}
|