Template Class VectorContainer¶
- Defined in File container_templates.h
Inheritance Relationships¶
Base Type¶
public ObjectContainer< _T >(Template Class ObjectContainer)
Class Documentation¶
-
template <typename _T>
classVectorContainer: 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
-