Kaim::NavGraphPtr Class Reference

Kaim::NavGraphPtr Class Reference

#include <navgraphptr.h>

Class Description

This class uniquely identifies a single NavGraph.

Instances of this class can be safely stored and used in subsequent frames.

Public Member Functions

 NavGraphPtr (NavGraph *navGraph=0)
 
NavGraphGetNavGraph () const
 
NavGraphGetNavGraph_UnSafe () const
 
const NavGraphBlobGetNavGraphBlob () const
 
const NavGraphBlobGetNavGraphBlob_UnSafe () const
 
void Invalidate ()
 
bool IsValid () const
 
bool operator!= (const NavGraphPtr &rhs) const
 
bool operator== (const NavGraphPtr &rhs) const
 

Constructor & Destructor Documentation

Kaim::NavGraphPtr::NavGraphPtr ( NavGraph navGraph = 0)
inline

Constructs a new NavGraphPtr.

Parameters
navGraphA pointer to the NavGraph wrapped by this object.

Member Function Documentation

NavGraph * Kaim::NavGraphPtr::GetNavGraph ( ) const
inline

Returns a pointer to the NavGraph that handles the graph identified by this object.

If this object is invalid, returns KY_NULL.

NavGraph * Kaim::NavGraphPtr::GetNavGraph_UnSafe ( ) const
inline

Returns a pointer to the NavGraph that handles the graph identified by this object.

Precondition
This object must be valid. Its validity is not checked.
const NavGraphBlob * Kaim::NavGraphPtr::GetNavGraphBlob ( ) const
inline

Returns a pointer to the NavGraphBlob identified by this object.

If this object is invalid, returns KY_NULL.

const NavGraphBlob * Kaim::NavGraphPtr::GetNavGraphBlob_UnSafe ( ) const
inline

Returns a pointer to the NavGraphBlob identified by this object.

Precondition
This object must be valid. Its validity is not checked.
void Kaim::NavGraphPtr::Invalidate ( )
inline

Invalidates this object.

bool Kaim::NavGraphPtr::IsValid ( ) const
inline

Returns true if this object refers to a valid runtime NavGraph, which means a NavFloor that exists, whose underlying static data (NavGraphBlob) has not been removed from the Database.

bool Kaim::NavGraphPtr::operator!= ( const NavGraphPtr rhs) const
inline

Returns true if this object identifies an NavGraph different from the one identified by rhs, or if only one of them is invalid.

bool Kaim::NavGraphPtr::operator== ( const NavGraphPtr rhs) const
inline

Returns true if this object identifies the same NavGraph as rhs, or if both are invalid.


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