PubSubSubspaceIntermediate Class Reference

#include <PubSubSubspace.h>

Inheritance diagram for PubSubSubspaceIntermediate:
PubSubSubspace PubSubSubspaceResponsible

List of all members.

Public Member Functions

 PubSubSubspaceIntermediate (PubSubSubspaceId id)
virtual ~PubSubSubspaceIntermediate ()
virtual bool addChild (NodeHandle node)
virtual bool removeChild (NodeHandle node)
virtual int getNumChildren ()

Public Attributes

std::set< NodeHandlechildren

Friends

std::ostream & operator<< (std::ostream &o, const PubSubSubspaceIntermediate &subspace)

Detailed Description

Definition at line 68 of file PubSubSubspace.h.


Constructor & Destructor Documentation

PubSubSubspaceIntermediate::PubSubSubspaceIntermediate ( PubSubSubspaceId  id  )  [inline]

Definition at line 72 of file PubSubSubspace.h.

00072 : PubSubSubspace( id ) {}

virtual PubSubSubspaceIntermediate::~PubSubSubspaceIntermediate (  )  [inline, virtual]

Definition at line 73 of file PubSubSubspace.h.

00073 {}


Member Function Documentation

virtual bool PubSubSubspaceIntermediate::addChild ( NodeHandle  node  )  [inline, virtual]

Reimplemented in PubSubSubspaceResponsible.

Definition at line 74 of file PubSubSubspace.h.

Referenced by PubSubSubspaceResponsible::addChild().

00074 { return children.insert( node ).second; }

virtual int PubSubSubspaceIntermediate::getNumChildren (  )  [inline, virtual]
virtual bool PubSubSubspaceIntermediate::removeChild ( NodeHandle  node  )  [inline, virtual]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const PubSubSubspaceIntermediate subspace 
) [friend]

Definition at line 50 of file PubSubSubspace.cc.

00051 {
00052     o << dynamic_cast<const PubSubSubspace&>(subspace) << "\n";
00053     o << "  Children:\n";
00054     set<NodeHandle>::iterator it;
00055     for( it = subspace.children.begin(); it != subspace.children.end(); ++it ){
00056         o << "    " << *it << "\n";
00057     }
00058     return o;
00059 }


Member Data Documentation


The documentation for this class was generated from the following file:
Generated on Wed May 26 16:21:18 2010 for OverSim by  doxygen 1.6.3