32 #ifndef Collection_INCLUDE_ONCE 33 #define Collection_INCLUDE_ONCE 56 VL_DEBUG_SET_OBJECT_NAME()
62 VL_DEBUG_SET_OBJECT_NAME()
71 operator std::vector< ref<T> >()
const 115 typename std::vector< ref<T> >::const_iterator pos = std::find(
mVector.begin(),
mVector.end(), obj);
119 return (
int)(pos -
mVector.begin());
147 void set(
int index, T* obj) {
mVector[index] = obj; }
153 typename std::vector< ref<T> >::iterator it = std::find(
mVector.begin(),
mVector.end(), data);
const T * at(int i) const
std::vector< ref< T > > mVector
void insert(int index, T *obj)
std::vector< ref< T > > & vector()
const ref< T > & operator[](int i) const
void push_back(const Collection< T > &objs)
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
static bool less(const ref< T > &a, const ref< T > &b)
Visualization Library main namespace.
Collection(const std::vector< ref< T > > &vector)
Collection & operator=(const std::vector< ref< T > > &vector)
const std::vector< ref< T > > & vector() const
The base class for all the reference counted objects.
void reserve(int capacity)
void erase(int start, int count)
void erase(const T *data)
void swap(Collection &other)
It's basically an std::vector for Objects that is itself an Object so it can be reference counted and...
ref< T > & operator[](int i)
The ref<> class is used to reference-count an Object.
void insert(int start, const Collection< T > &objs)