summaryrefslogtreecommitdiff
path: root/odb/semantics/elements.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-03-23 12:34:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-03-23 12:34:58 +0200
commit64ff415ed33a733f9a297b1526403bfb8f391c63 (patch)
treed0f02c10e2bc9c068538719186f0683e7743e314 /odb/semantics/elements.ixx
parent4867605e59aa35e588f6f812c42ea95dffc0bbb3 (diff)
Semantic graph and parsing code
Currently covers/handles namespace, class definitions (including bases and data members), and typedefs in namespace-scopes.
Diffstat (limited to 'odb/semantics/elements.ixx')
-rw-r--r--odb/semantics/elements.ixx15
1 files changed, 15 insertions, 0 deletions
diff --git a/odb/semantics/elements.ixx b/odb/semantics/elements.ixx
new file mode 100644
index 0000000..7d92cdd
--- /dev/null
+++ b/odb/semantics/elements.ixx
@@ -0,0 +1,15 @@
+// file : odb/semantics/elements.ixx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+namespace semantics
+{
+ // typedefs
+ //
+ inline typedefs::type_type& typedefs::
+ type () const
+ {
+ return dynamic_cast<type_type&> (named ());
+ }
+}