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) | |
ComponentGeneric * | operator[] (int i) |
find ith component More... | |
ComponentGeneric * | operator[] (std::string n) |
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/components/ListComponents.h>
- Remarks
- Warning
- Thread safe:
- Extendable:
- Platform dependencies:
Constructor & Destructor Documentation
◆ ListComponents()
ListComponents::ListComponents | ( | void | ) |
◆ ~ListComponents()
ListComponents::~ListComponents | ( | void | ) |
Member Function Documentation
◆ addcomp()
void ListComponents::addcomp | ( | ComponentGeneric * | c | ) |
adds a new component
◆ clear()
void ListComponents::clear | ( | void | ) |
clears the component list
◆ compnames()
const std::string & ListComponents::compnames | ( | void | ) |
return a reference to the list of component ids
◆ exists()
bool ListComponents::exists | ( | std::string | n | ) |
test for existence of the component; returns false if non existing component
◆ lookup()
int ListComponents::lookup | ( | std::string | n | ) |
lookup index of component n; throws exception if non existing component
◆ operator[]() [1/2]
ComponentGeneric * ListComponents::operator[] | ( | int | i | ) |
find ith component
◆ operator[]() [2/2]
ComponentGeneric * ListComponents::operator[] | ( | std::string | n | ) |
find component based on string s from lookup; throws exception if non existing component
◆ size()
int ListComponents::size | ( | void | ) | const |
returns the size of the components array
The documentation for this class was generated from the following file: