OROCHI
 
Loading...
Searching...
No Matches
GxAllocatorDefault Class Reference

ディフォルトアロケータクラス More...

#include <GxAllocatorDefault.h>

Inheritance diagram for GxAllocatorDefault:
Collaboration diagram for GxAllocatorDefault:

操作

void * allocateMemory (u32 size, GxMemory::ALIGNMENT alignment=GxMemory::ALIGNMENT::_16)
 メモリ確保
 
void freeMemory (void *pAddress)
 メモリ解放
 

アクセサ

constexpr u32 getSize (void) const
 確保サイズ取得
 
b32 isValidAddress (void *pAddress) const
 アドレスチェック
 
static GxAllocatorDefaultgetInstance (void)
 インスタンス取得
 

Additional Inherited Members

- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 

Detailed Description

ディフォルトアロケータクラス

Member Function Documentation

◆ allocateMemory()

void * GxAllocatorDefault::allocateMemory ( u32 size,
GxMemory::ALIGNMENT alignment = GxMemory::ALIGNMENT::_16 )

メモリ確保

Parameters
size[in] 確保サイズ
filename[in] 呼び出し元ファイル名 (※DEBUG時のみ)
line[in] 呼び出し元ソースライン番号 (※DEBUG時のみ)
alignment[in] メモリアライメント
Returns
確保メモリアドレス
Here is the call graph for this function:

◆ freeMemory()

void GxAllocatorDefault::freeMemory ( void * pAddress)

メモリ解放

Parameters
pAddress[in] 解放アドレス
filename[in] 呼び出し元ファイル名 (※DEBUG時のみ)
line[in] 呼び出し元ソースライン番号 (※DEBUG時のみ)

◆ isValidAddress()

b32 GxAllocatorDefault::isValidAddress ( void * pAddress) const

アドレスチェック

Parameters
pAddress[in] アドレス
Returns
成功ならtrue

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