OverSim
PubSubSubspaceIntermediate Class Reference

#include <PubSubSubspace.h>

Inheritance diagram for PubSubSubspaceIntermediate:
PubSubSubspace PubSubSubspaceResponsible

Public Member Functions

 PubSubSubspaceIntermediate (PubSubSubspaceId id)
virtual ~PubSubSubspaceIntermediate ()
virtual bool addChild (NodeHandle node)
virtual bool removeChild (NodeHandle node)
virtual int getNumChildren ()
- Public Member Functions inherited from PubSubSubspace
 PubSubSubspace (PubSubSubspaceId id)
 Creates a new PubSubSubspace.
 ~PubSubSubspace ()
const PubSubSubspaceIdgetId ()
void setResponsibleNode (NodeHandle node)
NodeHandle getResponsibleNode ()
void setTimestamp ()
void setTimestamp (simtime_t stamp)
simtime_t getLastTimestamp ()
simtime_t getTimeSinceLastTimestamp ()

Public Attributes

std::set< NodeHandlechildren

Friends

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

Additional Inherited Members

- Protected Attributes inherited from PubSubSubspace
PubSubSubspaceId spaceId
NodeHandle responsibleNode
simtime_t lastTimestamp

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.

: PubSubSubspace( id ) {}
virtual PubSubSubspaceIntermediate::~PubSubSubspaceIntermediate ( )
inlinevirtual

Definition at line 73 of file PubSubSubspace.h.

{}

Member Function Documentation

virtual bool PubSubSubspaceIntermediate::addChild ( NodeHandle  node)
inlinevirtual

Reimplemented in PubSubSubspaceResponsible.

Definition at line 74 of file PubSubSubspace.h.

Referenced by PubSubSubspaceResponsible::addChild().

{ return children.insert( node ).second; }
virtual int PubSubSubspaceIntermediate::getNumChildren ( )
inlinevirtual
virtual bool PubSubSubspaceIntermediate::removeChild ( NodeHandle  node)
inlinevirtual

Friends And Related Function Documentation

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

Definition at line 50 of file PubSubSubspace.cc.

{
o << dynamic_cast<const PubSubSubspace&>(subspace) << "\n";
o << " Children:\n";
set<NodeHandle>::iterator it;
for( it = subspace.children.begin(); it != subspace.children.end(); ++it ){
o << " " << *it << "\n";
}
return o;
}

Member Data Documentation


The documentation for this class was generated from the following file: