A collection of objects. More...
#include <rgrl_set_of.h>

Public Member Functions | |
| rgrl_set_of () | |
| Construct an empty set. | |
| void | push_back (T const &item) |
| Add a match set to the collection. | |
| vcl_size_t | size () const |
| The number of match sets in the collection. | |
| T const & | operator[] (unsigned i) const |
| T & | operator[] (unsigned i) |
| void | clear () |
| Reset to an empty collection. | |
| void | fill (T const &item) |
| fill current set. | |
| void | resize (unsigned n) |
| Same idea as std::vector::resize(). | |
| bool | empty () const |
| is it an empty set?. | |
Private Attributes | |
| vcl_vector< T > | data_ |
A collection of objects.
This is a std::vector with a subset of the interface. The idea is to allow easy change of underlying data structures if it proves necessary later on.
Definition at line 19 of file rgrl_set_of.h.
| rgrl_set_of< T >::rgrl_set_of | ( | ) |
Construct an empty set.
Definition at line 13 of file rgrl_set_of.txx.
| void rgrl_set_of< T >::clear | ( | ) |
Reset to an empty collection.
Definition at line 64 of file rgrl_set_of.txx.
| bool rgrl_set_of< T >::empty | ( | ) | const |
is it an empty set?.
Definition at line 38 of file rgrl_set_of.txx.
| void rgrl_set_of< T >::fill | ( | T const & | item | ) |
fill current set.
Definition at line 80 of file rgrl_set_of.txx.
| T const & rgrl_set_of< T >::operator[] | ( | unsigned | i | ) | const |
Definition at line 46 of file rgrl_set_of.txx.
| T & rgrl_set_of< T >::operator[] | ( | unsigned | i | ) |
Definition at line 55 of file rgrl_set_of.txx.
| void rgrl_set_of< T >::push_back | ( | T const & | item | ) |
Add a match set to the collection.
Definition at line 21 of file rgrl_set_of.txx.
| void rgrl_set_of< T >::resize | ( | unsigned | n | ) |
Same idea as std::vector::resize().
Definition at line 72 of file rgrl_set_of.txx.
| vcl_size_t rgrl_set_of< T >::size | ( | ) | const |
The number of match sets in the collection.
Definition at line 30 of file rgrl_set_of.txx.
vcl_vector< T > rgrl_set_of< T >::data_ [private] |
Definition at line 56 of file rgrl_set_of.h.
1.7.5.1