diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
commit | 01f77f6d38283b4efbe2b55fc9c7c837fd6498dc (patch) | |
tree | 12059fa0c514a3f2b9da2a9419593e3596cc6f5d /odb/semantics/elements.hxx | |
parent | ad637abaa62a26461b276769c35dd1b67036b54b (diff) |
Add support for union, enum, class/union template
Diffstat (limited to 'odb/semantics/elements.hxx')
-rw-r--r-- | odb/semantics/elements.hxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/odb/semantics/elements.hxx b/odb/semantics/elements.hxx index 0b89831..97f386f 100644 --- a/odb/semantics/elements.hxx +++ b/odb/semantics/elements.hxx @@ -543,6 +543,41 @@ namespace semantics private: belongs_type* belongs_; }; + + // Data member for class and union types. + // + class data_member: public nameable, public instance + { + public: + data_member (path const& file, size_t line, size_t column) + : node (file, line, column) + { + } + }; + + // Unsupported type. + // + class unsupported_type: public type + { + public: + string const& + type_name () const + { + return type_name_; + } + + public: + unsupported_type (path const& file, + size_t line, + size_t column, + string const& type_name) + : node (file, line, column), type_name_ (type_name) + { + } + + private: + string const type_name_; + }; } #include <semantics/elements.ixx> |