Single< Type > Class Template Reference

A single-value container, which can either be empty or full. More...

#include <container.h>

Public Member Functions

 Single ()
bool empty ()
Type * insert (const Type &other)
void clear ()
Type & get ()
const Type & get () const

Private Attributes

Type * m_value

Detailed Description

template<typename Type>
class Single< Type >

A single-value container, which can either be empty or full.

Definition at line 32 of file container.h.


Constructor & Destructor Documentation

template<typename Type >
Single< Type >::Single (  )  [inline]

Definition at line 35 of file container.h.


Member Function Documentation

template<typename Type >
void Single< Type >::clear (  )  [inline]

Definition at line 44 of file container.h.

References Single< Type >::m_value.

template<typename Type >
bool Single< Type >::empty (  )  [inline]

Definition at line 37 of file container.h.

References Single< Type >::m_value.

template<typename Type >
const Type& Single< Type >::get (  )  const [inline]

Definition at line 52 of file container.h.

References Single< Type >::m_value.

template<typename Type >
Type& Single< Type >::get (  )  [inline]

Definition at line 48 of file container.h.

References Single< Type >::m_value.

template<typename Type >
Type* Single< Type >::insert ( const Type &  other  )  [inline]

Definition at line 40 of file container.h.

References Single< Type >::m_value.


Field Documentation

template<typename Type >
Type* Single< Type >::m_value [private]

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

Generated by  doxygen 1.6.2