NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::g3d::ResCommon< T > Class Template Reference

Description

template<typename T>
class nw4r::g3d::ResCommon< T >

Definition at line 65 of file g3d_rescommon.h.

Public Member Functions

 ResCommon (void *pData)
 
 ResCommon (const void *pData)
 
bool IsValid () const
 
T * ptr ()
 
const T * ptr () const
 
T & ref ()
 
const T & ref () const
 
template<typename T>
T * ofs_to_ptr_raw (s32 ofs)
 
template<typename T>
const T * ofs_to_ptr_raw (s32 ofs) const
 
template<typename T>
T * ofs_to_ptr (s32 ofs)
 
template<typename T>
const T * ofs_to_ptr (s32 ofs) const
 
template<typename T>
ofs_to_obj (s32 ofs)
 
template<typename T>
const T ofs_to_obj (s32 ofs) const
 

Private Attributes

T * mpData
 

Constructor & Destructor Documentation

◆ ResCommon() [1/2]

template<typename T>
nw4r::g3d::ResCommon< T >::ResCommon ( void * pData)
inlineexplicit

Definition at line 67 of file g3d_rescommon.h.

◆ ResCommon() [2/2]

template<typename T>
nw4r::g3d::ResCommon< T >::ResCommon ( const void * pData)
inlineexplicit

Definition at line 69 of file g3d_rescommon.h.

Member Function Documentation

◆ IsValid()

template<typename T>
bool nw4r::g3d::ResCommon< T >::IsValid ( ) const
inline

Definition at line 72 of file g3d_rescommon.h.

◆ ptr() [1/2]

template<typename T>
T * nw4r::g3d::ResCommon< T >::ptr ( )
inline

Definition at line 76 of file g3d_rescommon.h.

◆ ptr() [2/2]

template<typename T>
const T * nw4r::g3d::ResCommon< T >::ptr ( ) const
inline

Definition at line 79 of file g3d_rescommon.h.

◆ ref() [1/2]

template<typename T>
T & nw4r::g3d::ResCommon< T >::ref ( )
inline

Definition at line 83 of file g3d_rescommon.h.

◆ ref() [2/2]

template<typename T>
const T & nw4r::g3d::ResCommon< T >::ref ( ) const
inline

Definition at line 86 of file g3d_rescommon.h.

◆ ofs_to_ptr_raw() [1/2]

template<typename T>
template<typename T>
T * nw4r::g3d::ResCommon< T >::ofs_to_ptr_raw ( s32 ofs)
inline

Definition at line 90 of file g3d_rescommon.h.

◆ ofs_to_ptr_raw() [2/2]

template<typename T>
template<typename T>
const T * nw4r::g3d::ResCommon< T >::ofs_to_ptr_raw ( s32 ofs) const
inline

Definition at line 93 of file g3d_rescommon.h.

◆ ofs_to_ptr() [1/2]

template<typename T>
template<typename T>
T * nw4r::g3d::ResCommon< T >::ofs_to_ptr ( s32 ofs)
inline

Definition at line 97 of file g3d_rescommon.h.

◆ ofs_to_ptr() [2/2]

template<typename T>
template<typename T>
const T * nw4r::g3d::ResCommon< T >::ofs_to_ptr ( s32 ofs) const
inline

Definition at line 106 of file g3d_rescommon.h.

◆ ofs_to_obj() [1/2]

template<typename T>
template<typename T>
T nw4r::g3d::ResCommon< T >::ofs_to_obj ( s32 ofs)
inline

Definition at line 116 of file g3d_rescommon.h.

◆ ofs_to_obj() [2/2]

template<typename T>
template<typename T>
const T nw4r::g3d::ResCommon< T >::ofs_to_obj ( s32 ofs) const
inline

Definition at line 125 of file g3d_rescommon.h.

Member Data Documentation

◆ mpData

template<typename T>
T* nw4r::g3d::ResCommon< T >::mpData
private

Definition at line 136 of file g3d_rescommon.h.