summaryrefslogtreecommitdiff
path: root/odb/semantics/elements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-25 18:30:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-25 19:25:48 +0200
commit2f1d254fb49e8cc8bd9ea2137758614e5825eaed (patch)
tree40e632c43b8ef470892b5ba3a0a9cbbcd9675cd1 /odb/semantics/elements.hxx
parentc4af692746181b5bb0ac50489555341feefd943c (diff)
Add typedef hints, move hint map to semantics::unit
Diffstat (limited to 'odb/semantics/elements.hxx')
-rw-r--r--odb/semantics/elements.hxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/odb/semantics/elements.hxx b/odb/semantics/elements.hxx
index b11211e..25b412a 100644
--- a/odb/semantics/elements.hxx
+++ b/odb/semantics/elements.hxx
@@ -223,9 +223,24 @@ namespace semantics
return access_;
}
+ // Names edge in terms of which this edge was defined. Can be NULL.
+ //
+ public:
+ void
+ hint (names& hint)
+ {
+ hint_ = &hint;
+ }
+
+ names*
+ hint () const
+ {
+ return hint_;
+ }
+
public:
names (string const& name, access_type access = access_type::public_)
- : name_ (name), access_ (access)
+ : name_ (name), access_ (access), hint_ (0)
{
}
@@ -246,6 +261,7 @@ namespace semantics
nameable* named_;
string name_;
access_type access_;
+ names* hint_;
};
//