ListComponents Class Reference

Component list manager
Vector Wrapper to manage the actual component list. More...

#include <ListComponents.h>

Public Member Functions

 ListComponents (void)
 
 ~ListComponents (void)
 
ComponentGenericoperator[] (int i)
 find ith component More...
 
ComponentGenericoperator[] (std::string s)
 find component based on string s from lookup; throws exception if non existing component More...
 
int size (void) const
 
void addcomp (ComponentGeneric *c)
 adds a new component More...
 
int lookup (std::string n)
 lookup index of component n; throws exception if non existing component More...
 
bool exists (std::string n)
 test for existence of the component; returns false if non existing component More...
 
void clear (void)
 clears the component list More...
 
const std::string & compnames (void)
 return a reference to the list of component ids More...
 

Detailed Description

Component list manager
Vector Wrapper to manage the actual component list.

#include <libpf/ListComponents.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

ListComponents::ListComponents ( void  )
ListComponents::~ListComponents ( void  )

Member Function Documentation

void ListComponents::addcomp ( ComponentGeneric c)

adds a new component

void ListComponents::clear ( void  )

clears the component list

const std::string& ListComponents::compnames ( void  )

return a reference to the list of component ids

bool ListComponents::exists ( std::string  n)

test for existence of the component; returns false if non existing component

int ListComponents::lookup ( std::string  n)

lookup index of component n; throws exception if non existing component

ComponentGeneric* ListComponents::operator[] ( int  i)

find ith component

ComponentGeneric* ListComponents::operator[] ( std::string  s)

find component based on string s from lookup; throws exception if non existing component

int ListComponents::size ( void  ) const

returns the size of the components array


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