From 3b457daf6b252ef31ec0611e7375aa4badd8e63d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Mar 2013 13:10:41 +0200 Subject: Add support for copying database models --- odb/semantics/relational/column.hxx | 44 ++++++++++--------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) (limited to 'odb/semantics/relational/column.hxx') 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) { -- cgit v1.1