Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Reference counted container that encapsulates the base functionalites of an std::vector<>. More...
#include <Collection.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| Collection (const std::vector< ref< T > > &vector) | |
| Collection () | |
| Collection & | operator= (const std::vector< ref< T > > &vector) |
| operator std::vector< ref< T > > () const | |
| void | push_back (T *data) |
| void | pop_back () |
| void | resize (int size) |
| int | size () const |
| bool | empty () const |
| void | clear () |
| const T * | back () const |
| T * | back () |
| void | reserve (int capacity) |
| int | capacity () const |
| const ref< T > & | operator[] (int i) const |
| ref< T > & | operator[] (int i) |
| const T * | at (int i) const |
| T * | at (int i) |
| void | swap (Collection &other) |
| void | sort () |
| int | find (T *obj) const |
| void | shrink () |
| void | push_back (const Collection< T > &objs) |
| void | insert (int start, const Collection< T > &objs) |
| void | set (const Collection< T > &objs) |
| void | erase (int start, int count) |
| void | set (int index, T *obj) |
| void | insert (int index, T *obj) |
| void | erase (const T *data) |
| void | eraseAt (int index) |
| const std::vector< ref< T > > & | vector () const |
| std::vector< ref< T > > & | vector () |
Static Protected Member Functions | |
| static bool | less (const ref< T > &a, const ref< T > &b) |
Protected Attributes | |
| std::vector< ref< T > > | mVector |
Reference counted container that encapsulates the base functionalites of an std::vector<>.
This container can be used only with objects whose classes derive from Object.
| vl::Collection< T >::Collection | ( | const std::vector< ref< T > > & | vector ) | [inline] |
| vl::Collection< T >::Collection | ( | ) | [inline] |
| virtual const char* vl::Collection< T >::className | ( | ) | [inline, virtual] |
| Collection& vl::Collection< T >::operator= | ( | const std::vector< ref< T > > & | vector ) | [inline] |
| vl::Collection< T >::operator std::vector< ref< T > > | ( | ) | const [inline] |
| void vl::Collection< T >::push_back | ( | T * | data ) | [inline] |
| void vl::Collection< T >::pop_back | ( | ) | [inline] |
| void vl::Collection< T >::resize | ( | int | size ) | [inline] |
| int vl::Collection< T >::size | ( | ) | const [inline] |
| bool vl::Collection< T >::empty | ( | ) | const [inline] |
| void vl::Collection< T >::clear | ( | ) | [inline] |
| const T* vl::Collection< T >::back | ( | ) | const [inline] |
| T* vl::Collection< T >::back | ( | ) | [inline] |
| void vl::Collection< T >::reserve | ( | int | capacity ) | [inline] |
| int vl::Collection< T >::capacity | ( | ) | const [inline] |
| const ref<T>& vl::Collection< T >::operator[] | ( | int | i ) | const [inline] |
| ref<T>& vl::Collection< T >::operator[] | ( | int | i ) | [inline] |
| const T* vl::Collection< T >::at | ( | int | i ) | const [inline] |
| T* vl::Collection< T >::at | ( | int | i ) | [inline] |
| void vl::Collection< T >::swap | ( | Collection< T > & | other ) | [inline] |
| void vl::Collection< T >::sort | ( | ) | [inline] |
| int vl::Collection< T >::find | ( | T * | obj ) | const [inline] |
| void vl::Collection< T >::shrink | ( | ) | [inline] |
| void vl::Collection< T >::push_back | ( | const Collection< T > & | objs ) | [inline] |
| void vl::Collection< T >::insert | ( | int | start, |
| const Collection< T > & | objs | ||
| ) | [inline] |
| void vl::Collection< T >::set | ( | const Collection< T > & | objs ) | [inline] |
| void vl::Collection< T >::erase | ( | int | start, |
| int | count | ||
| ) | [inline] |
| void vl::Collection< T >::set | ( | int | index, |
| T * | obj | ||
| ) | [inline] |
| void vl::Collection< T >::insert | ( | int | index, |
| T * | obj | ||
| ) | [inline] |
| void vl::Collection< T >::erase | ( | const T * | data ) | [inline] |
| void vl::Collection< T >::eraseAt | ( | int | index ) | [inline] |
| const std::vector< ref<T> >& vl::Collection< T >::vector | ( | ) | const [inline] |
| std::vector< ref<T> >& vl::Collection< T >::vector | ( | ) | [inline] |
| static bool vl::Collection< T >::less | ( | const ref< T > & | a, |
| const ref< T > & | b | ||
| ) | [inline, static, protected] |
std::vector< ref<T> > vl::Collection< T >::mVector [protected] |