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

連結リストクラス More...

#include <GxList.h>

Inheritance diagram for GxList:
Collaboration diagram for GxList:

Classes

class  GxIterator
 イテレータ More...
 
class  GxNode
 連結リストノードクラス More...
 

Public Member Functions

アクセサ
GX_FORCE_INLINE GxIterator< void * > begin (void)
 先頭を取得
 
GX_FORCE_INLINE GxIterator< void * > end (void)
 終端を取得
 
constexpr GxNodegetTop (void) const
 先頭を取得
 
constexpr GxNodegetBottom (void) const
 終端を取得
 
GxNodegetNode (u32 index) const
 指定インデックスのノードを取得
 
constexpr u32 getCount (void) const
 要素数を取得
 
constexpr void setAllocatorType (GxAllocatorList::ALLOCATOR_TYPE allocatorType)
 アロケータタイプを指定
 
操作
GxNodeaddTop (void *pObject)
 先頭に追加
 
GxNodeaddBottom (void *pObject)
 終端に追加
 
void insert (GxNode *pNode, void *pObject)
 指定ノードの後に挿入
 
virtual void erase (GxNode *pNode)
 対象ノードを削除
 
virtual void eraseAll (void)
 全ノードを削除
 
- 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)
 デフォルトオブジェクト判定
 

Protected Attributes

メンバ変数
GxList::GxNode_pTop
 先頭ノード
 
GxList::GxNode_pBottom
 終端ノード
 
u32 _count
 ノード数
 
GxAllocatorList::ALLOCATOR_TYPE _allocatorType
 アロケータ種別
 

初期化

 GxList (void)
 デフォルトコンストラクタ
 
 GxList (GxAllocatorList::ALLOCATOR_TYPE allocatorType)
 コンストラクタ
 
 ~GxList (void) override
 デストラクタ
 
virtual GxNodeallocGxNode (void)
 GxNodeのメモリ確保
 

Additional Inherited Members

- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 

Detailed Description

連結リストクラス

Constructor & Destructor Documentation

◆ GxList()

GxList::GxList ( GxAllocatorList::ALLOCATOR_TYPE allocatorType)

コンストラクタ

Parameters
allocatorType[in] 使用アロケータ

Member Function Documentation

◆ addBottom()

GxList::GxNode * GxList::addBottom ( void * pObject)

終端に追加

Parameters
pObject[in] 追加オブジェクト
Returns
追加ノード
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTop()

GxList::GxNode * GxList::addTop ( void * pObject)

先頭に追加

Parameters
pObject[in] 追加オブジェクト
Returns
追加ノード
Here is the call graph for this function:

◆ allocGxNode()

GxList::GxNode * GxList::allocGxNode ( void )
protectedvirtual

GxNodeのメモリ確保

Returns
確保ノード
Here is the caller graph for this function:

◆ begin()

GX_FORCE_INLINE GxList::GxIterator< void * > GxList::begin ( void )

先頭を取得

先頭を取得

Returns
イテレータ

◆ end()

GX_FORCE_INLINE GxList::GxIterator< void * > GxList::end ( void )

終端を取得

終端を取得

Returns
イテレータ
Here is the call graph for this function:

◆ erase()

void GxList::erase ( GxNode * pNode)
virtual

対象ノードを削除

Parameters
pNode[in] 削除ノード

◆ getNode()

GxList::GxNode * GxList::getNode ( u32 index) const

指定インデックスのノードを取得

Parameters
index[in] インデックス
Returns
取得ノード

◆ insert()

void GxList::insert ( GxNode * pNode,
void * pObject )

指定ノードの後に挿入

Parameters
pNode[in] ノード
pObject[in] 追加オブジェクト
Here is the call graph for this function:

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