Public Member Functions | Private Attributes
rgrl_set_of< T > Class Template Reference

A collection of objects. More...

#include <rgrl_set_of.h>

Inheritance diagram for rgrl_set_of< T >:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

template<typename T>
class rgrl_set_of< T >

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.


Constructor & Destructor Documentation

template<typename T >
rgrl_set_of< T >::rgrl_set_of ( )

Construct an empty set.

Definition at line 13 of file rgrl_set_of.txx.


Member Function Documentation

template<typename T >
void rgrl_set_of< T >::clear ( )

Reset to an empty collection.

Definition at line 64 of file rgrl_set_of.txx.

template<typename T >
bool rgrl_set_of< T >::empty ( ) const

is it an empty set?.

Definition at line 38 of file rgrl_set_of.txx.

template<typename T>
void rgrl_set_of< T >::fill ( T const &  item)

fill current set.

Definition at line 80 of file rgrl_set_of.txx.

template<typename T >
T const & rgrl_set_of< T >::operator[] ( unsigned  i) const

Definition at line 46 of file rgrl_set_of.txx.

template<typename T >
T & rgrl_set_of< T >::operator[] ( unsigned  i)

Definition at line 55 of file rgrl_set_of.txx.

template<typename T>
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.

template<typename T >
void rgrl_set_of< T >::resize ( unsigned  n)

Same idea as std::vector::resize().

Definition at line 72 of file rgrl_set_of.txx.

template<typename T >
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.


Member Data Documentation

template<typename T>
vcl_vector< T > rgrl_set_of< T >::data_ [private]

Definition at line 56 of file rgrl_set_of.h.


The documentation for this class was generated from the following files: