In file ./include/vob/util/ObjectStorer.hxx:

template<class T> class Vob::ObjectStorer

A template for storing (owning pointers to) objects by integer ids

Documentation

A template for storing (owning pointers to) objects by integer ids

Inheritance:

ObjectStorer


Public Methods

[more]int add (T* p)
Add a new object, get back its assigned id.
[more]void remove (int p)
Mark the object with the given id for removal
[more]T* get (int p)
Get the pointer corresponding to the given id
[more]T* get_allowNull (int p)
Get the pointer corresponding to the given id
[more]T* operator[] (int p)
Alias to get()

oint add(T* p)
Add a new object, get back its assigned id. Side effect: all object marked for removal since the last add() are really deleted. The ObjectStorer takes ownership of the pointer and will eventually delete() it.

ovoid remove(int p)
Mark the object with the given id for removal

oT* get(int p)
Get the pointer corresponding to the given id

oT* get_allowNull(int p)
Get the pointer corresponding to the given id

oT* operator[](int p)
Alias to get()


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.