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

システム基底クラス More...

#include <GxSysBase.h>

Inheritance diagram for GxSysBase:
Collaboration diagram for GxSysBase:

Classes

class  GxScopeLock
 スコープ内システムロッククラス More...
 

Public Member Functions

アクセサ
template<typename T >
T * getModule (void) const
 モジュールを取得
 
- 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 Types

定義
enum class  LOCK_TYPE { SEQUENTIAL_THREAD_SAFE , THREAD_SAFE }
 ロックタイプ More...
 

初期化

 GxSysBase (void)
 デフォルトコンストラクタ
 
 ~GxSysBase (void) override
 デストラクタ
 
virtual b32 initialize (const GxClassBase *pInitialiInformation=nullptr)
 初期化
 
virtual void terminate (void)
 終了処理
 
void terminateGxModules (void)
 GXモジュールの終了処理
 

操作

virtual void update (void)
 更新
 
b32 isLocked (void)
 クリティカルセクションのロック状態を確認する
 
void sleep (f32 time)
 スリープ(スクリプト用)
 
void lock (LOCK_TYPE type=LOCK_TYPE::THREAD_SAFE)
 クリティカルセクションに入る
 
void unlock (LOCK_TYPE type=LOCK_TYPE::THREAD_SAFE)
 クリティカルセクションを出る
 
template<typename T >
T * addModule (void)
 モジュールを作成
 
template<typename T >
void removeModule (void)
 モジュールを削除
 

Additional Inherited Members

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

Detailed Description

システム基底クラス

Member Enumeration Documentation

◆ LOCK_TYPE

enum class GxSysBase::LOCK_TYPE
strongprotected

ロックタイプ

Enumerator
SEQUENTIAL_THREAD_SAFE 

同期スレッドセーフ

THREAD_SAFE 

全スレッドセーフ

Member Function Documentation

◆ initialize()

b32 GxSysBase::initialize ( const GxClassBase * pInitialiInformation = nullptr)
virtual

◆ isLocked()

b32 GxSysBase::isLocked ( void )

クリティカルセクションのロック状態を確認する

Returns
ロック状態ならtrue
Here is the call graph for this function:

◆ lock()

void GxSysBase::lock ( LOCK_TYPE type = LOCK_TYPE::THREAD_SAFE)
protected

クリティカルセクションに入る

Parameters
type[in] ロックタイプ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sleep()

void GxSysBase::sleep ( f32 time)

スリープ(スクリプト用)

Parameters
time[in] 秒数
Here is the call graph for this function:

◆ terminate()

void GxSysBase::terminate ( void )
virtual

終了処理

Reimplemented in GxSysCollision, GxSysDynamicsBullet, GxSysFile, GxSysFilter, GxSysFont, GxSysInput, GxSysLight, GxSysMain, GxSysMovie, GxSysNetwork, GxSysP2P, GxSysPrimitive, GxSysRender, GxSysRenderBase, GxSysResource, GxSysShader, GxSysSound, GxSysStage, GxSysUnit, and GxSysUnitFlock.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unlock()

void GxSysBase::unlock ( LOCK_TYPE type = LOCK_TYPE::THREAD_SAFE)
protected

クリティカルセクションを出る

Parameters
type[in] ロックタイプ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void GxSysBase::update ( void )
virtual

更新

Reimplemented in GxSysCollision, GxSysDynamics, GxSysEnvironment, GxSysFont, GxSysInput, GxSysLight, GxSysLightBase, GxSysMain, GxSysNetwork, GxSysP2P, GxSysRender, GxSysRenderBase, GxSysResource, GxSysShader, GxSysSound, and GxSysStage.

Here is the call graph for this function:
Here is the caller graph for this function:

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