dtABC::RefPtrWithNameCompare< T > Struct Template Reference

Compares 2 referenced pointer objects by pointer value and name. More...

#include <statemanager.h>

List of all members.

Public Member Functions

bool operator() (const T &lhs, const T &rhs) const
 RefPtrWithNameCompare will make sure the State being added is unique to the set based on its name AND based on the fact that the State has a unique place in memory.


Detailed Description

template<typename T>
struct dtABC::RefPtrWithNameCompare< T >

Compares 2 referenced pointer objects by pointer value and name.


Member Function Documentation

template<typename T>
bool dtABC::RefPtrWithNameCompare< T >::operator() ( const T &  lhs,
const T &  rhs 
) const [inline]

RefPtrWithNameCompare will make sure the State being added is unique to the set based on its name AND based on the fact that the State has a unique place in memory.

This makes sure that no one tried to submit a State that had the same name as another State, or someone tried to resubmit a State already in the set by changing its name.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008