dtDAL::ActorType::RefPtrComp Struct Reference

Simple less than comparison function for the ObjectFactory. More...

#include <actortype.h>

List of all members.

Public Member Functions

bool operator() (const dtCore::RefPtr< const ActorType > &id1, const dtCore::RefPtr< const ActorType > &id2) const


Detailed Description

Simple less than comparison function for the ObjectFactory.

We cannot use the default comparison function because we store smart pointers in the factory. This implies that the ActorType will not be the key, but the memory address of the ActorType will be the key. Therefore, this comparison function exists so that the ActorType smart pointer is deferenced before the comparison.


Member Function Documentation

bool dtDAL::ActorType::RefPtrComp::operator() ( const dtCore::RefPtr< const ActorType > &  id1,
const dtCore::RefPtr< const ActorType > &  id2 
) const [inline]


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