DDS  ver. 2.0
Public Member Functions | Friends | List of all members
dds::topology_api::CTaskGroup Class Reference

#include <TaskGroup.h>

Inheritance diagram for dds::topology_api::CTaskGroup:
dds::topology_api::CTaskContainer dds::topology_api::CTopoElement dds::topology_api::CTopoBase

Public Member Functions

 CTaskGroup ()
 Constructor. More...
 
virtual ~CTaskGroup ()
 Destructor. More...
 
virtual size_t getNofTasks () const
 Inherited from TopoElement. More...
 
virtual size_t getTotalNofTasks () const
 Inherited from TopoElement. More...
 
void initFromPropertyTree (const std::string &_name, const boost::property_tree::ptree &_pt)
 Inherited from TopoBase. More...
 
size_t getN () const
 
void setN (size_t _n)
 
TopoElementPtrVector_t getElementsByType (ETopoType _type) const
 
TopoIndexVector_t getTopoIndicesByType (ETopoType _type) const
 
virtual std::string toString () const
 Returns string representation of an object. More...
 
- Public Member Functions inherited from dds::topology_api::CTaskContainer
size_t getNofElements () const
 Return number of elements. More...
 
TopoElementPtr_t getElement (size_t _i) const
 Return topology element by index. More...
 
const TopoElementPtrVector_tgetElements () const
 Return vector of elements. More...
 
void setElements (const TopoElementPtrVector_t &_elements)
 
void addElement (TopoElementPtr_t _element)
 
- Public Member Functions inherited from dds::topology_api::CTopoBase
void setId (const std::string &_id)
 Modifiers. More...
 
void setParent (CTopoBase *_parent)
 
std::string getId () const
 Accessors. More...
 
ETopoType getType () const
 
CTopoBasegetParent () const
 
std::string getPath () const
 Return full path to topo element or property. More...
 
CTopoIndex getIndex () const
 Return index of topo element or property. More...
 

Friends

std::ostream & operator<< (std::ostream &_strm, const CTaskGroup &_taskContainer)
 Operator << for convenient output to ostream. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from dds::topology_api::CTopoBase
static const boost::property_tree::ptree & findElement (ETopoType _type, const std::string &_name, const boost::property_tree::ptree &_pt)
 Helper function to find element in property tree by type and name. More...
 
- Protected Member Functions inherited from dds::topology_api::CTaskContainer
 CTaskContainer ()
 Constructor. More...
 
virtual ~CTaskContainer ()
 Destructor. More...
 
size_t getNofTasksDefault () const
 Default implementation for TopoElement::getNofTasks, TopoElement::getTotalNofTasks. Calculate recursively number of tasks in all daughter elements. More...
 
- Protected Member Functions inherited from dds::topology_api::CTopoElement
 CTopoElement ()
 Constructor. More...
 
virtual ~CTopoElement ()
 Destructor. More...
 
size_t getTotalCounterDefault () const
 If parent is a group than return N, else return 1. Default implementation for Task::getTotalCounter and TaskCollection::getTotalCounter. More...
 
- Protected Member Functions inherited from dds::topology_api::CTopoBase
 CTopoBase ()
 Constructor. More...
 
virtual ~CTopoBase ()
 Destructor. More...
 
void setType (ETopoType _type)
 

Constructor & Destructor Documentation

◆ CTaskGroup()

CTaskGroup::CTaskGroup ( )

Constructor.

◆ ~CTaskGroup()

CTaskGroup::~CTaskGroup ( )
virtual

Destructor.

Member Function Documentation

◆ getElementsByType()

TopoElementPtrVector_t CTaskGroup::getElementsByType ( ETopoType  _type) const

◆ getN()

size_t CTaskGroup::getN ( ) const

◆ getNofTasks()

size_t CTaskGroup::getNofTasks ( ) const
virtual

Inherited from TopoElement.

Implements dds::topology_api::CTopoElement.

◆ getTopoIndicesByType()

TopoIndexVector_t CTaskGroup::getTopoIndicesByType ( ETopoType  _type) const

◆ getTotalNofTasks()

size_t CTaskGroup::getTotalNofTasks ( ) const
virtual

Inherited from TopoElement.

Implements dds::topology_api::CTopoElement.

◆ initFromPropertyTree()

void CTaskGroup::initFromPropertyTree ( const std::string &  _name,
const boost::property_tree::ptree &  _pt 
)
virtual

Inherited from TopoBase.

Implements dds::topology_api::CTopoBase.

◆ setN()

void CTaskGroup::setN ( size_t  _n)

◆ toString()

string CTaskGroup::toString ( ) const
virtual

Returns string representation of an object.

Returns
String representation of an object.

Reimplemented from dds::topology_api::CTaskContainer.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  _strm,
const CTaskGroup _taskContainer 
)
friend

Operator << for convenient output to ostream.

Returns
Insertion stream in order to be able to call a succession of insertion operations.

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