From 8b5538ed49925aaf9fa22e961bd632bed8458184 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Apr 2010 11:11:51 +0200 Subject: Rename annotated() to annotated_p(), add claer_*() to Arguments --- xsd-frontend/semantic-graph/elements.hxx | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'xsd-frontend/semantic-graph') diff --git a/xsd-frontend/semantic-graph/elements.hxx b/xsd-frontend/semantic-graph/elements.hxx index dd397f2..ec425f6 100644 --- a/xsd-frontend/semantic-graph/elements.hxx +++ b/xsd-frontend/semantic-graph/elements.hxx @@ -195,11 +195,17 @@ namespace XSDFrontend public: Boolean - annotated () const + annotated_p () const { return annotates_ != 0; } + Annotates& + annotated () const + { + return *annotates_; + } + Annotation& annotation (); @@ -269,11 +275,17 @@ namespace XSDFrontend public: Boolean - annotated () const + annotated_p () const { return annotates_ != 0; } + Annotates& + annotated () const + { + return *annotates_; + } + Annotation& annotation (); @@ -1186,11 +1198,25 @@ namespace XSDFrontend } void + clear_left_node (Type& n) + { + assert (type_ == &n); + type_ = 0; + } + + void set_right_node (Specialization& s) { specialization_ = &s; } + void + clear_right_node (Specialization& s) + { + assert (specialization_ == &s); + specialization_ = 0; + } + private: Type* type_; Specialization* specialization_; -- cgit v1.1