diff options
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp')
-rw-r--r-- | TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp deleted file mode 100644 index 463dec37f23..00000000000 --- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// file : CCF/IDL2/SemanticGraph/Struct.cpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -#include "CCF/IDL2/SemanticGraph/Struct.hpp" -#include "CCF/IDL2/SemanticGraph/Member.hpp" - -namespace CCF -{ - namespace IDL2 - { - namespace SemanticGraph - { - using Introspection::TypeInfo; - using Introspection::Access; - - namespace - { - TypeInfo - struct_init_ () - { - TypeInfo ti (typeid (Struct)); - ti.add_base (Access::PUBLIC, true, Type::static_type_info ()); - ti.add_base (Access::PUBLIC, true, Scope::static_type_info ()); - return ti; - } - - TypeInfo struct_ (struct_init_ ()); - } - - TypeInfo const& Struct:: - static_type_info () { return struct_; } - - bool Struct:: - complete () const - { - if (defined ()) - { - for (Scope::NamesIterator i (names_begin ()); - i != names_end (); - ++i) - { - Member const& m (dynamic_cast<Member&> ((*i)->named ())); - Type const& t (m.belongs ().type ()); - - if (!t.complete ()) - return false; - } - - return true; - } - - return false; - } - } - } -} |