template <class T> class TMuiContainer : public std vector<T*>

A templated container class for MuID objects

Inheritance:


Public Methods

TMuiContainer()
Constructor.
TMuiContainer(size_t max, T* initial_value = 0L)
Constructor (preallocate a certain number of elements).
~TMuiContainer()
Destructor (also destroy contained objects).
void Clear()
Destroy all contained objects.
size_t Add(T* item)
Add an item to the container; return the new number of objects.
size_t Remove(T* item)
Find an item in the container and remove it (do not destroy it).
size_t Delete(T* item)
Find an item in the container, remove it, and destroy it.
size_t Count() const
Return the number of objects in the container.
const T*& operator[](const size_t index) const
Return a const pointer to an object (index is not bounds-checked).
T*& operator[](const size_t index)
Return a non-const pointer to an object (index is not bounds-checked).

Documentation

A templated container class for MuID objects. Given the use of templates here, some work will have to be done for objects of this class to be usable from CINT (macros or command line).

TMuiContainer()
Constructor.

TMuiContainer(size_t max, T* initial_value = 0L)
Constructor (preallocate a certain number of elements).

~TMuiContainer()
Destructor (also destroy contained objects).

void Clear()
Destroy all contained objects.

size_t Add(T* item)
Add an item to the container; return the new number of objects.

size_t Remove(T* item)
Find an item in the container and remove it (do not destroy it).

size_t Delete(T* item)
Find an item in the container, remove it, and destroy it.

size_t Count() const
Return the number of objects in the container.

const T*& operator[](const size_t index) const
Return a const pointer to an object (index is not bounds-checked).

T*& operator[](const size_t index)
Return a non-const pointer to an object (index is not bounds-checked).


This class has no child classes.
Author:
Kyle Pope mailto:pope@phy.ornl.gov

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de