summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp')
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp151
1 files changed, 0 insertions, 151 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
deleted file mode 100644
index 9cb70897a20..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
+++ /dev/null
@@ -1,151 +0,0 @@
-// file : CCF/IDL2/SemanticGraph/Union.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_SEMANTIC_GRAPH_UNION_HPP
-#define CCF_IDL2_SEMANTIC_GRAPH_UNION_HPP
-
-#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-#include "CCF/IDL2/SemanticGraph/Member.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace SemanticGraph
- {
- class Selector;
- class UnionMember;
-
- class Selects : public virtual Edge
- {
- public:
- Selector&
- selector () const
- {
- return *selector_;
- }
-
- UnionMember&
- member () const
- {
- return *member_;
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- Selects ()
- {
- type_info (static_type_info ());
- }
-
- void
- set_left_node (Selector& n)
- {
- selector_ = &n;
- }
-
- void
- set_right_node (UnionMember& n)
- {
- member_ = &n;
- }
-
- private:
- Selector* selector_;
- UnionMember* member_;
- };
-
- class UnionMember : public virtual Member
- {
- public:
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- UnionMember ()
- {
- type_info (static_type_info ());
- }
- };
-
- class Selector : public virtual Node
- {
- public:
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- Selector ()
- {
- type_info (static_type_info ());
- }
- };
-
- class DefaultSelector : public virtual Selector
- {
- public:
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- DefaultSelector ()
- {
- type_info (static_type_info ());
- }
- };
-
- class ValueSelector : public virtual Selector,
- public virtual Instance
- {
- public:
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- ValueSelector ()
- {
- type_info (static_type_info ());
- }
- };
-
- class Union : public virtual Specialization,
- public virtual Scope
- {
- public:
- virtual bool
- complete () const;
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- Union ()
- {
- type_info (static_type_info ());
- }
-
- using Specialization::add_edge_left;
- using Specialization::add_edge_right;
- using Scope::add_edge_left;
- using Scope::add_edge_right;
- };
- }
- }
-}
-
-#endif // CCF_IDL2_SEMANTIC_GRAPH_UNION_HPP