diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-18 13:10:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:43 +0200 |
commit | 3b457daf6b252ef31ec0611e7375aa4badd8e63d (patch) | |
tree | 8874473de1c2cf6c1fd5a63a93c609d6f3fd0127 /odb/semantics/relational/column.hxx | |
parent | 1112388f458cbbac8a73ca840f7f62f6f517e9fa (diff) |
Add support for copying database models
Diffstat (limited to 'odb/semantics/relational/column.hxx')
-rw-r--r-- | odb/semantics/relational/column.hxx | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/odb/semantics/relational/column.hxx b/odb/semantics/relational/column.hxx index 19aed98..07d61bf 100644 --- a/odb/semantics/relational/column.hxx +++ b/odb/semantics/relational/column.hxx @@ -20,40 +20,22 @@ namespace semantics public: string const& - type () const - { - return type_; - } + type () const {return type_;} bool - null () const - { - return null_; - } + null () const {return null_;} string const& - default_ () const - { - return default__; - } + default_ () const {return default__;} void - default_ (string const& d) - { - default__ = d; - } + default_ (string const& d) {default__ = d;} string const& - options () const - { - return options_; - } + options () const {return options_;} void - options (string const& o) - { - options_ = o; - } + options (string const& o) {options_ = o;} public: typedef relational::table table_type; @@ -72,16 +54,10 @@ namespace semantics contained_iterator; contained_iterator - contained_begin () const - { - return contained_.begin (); - } + contained_begin () const {return contained_.begin ();} contained_iterator - contained_end () const - { - return contained_.end (); - } + contained_end () const {return contained_.end ();} public: column (string const& id, string const& type, bool null) @@ -89,8 +65,12 @@ namespace semantics { } + column (column const&, uscope&, graph&); column (xml::parser&, uscope&, graph&); + virtual column& + clone (uscope&, graph&) const; + void add_edge_right (contains& e) { |