UniqueSet< Value > Class Template Reference

An adaptor to assert when duplicate values are added, or non-existent values removed from a std::set. More...

#include <container.h>

Public Types

typedef Values::iterator iterator
typedef Values::const_iterator const_iterator
typedef Values::reverse_iterator reverse_iterator
typedef
Values::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
bool empty () const
std::size_t size () const
void clear ()
void swap (UniqueSet &other)
iterator insert (const Value &value)
void erase (const Value &value)
iterator find (const Value &value)

Private Types

typedef std::set< ValueValues

Private Attributes

Values m_values

Detailed Description

template<typename Value>
class UniqueSet< Value >

An adaptor to assert when duplicate values are added, or non-existent values removed from a std::set.

Definition at line 211 of file container.h.


Member Typedef Documentation

template<typename Value>
typedef Values::const_iterator UniqueSet< Value >::const_iterator

Definition at line 216 of file container.h.

template<typename Value>
typedef Values::const_reverse_iterator UniqueSet< Value >::const_reverse_iterator

Definition at line 218 of file container.h.

template<typename Value>
typedef Values::iterator UniqueSet< Value >::iterator

Definition at line 215 of file container.h.

template<typename Value>
typedef Values::reverse_iterator UniqueSet< Value >::reverse_iterator

Definition at line 217 of file container.h.

template<typename Value>
typedef std::set<Value> UniqueSet< Value >::Values [private]

Definition at line 212 of file container.h.


Member Function Documentation

template<typename Value>
const_iterator UniqueSet< Value >::begin (  )  const [inline]

Definition at line 224 of file container.h.

template<typename Value>
iterator UniqueSet< Value >::begin (  )  [inline]
template<typename Value>
void UniqueSet< Value >::clear (  )  [inline]

Definition at line 252 of file container.h.

template<typename Value>
bool UniqueSet< Value >::empty (  )  const [inline]

Definition at line 246 of file container.h.

Referenced by Brush::~Brush().

template<typename Value>
const_iterator UniqueSet< Value >::end (  )  const [inline]

Definition at line 230 of file container.h.

template<typename Value>
iterator UniqueSet< Value >::end (  )  [inline]
template<typename Value>
void UniqueSet< Value >::erase ( const Value value  )  [inline]

Definition at line 264 of file container.h.

Referenced by Brush::detach().

template<typename Value>
iterator UniqueSet< Value >::find ( const Value value  )  [inline]
template<typename Value>
iterator UniqueSet< Value >::insert ( const Value value  )  [inline]

Definition at line 259 of file container.h.

Referenced by Brush::attach().

template<typename Value>
const_reverse_iterator UniqueSet< Value >::rbegin (  )  const [inline]

Definition at line 236 of file container.h.

template<typename Value>
reverse_iterator UniqueSet< Value >::rbegin (  )  [inline]

Definition at line 233 of file container.h.

template<typename Value>
const_reverse_iterator UniqueSet< Value >::rend (  )  const [inline]

Definition at line 242 of file container.h.

template<typename Value>
reverse_iterator UniqueSet< Value >::rend (  )  [inline]

Definition at line 239 of file container.h.

template<typename Value>
std::size_t UniqueSet< Value >::size (  )  const [inline]

Definition at line 249 of file container.h.

template<typename Value>
void UniqueSet< Value >::swap ( UniqueSet< Value > &  other  )  [inline]

Definition at line 256 of file container.h.

Referenced by UniqueSet< BrushObserver * >::swap().


Field Documentation

template<typename Value>
Values UniqueSet< Value >::m_values [private]

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

Generated by  doxygen 1.6.2