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=nullptr)
 Constructs a new NavGraphPtr. More...
 
bool IsValid () const
 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. More...
 
void Invalidate ()
 Invalidates this object. More...
 
NavGraphGetNavGraph () const
 Returns a pointer to the NavGraph that handles the graph identified by this object. More...
 
NavGraphGetNavGraph_UnSafe () const
 Returns a pointer to the NavGraph that handles the graph identified by this object. More...
 
const NavGraphBlobGetNavGraphBlob () const
 Returns a pointer to the NavGraphBlob identified by this object. More...
 
const NavGraphBlobGetNavGraphBlob_UnSafe () const
 Returns a pointer to the NavGraphBlob identified by this object. More...
 
bool operator== (const NavGraphPtr &rhs) const
 Returns true if this object identifies the same NavGraph as rhs, or if both are invalid. More...
 
bool operator!= (const NavGraphPtr &rhs) const
 Returns true if this object identifies an NavGraph different from the one identified by rhs, or if only one of them is invalid. More...
 

Constructor & Destructor Documentation

Kaim::NavGraphPtr::NavGraphPtr ( NavGraph navGraph = nullptr)
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 nullptr.

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 nullptr.

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: