![]() |
KaliVeda
Toolkit for HIC analysis
|
Vector of references to objects.
The KVRefVec class behaves like a std::vector of references T& i.e. with
we have r_vec[0] -> SomeObject&
reference to obj, and we can do r_vec[0].some_method()
Definition at line 24 of file KVRefVec.h.
#include <KVRefVec.h>
Classes | |
struct | iterator |
Public Member Functions | |
KVRefVec (size_t N) | |
iterator | begin () |
iterator | end () |
const T & | operator[] (size_t i) const |
void | set (size_t i, T *t) |
size_t | size () const |
Private Attributes | |
std::vector< T * > | objects |
Definition at line 27 of file KVRefVec.h.
Definition at line 94 of file KVRefVec.h.
Definition at line 98 of file KVRefVec.h.
|
inline |
Definition at line 28 of file KVRefVec.h.
|
inline |
Definition at line 32 of file KVRefVec.h.
|
inline |
Definition at line 36 of file KVRefVec.h.
|
private |
Definition at line 25 of file KVRefVec.h.