eng::SortableDistance< OBJECT > Class Template Reference

Template class for sorting (general) objects by distance. More...

#include <eng_types.hh>

List of all members.

Public Member Functions

 SortableDistance (SafePtr< OBJECT > object, fp distance)

Public Attributes

SafePtr< OBJECT > mObject
fp mDistance

Friends

bool operator< (const SortableDistance &a, const SortableDistance &b)


Detailed Description

template<typename OBJECT>
class eng::SortableDistance< OBJECT >

Template class for sorting (general) objects by distance.

The MOST DISTANT object will be the FIRST in the sorted container.


Constructor & Destructor Documentation

template<typename OBJECT>
eng::SortableDistance< OBJECT >::SortableDistance ( SafePtr< OBJECT >  object,
fp  distance 
) [inline]


Friends And Related Function Documentation

template<typename OBJECT>
bool operator< ( const SortableDistance< OBJECT > &  a,
const SortableDistance< OBJECT > &  b 
) [friend]


Member Data Documentation

template<typename OBJECT>
SafePtr<OBJECT> eng::SortableDistance< OBJECT >::mObject

template<typename OBJECT>
fp eng::SortableDistance< OBJECT >::mDistance


The documentation for this class was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:25 2007