Sirikata
Public Member Functions
Sirikata::TotallyOrdered< T > Class Template Reference

A base class for totally-ordered classes of objects. More...

#include <TotallyOrdered.hpp>

Inheritance diagram for Sirikata::TotallyOrdered< T >:

List of all members.

Public Member Functions

bool operator> (T const &rhs) const
bool operator<= (T const &rhs) const
bool operator>= (T const &rhs) const
bool operator!= (T const &rhs) const

Detailed Description

template<typename T>
class Sirikata::TotallyOrdered< T >

A base class for totally-ordered classes of objects.

All comparison operators are auto-generated from the definitions of the less-than and equality operators. The generated operators are member functions of the base class. The only way this class should be used is:

  class MyClass : public TotallyOrdered<MyClass>
  { ...

Member Function Documentation

template<typename T>
bool Sirikata::TotallyOrdered< T >::operator!= ( T const &  rhs) const [inline]

Reimplemented in Sirikata::SpaceObjectReference.

template<typename T>
bool Sirikata::TotallyOrdered< T >::operator<= ( T const &  rhs) const [inline]
template<typename T>
bool Sirikata::TotallyOrdered< T >::operator> ( T const &  rhs) const [inline]
template<typename T>
bool Sirikata::TotallyOrdered< T >::operator>= ( T const &  rhs) const [inline]

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