diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
commit | 58033491c6d0bac82315c1fdb1ec9b39be58093f (patch) | |
tree | c69c3aa67ec66758066e959bd0d533ea336ec236 /TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp | |
parent | 2efc882384a34f61311a24fc641d1b5fd5776356 (diff) | |
download | ATCD-TAO-1_5.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_5'.TAO-1_5
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp')
-rw-r--r-- | TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp deleted file mode 100644 index 13d4e8905d4..00000000000 --- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Elements.tpp +++ /dev/null @@ -1,94 +0,0 @@ -// file : CCF/IDL2/SemanticAction/Impl/Elements.cpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -namespace CCF -{ - namespace IDL2 - { - namespace SemanticAction - { - namespace Impl - { - template <typename T> - T& Base:: - resolve (SemanticGraph::ScopedName const& from, - SemanticGraph::Name const& name, - Flags::Value flags) - throw (NotFound, NotUnique, WrongType, NotDefined, NotComplete) - { - using namespace SemanticGraph; - - try - { - Nameables nodes (Impl::resolve (ctx.tu (), from, name)); - - - if (nodes.size () != 1) throw NotUnique (); - - Nameable& node (**(nodes.begin ())); - - try - { - T& t (dynamic_cast<T&> (node)); - - if (flags & Flags::defined) - { - if (!t.defined ()) throw NotDefined (node.scoped_name ()); - } - - if (flags & Flags::complete) - { - SemanticGraph::Type& type ( - dynamic_cast<SemanticGraph::Type&> (t)); - - if (!type.complete ()) - { - throw NotComplete (node.scoped_name ()); - } - } - - return t; - } - catch (std::bad_cast const&) - { - throw WrongType (node.scoped_name ()); - } - } - catch (Impl::NotFound const&) - { - throw NotFound (); - } - } - - template<typename I> - void Base:: - check_inheritance (I begin, I end, SemanticGraph::Nameable& t) - throw (AlreadyInherited) - { - for (;begin != end; ++begin) - { - if ((**begin).inheritee () == t) - { - throw AlreadyInherited (t.scoped_name ()); - } - } - } - - template<typename I> - void Base:: - check_support (I begin, I end, SemanticGraph::Nameable& t) - throw (AlreadySupported) - { - for (;begin != end; ++begin) - { - if ((**begin).supportee () == t) - { - throw AlreadySupported (t.scoped_name ()); - } - } - } - } - } - } -} |