メモリアロケータ基底クラス
More...
#include <GxAllocator.h>
|
|
|
constexpr void * | getAddress (void) const |
| | 確保アドレス取得
|
| |
|
constexpr u32 | getSize (void) const |
| | 確保サイズ取得
|
| |
|
constexpr u32 | getAttribute (void) const |
| | アトリビュート取得
|
| |
|
constexpr void | setAttribute (u32 attribute) |
| | アトリビュート設定
|
| |
|
constexpr void | addAttribute (u32 attribute) |
| | アトリビュート追加
|
| |
|
constexpr GxMemory::TYPE | getMemoryType (void) const |
| | メモリ確保タイプ取得
|
| |
|
constexpr | GxClassBase (void) |
| | コンストラクタ
|
| |
|
constexpr | GxClassBase (const GxClassBase &base) |
| | コピーコンストラクタ
|
| |
|
| ~GxClassBase (void) override |
| | デストラクタ
|
| |
|
constexpr | GxClassBaseRoot (void) |
| | コンストラクタ
|
| |
|
constexpr | GxClassBaseRoot (const GxClassBaseRoot &) |
| | コピーコンストラクタ
|
| |
|
virtual | ~GxClassBaseRoot (void) |
| | デストラクタ
|
| |
|
constexpr GxClassBaseRoot & | operator= (const GxClassBaseRoot &) |
| | 代入演算子
|
| |
|
virtual GxRtti & | getRtti (void) const =0 |
| | Rttiの取得
|
| |
| virtual GX_FORCE_INLINE const GxTypedObject * | getDefaultObject (void) |
| | デフォルトオブジェクトを取得
|
| |
|
GX_FORCE_INLINE b32 | isDefaultObject (void) |
| | デフォルトオブジェクト判定
|
| |
|
|
static GX_FORCE_INLINE GxRtti & | __getStaticRtti (void) |
| | Rttiの取得
|
| |
◆ ATTRIBUTE
属性
| Enumerator |
|---|
| ATTRIBUTE_ZERO_CLEAR | 確保時に0クリア
|
| ATTRIBUTE_THREAD_SAFE | スレッド間の排他処理を有効にします
|
| ATTRIBUTE_SEQUENTIAL_THREAD_SAFE | シーケンシャルスレッドマルチ動作間の排他処理を有効にします
|
| ATTRIBUTE_TRACE | メモリ確保・解放時にログを出力
|
| ATTRIBUTE_LOCKED_TRACE | ロック・アンロック時にログを出力
|
◆ GxAllocator()
コンストラクタ
- Parameters
-
| type | [in] メモリ確保タイプ |
| name | [in] アロケータ名 |
◆ allocateMemory()
メモリ確保
- Parameters
-
| type | [in] 確保タイプ (※未使用) |
| size | [in] 確保サイズ |
| filename | [in] 呼び出し元ファイル名 (※DEBUG時のみ) |
| line | [in] 呼び出し元ソースライン番号 (※DEBUG時のみ) |
| alignment | [in] メモリアライメント |
- Returns
- 確保メモリアドレス
Reimplemented in GxAllocatorFrame, and GxAllocatorHeap.
◆ freeMemory()
| void GxAllocator::freeMemory |
( |
void * | pAddress | ) |
|
|
virtual |
メモリ解放
- Parameters
-
| pAddress | [in] 解放アドレス |
| filename | [in] 呼び出し元ファイル名 (※DEBUG時のみ) |
| line | [in] 呼び出し元ソースライン番号 (※DEBUG時のみ) |
Reimplemented in GxAllocatorFrame, and GxAllocatorHeap.
◆ initializeAllocateBuffer()
| GX_FORCE_INLINE void GxAllocator::initializeAllocateBuffer |
( |
void * | pAddress, |
|
|
u32 | size ) |
|
protected |
確保メモリ初期化
- Parameters
-
| pAddress | [in,out] 確保メモリポインタ |
| size | [in] 確保サイズ |
◆ isValidAddr()
| b32 GxAllocator::isValidAddr |
( |
const void * | pAddress | ) |
|
|
virtual |
メモリ範囲チェック
- Parameters
-
- Returns
- 対象アドレスはアロケータの確保領域内ならtrue
◆ reallocMemory()
| void * GxAllocator::reallocMemory |
( |
void * | pAddress, |
|
|
u32 | size ) |
|
virtual |
メモリ割り当てサイズ変更
- Parameters
-
| pAddress | [in] 変更元アドレス |
| size | [in] 変更後サイズ |
| filename | [in] 呼び出し元ファイル名 (※DEBUG時のみ) |
| line | [in] 呼び出し元ソースライン番号 (※DEBUG時のみ) |
- Returns
- 変更後メモリアドレス (nullptrの場合:再確保失敗)
Reimplemented in GxAllocatorHeap.
◆ terminateAllocateBuffer()
| GX_FORCE_INLINE void GxAllocator::terminateAllocateBuffer |
( |
void * | pAddress, |
|
|
u32 | size ) |
|
protected |
確保メモリ終了
- Parameters
-
| pAddress | [in,out] 確保メモリポインタ |
| size | [in] 確保サイズ |
The documentation for this class was generated from the following files:
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxAllocator.h
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxAllocator.cpp