orderable_unique_id< uniquifier > Class Template Reference

A unique identifier class that supports sorting. More...

#include <unique_id.h>

Inheritance diagram for orderable_unique_id< uniquifier >:

Inheritance graph
[legend]
Collaboration diagram for orderable_unique_id< uniquifier >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 orderable_unique_id (const uniquifier &initial_value)
 orderable_unique_id (const unique_id< uniquifier > &initial_value)
 ~orderable_unique_id ()
bool operator< (const unique_id< uniquifier > &to_compare) const
bool operator<= (const unique_id< uniquifier > &to_compare) const
bool operator> (const unique_id< uniquifier > &to_compare) const
bool operator>= (const unique_id< uniquifier > &to_compare) const

Detailed Description

template<class uniquifier>
class orderable_unique_id< uniquifier >

A unique identifier class that supports sorting.

The orderable version can be compared for magnitude and permits sorting the ids based on the underlying type. The underlying type must implement at least the less than operator.

Definition at line 69 of file unique_id.h.


Constructor & Destructor Documentation

template<class uniquifier>
orderable_unique_id< uniquifier >::orderable_unique_id ( const uniquifier &  initial_value  )  [inline]

Definition at line 72 of file unique_id.h.

template<class uniquifier>
orderable_unique_id< uniquifier >::orderable_unique_id ( const unique_id< uniquifier > &  initial_value  )  [inline]

Definition at line 74 of file unique_id.h.

template<class uniquifier>
orderable_unique_id< uniquifier >::~orderable_unique_id (  )  [inline]

Definition at line 76 of file unique_id.h.


Member Function Documentation

template<class uniquifier>
bool orderable_unique_id< uniquifier >::operator< ( const unique_id< uniquifier > &  to_compare  )  const [inline]

the "uniquifier" type absolutely must provide a less than operator (<) and it must meet the requirements of the "unique_id" template.

Definition at line 80 of file unique_id.h.

References this.

template<class uniquifier>
bool orderable_unique_id< uniquifier >::operator<= ( const unique_id< uniquifier > &  to_compare  )  const [inline]

Definition at line 84 of file unique_id.h.

template<class uniquifier>
bool orderable_unique_id< uniquifier >::operator> ( const unique_id< uniquifier > &  to_compare  )  const [inline]

Definition at line 86 of file unique_id.h.

template<class uniquifier>
bool orderable_unique_id< uniquifier >::operator>= ( const unique_id< uniquifier > &  to_compare  )  const [inline]

Definition at line 88 of file unique_id.h.


The documentation for this class was generated from the following file:
Generated on Fri Nov 28 04:30:54 2008 for HOOPLE Libraries by  doxygen 1.5.1