Alternate e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
alt::WorkerTemplate クラス

#include <WorkerTemplate.hpp>

公開メンバ関数

 WorkerTemplate ()
 コンストラクタ
 
virtual ~WorkerTemplate ()
 デストラクタ
 
template<typename Function >
bool Command (Function function, Message message)
 コマンド処理
 
template<typename Function >
bool Exit (Function function)
 退出処理
 
WorkerStatus GetStatus ()
 状態取得
 
template<typename Function >
bool Init (Function function)
 初期化処理
 
template<typename Function >
Data Process (Function function, Data data)
 プロセス処理
 
template<typename Function >
bool Start (Function function)
 開始処理
 
template<typename Function >
bool Stop (Function function)
 終了処理
 

限定公開メンバ関数

template<typename Function >
bool CriticalAction (Function function)
 排他処理共通
 
template<typename Function >
bool CriticalCommand (Function function, Message message)
 Command処理
 
template<typename Function >
Data CriticalProcess (Function function, Data data)
 Process処理
 

非公開変数類

CriticalSection _criticalSection
 
WorkerStatus _workerStatus
 

詳解

WorkerTemplate.hpp118 行目に定義があります。

構築子と解体子

◆ WorkerTemplate()

alt::WorkerTemplate::WorkerTemplate ( )
inline

コンストラクタ

WorkerTemplate.hpp122 行目に定義があります。

参照先 _workerStatus, alt::Created.

◆ ~WorkerTemplate()

virtual alt::WorkerTemplate::~WorkerTemplate ( )
inlinevirtual

デストラクタ

WorkerTemplate.hpp128 行目に定義があります。

関数詳解

◆ Command()

template<typename Function >
bool alt::WorkerTemplate::Command ( Function  function,
Message  message 
)
inline

コマンド処理

WorkerTemplate.hpp158 行目に定義があります。

参照先 _workerStatus, alt::BeforeExecute, CriticalCommand(), alt::Executed.

参照元 MiddleLibraryTest::TEST_CLASS().

◆ CriticalAction()

template<typename Function >
bool alt::WorkerTemplate::CriticalAction ( Function  function)
inlineprotected

排他処理共通

WorkerTemplate.hpp214 行目に定義があります。

参照先 _criticalSection, alt::CriticalSection::Enter(), alt::CriticalSection::Leave().

参照元 Exit(), Init(), Start(), Stop().

◆ CriticalCommand()

template<typename Function >
bool alt::WorkerTemplate::CriticalCommand ( Function  function,
Message  message 
)
inlineprotected

Command処理

WorkerTemplate.hpp227 行目に定義があります。

参照先 _criticalSection, alt::CriticalSection::Enter(), alt::CriticalSection::Leave().

参照元 Command().

◆ CriticalProcess()

template<typename Function >
Data alt::WorkerTemplate::CriticalProcess ( Function  function,
Data  data 
)
inlineprotected

Process処理

todo:
C4172 ローカル変数またはテンポラリのアドレスを返します

WorkerTemplate.hpp240 行目に定義があります。

参照先 _criticalSection, alt::CriticalSection::Enter(), alt::CriticalSection::Leave().

参照元 Process().

◆ Exit()

template<typename Function >
bool alt::WorkerTemplate::Exit ( Function  function)
inline

退出処理

WorkerTemplate.hpp197 行目に定義があります。

参照先 _workerStatus, alt::BeforeExit, CriticalAction(), alt::Exited.

参照元 MiddleLibraryTest::TEST_CLASS().

◆ GetStatus()

WorkerStatus alt::WorkerTemplate::GetStatus ( )
inline

状態取得

WorkerTemplate.hpp209 行目に定義があります。

参照先 _workerStatus.

◆ Init()

template<typename Function >
bool alt::WorkerTemplate::Init ( Function  function)
inline

初期化処理

WorkerTemplate.hpp132 行目に定義があります。

参照先 _workerStatus, alt::BeforeInitialize, CriticalAction(), alt::Initialized.

参照元 MiddleLibraryTest::TEST_CLASS().

◆ Process()

template<typename Function >
Data alt::WorkerTemplate::Process ( Function  function,
Data  data 
)
inline

プロセス処理

WorkerTemplate.hpp171 行目に定義があります。

参照先 _workerStatus, alt::BeforeProcess, CriticalProcess(), alt::Processed.

参照元 MiddleLibraryTest::TEST_CLASS().

◆ Start()

template<typename Function >
bool alt::WorkerTemplate::Start ( Function  function)
inline

開始処理

WorkerTemplate.hpp145 行目に定義があります。

参照先 _workerStatus, alt::BeforeStart, CriticalAction(), alt::Started.

参照元 MiddleLibraryTest::TEST_CLASS().

◆ Stop()

template<typename Function >
bool alt::WorkerTemplate::Stop ( Function  function)
inline

終了処理

WorkerTemplate.hpp184 行目に定義があります。

参照先 _workerStatus, alt::BeforeStop, CriticalAction(), alt::Stopped.

参照元 MiddleLibraryTest::TEST_CLASS().

メンバ詳解

◆ _criticalSection

CriticalSection alt::WorkerTemplate::_criticalSection
private

WorkerTemplate.hpp253 行目に定義があります。

参照元 CriticalAction(), CriticalCommand(), CriticalProcess().

◆ _workerStatus

WorkerStatus alt::WorkerTemplate::_workerStatus
private

WorkerTemplate.hpp252 行目に定義があります。

参照元 WorkerTemplate(), Command(), Exit(), GetStatus(), Init(), Process(), Start(), Stop().


このクラス詳解は次のファイルから抽出されました: