Integration of OCCT 6.5.0 from SVN
[occt.git] / src / LibCtl / LibCtl_Node.gxx
1 //#include <LibCtl_Node.ixx>
2
3
4 //  Classe generique imbriquee dans Library : utilisee pour construire la
5 //  listes de Modules d une librairie  (cf Library pour plus de details)
6 //  (En fait : Liste de Global Nodes -> Module + Protocol)
7
8     LibCtl_Node::LibCtl_Node ()    {  }
9
10     void LibCtl_Node::AddNode (const Handle(LibCtl_GlobalNode)& anode)
11 {
12   if (thenode == anode) return;
13   if (thenext.IsNull()) {
14     if (thenode.IsNull()) thenode = anode;
15     else {
16       thenext = new LibCtl_Node;
17       thenext->AddNode (anode);
18     }
19   }
20   else thenext->AddNode (anode);
21 }
22
23
24     const Handle(TheModule)&   LibCtl_Node::Module () const
25       {  return thenode->Module();  }
26
27     const Handle(TheProtocol)& LibCtl_Node::Protocol () const
28       {  return thenode->Protocol();  }
29
30     const Handle(LibCtl_Node)& LibCtl_Node::Next () const
31       {  return thenext;  }