Template Class VectorContainer

Inheritance Relationships

Base Type

Class Documentation

template <typename _T>
class VectorContainer : public ObjectContainer<_T>

Public Functions

VectorContainer()
~VectorContainer()
std::vector<_T *>::const_iterator begin() const

Accessor for an iterator to the beginning of the objects container.

Return
Pointer to the beginning of the objects container.

std::vector<_T *>::iterator begin()
std::vector<_T *>::const_iterator end() const

Accessor for an iterator to the end of the objects container.

Return
Pointer to the end of the objects container.

std::vector<_T *>::iterator end()
bool exists(const std::string &name)

Check if the specified parameter name exists.

Return
True if the parameter exists.
Parameters
  • name: Name of the parameter

void add(_T *new_obj)

Adds the passed object to the container.

Parameters
  • new_obj: Object to add.

_T *get(const std::string &name)
void clear()

Delete all stored objects in the map.

unsigned long count()

Accessor for the container element count.

Return
Number of elements in the container.

const void print_original_src_(unsigned int indent_depth, const std::string &print_sep)

Print the object container for debug.

Parameters
  • indent_depth:

_T *operator[](int i)

Accessor for the index of the container.

Return
Parameters
  • i: Index to