summaryrefslogtreecommitdiff
path: root/core/property_abbrevations_begin.hpp
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/property_abbrevations_begin.hpp
Initial commitHEADmaster
Diffstat (limited to 'core/property_abbrevations_begin.hpp')
-rw-r--r--core/property_abbrevations_begin.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/property_abbrevations_begin.hpp b/core/property_abbrevations_begin.hpp
new file mode 100644
index 0000000..4aaa409
--- /dev/null
+++ b/core/property_abbrevations_begin.hpp
@@ -0,0 +1,18 @@
+#ifndef YCro2esMYpQbHpc3SnRqHRp4QZI
+#define YCro2esMYpQbHpc3SnRqHRp4QZI
+
+// get a continuous property by name
+// * has to have the same quantor type and will be the same instance
+// * can only be used within the evolve function of a continuous property
+#define _CP(Prop) (Property_Get<Prop>::eval(pc, context, t))
+
+// get a discrete property by name
+// * can only be used in the correct (...?) apply function
+#define _DP(Prop) (Property_Get<Prop>::eval(pc, context))
+
+// get a property from a transaction
+#define _TP(Prop) (transaction.instance.template get<Prop, typename Prop::type>())
+
+#else
+#error previous use of property_abbrevation_begin not closed
+#endif // YCro2esMYpQbHpc3SnRqHRp4QZI
contact: Jan Huwald // Impressum