A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
System::MapdataAccessorBase< T, TData > Class Template Reference

Description

template<typename T, typename TData>
class System::MapdataAccessorBase< T, TData >

Definition at line 13 of file MapdataAccessorBase.hh.

Public Member Functions

 MapdataAccessorBase (const MapSectionHeader *header)
 
 MapdataAccessorBase (const MapdataAccessorBase &)=delete
 
 MapdataAccessorBase (MapdataAccessorBase &&)=delete
 
T * get (u16 i) const
 
TData * getData (u16 i) const
 
u16 size () const
 
void init (const TData *start, u16 count)
 

Protected Attributes

T ** m_entries
 
u16 m_entryCount
 
const MapSectionHeaderm_sectionHeader
 

Constructor & Destructor Documentation

◆ MapdataAccessorBase()

template<typename T , typename TData >
System::MapdataAccessorBase< T, TData >::MapdataAccessorBase ( const MapSectionHeader * header)
inline

Definition at line 15 of file MapdataAccessorBase.hh.

◆ ~MapdataAccessorBase()

template<typename T , typename TData >
virtual System::MapdataAccessorBase< T, TData >::~MapdataAccessorBase ( )
inlinevirtual

Definition at line 20 of file MapdataAccessorBase.hh.

Member Function Documentation

◆ get()

template<typename T , typename TData >
T * System::MapdataAccessorBase< T, TData >::get ( u16 i) const
inlinenodiscard

Definition at line 30 of file MapdataAccessorBase.hh.

◆ getData()

template<typename T , typename TData >
TData * System::MapdataAccessorBase< T, TData >::getData ( u16 i) const
inlinenodiscard

Definition at line 34 of file MapdataAccessorBase.hh.

◆ init()

template<typename T , typename TData >
void System::MapdataAccessorBase< T, TData >::init ( const TData * start,
u16 count )
inline

Definition at line 42 of file MapdataAccessorBase.hh.

◆ size()

template<typename T , typename TData >
u16 System::MapdataAccessorBase< T, TData >::size ( ) const
inlinenodiscard

Definition at line 38 of file MapdataAccessorBase.hh.

Member Data Documentation

◆ m_entries

template<typename T , typename TData >
T** System::MapdataAccessorBase< T, TData >::m_entries
protected

Definition at line 54 of file MapdataAccessorBase.hh.

◆ m_entryCount

template<typename T , typename TData >
u16 System::MapdataAccessorBase< T, TData >::m_entryCount
protected

Definition at line 55 of file MapdataAccessorBase.hh.

◆ m_sectionHeader

template<typename T , typename TData >
const MapSectionHeader* System::MapdataAccessorBase< T, TData >::m_sectionHeader
protected

Definition at line 56 of file MapdataAccessorBase.hh.