#include <rgrl_set_of.h>
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.
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_ |
| rgrl_set_of< T >::rgrl_set_of | ( | ) |
| void rgrl_set_of< T >::push_back | ( | T const & | item | ) |
| vcl_size_t rgrl_set_of< T >::size | ( | ) | const |
| 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 >::clear | ( | ) |
| void rgrl_set_of< T >::fill | ( | T const & | item | ) |
| void rgrl_set_of< T >::resize | ( | unsigned | n | ) |
| bool rgrl_set_of< T >::empty | ( | ) | const |
vcl_vector< T > rgrl_set_of< T >::data_ [private] |
Definition at line 56 of file rgrl_set_of.h.
1.5.1