aboutsummaryrefslogtreecommitdiff
path: root/odb/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-08 17:27:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-08 17:27:40 +0200
commit4fd6bca4e75870958ea61b94e0a1e60e78cd91bc (patch)
tree2119cae72f45e1ceff1982d8364b4b678ac4ee69 /odb/common.hxx
parent7cd11b5f604c7d786261568aa31cd2ae3638f61e (diff)
Add support for defining composite value type as class template instantiations
Diffstat (limited to 'odb/common.hxx')
-rw-r--r--odb/common.hxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/odb/common.hxx b/odb/common.hxx
index 679e25c..f29eeca 100644
--- a/odb/common.hxx
+++ b/odb/common.hxx
@@ -250,4 +250,25 @@ private:
traversal::inherits inherits_;
};
+// Traverse composite values that are class template instantiations.
+//
+struct typedefs: traversal::typedefs, context
+{
+ typedefs (bool traverse_included)
+ : included_ (traverse_included)
+ {
+ }
+
+ virtual void
+ traverse (semantics::typedefs&);
+
+ // Returns true if we should traverse this typedef.
+ //
+ bool
+ check (semantics::typedefs&);
+
+private:
+ bool included_;
+};
+
#endif // ODB_COMMON_HXX