summaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:00:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-31 14:00:18 +0200
commit130d691d607f2ff78865cc84b6fe46a7e79daa9a (patch)
tree4c164746d2f52a462e98f4cf98d1863bf781ebc0 /odb/context.hxx
parent1f7f9295bf4baf2b86ef5884b1c9929d0b31f758 (diff)
Cosmetic changes and cleanups
Rename some functions to have consistent names. Add object() predicate.
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 6449daf..f5c58aa 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -77,6 +77,11 @@ public:
// Predicates.
//
public:
+ static bool
+ object (semantics::type& t)
+ {
+ return t.count ("object");
+ }
// Check whether the type is a wrapper. Return the wrapped type if
// it is a wrapper and NULL otherwise.
@@ -437,7 +442,7 @@ protected:
virtual
~data () {}
data (std::ostream& os)
- : os_ (os.rdbuf ()), top_object_ (0), object_ (0)
+ : os_ (os.rdbuf ()), top_object_ (0), cur_object_ (0)
{
}
@@ -446,7 +451,7 @@ protected:
std::stack<std::streambuf*> os_stack_;
semantics::class_* top_object_;
- semantics::class_* object_;
+ semantics::class_* cur_object_;
keyword_set_type keyword_set_;
type_map_type type_map_;
@@ -476,7 +481,7 @@ public:
// Object currently being traversed. It can be the same as top_object
// or it can a base of top_object.
//
- semantics::class_*& object;
+ semantics::class_*& cur_object;
// Per-database customizable functionality.
//