comparable Class Reference

#include <comparable.hpp>

Inheritance diagram for comparable:

Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract base class for data structures that can be compared to each other.

Definition at line 46 of file comparable.hpp.


Public Member Functions

 comparable ()
virtual int compare (const comparable &) const =0
 Compares two objects. Implementations should check the type of the given object.
virtual ~comparable ()

Constructor & Destructor Documentation

comparable (  )  [inline]

Definition at line 49 of file comparable.hpp.

virtual ~comparable (  )  [inline, virtual]

Definition at line 50 of file comparable.hpp.


Member Function Documentation

virtual int compare ( const comparable  )  const [pure virtual]

Compares two objects. Implementations should check the type of the given object.

Implemented in directory, and string.

Referenced by gsgl::data::operator!=(), gsgl::data::operator<(), gsgl::data::operator<=(), gsgl::data::operator==(), gsgl::data::operator>(), and gsgl::data::operator>=().


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

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5