diff options
Diffstat (limited to 'odb/semantics/elements.hxx')
-rw-r--r-- | odb/semantics/elements.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/semantics/elements.hxx b/odb/semantics/elements.hxx index 8d9a379..03925f5 100644 --- a/odb/semantics/elements.hxx +++ b/odb/semantics/elements.hxx @@ -276,6 +276,14 @@ namespace semantics return defined_ == 0 && named_.empty (); } + bool + fq_anonymous () const; + + // If hint it 0, use the defines edge. + // + bool + fq_anonymous (names* hint) const; + string name () const { @@ -285,6 +293,11 @@ namespace semantics virtual string fq_name () const; + // If hint it 0, use the defines edge. + // + virtual string + fq_name (names* hint) const; + scope_type& scope () const { @@ -494,7 +507,21 @@ namespace semantics } public: + void + hint (names& hint) + { + hint_ = &hint; + } + + names* + hint () const + { + return hint_; + } + + public: belongs () + : hint_ (0) { } @@ -513,6 +540,7 @@ namespace semantics private: type_type* type_; instance_type* instance_; + names* hint_; }; // |