TrueReality  v0.1.1912
trManager::InvokableFunctorCaller< Message_T > Class Template Reference

#include <Invokable.h>

Inheritance diagram for trManager::InvokableFunctorCaller< Message_T >:
Collaboration diagram for trManager::InvokableFunctorCaller< Message_T >:

Public Types

using InvokableFunc = trUtil::Functor< void, TYPELIST_1(const Message_T &)>
 
- Public Types inherited from trBase::SmrtClass
using BaseClass = osg::Referenced
 

Public Member Functions

 InvokableFunctorCaller (InvokableFunc func)
 
virtual void Call (const trManager::MessageBase &message)
 
- Public Member Functions inherited from trManager::InvokableFunctorCallerBase
virtual const std::string & GetType () const override
 Holds the class type name for efficient comparisons. More...
 
- Public Member Functions inherited from trBase::SmrtClass
 SmrtClass ()
 Adds an easy and swappable access to the base class. More...
 
 SmrtClass (bool threadSafeRefUnref)
 Constructor. More...
 
 SmrtClass (const SmrtClass &inst)
 Copy constructor. More...
 
virtual bool GetThreadSafeRefUnref ()
 Get whether a mutex is used to ensure Ref() and UnRef() are thread safe. More...
 
OpenThreads::Mutex * GetRefMutex () const
 Get the mutex used to ensure thread safety of Ref()/UnRef(). More...
 
int Ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int Unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int UnRefNoDelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int ReferenceCount () const
 Return the number of pointers currently referencing this object. More...
 

Private Attributes

InvokableFunc mFunctor
 

Additional Inherited Members

- Static Public Member Functions inherited from trBase::SmrtClass
static OpenThreads::Mutex * GetGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all trBase::SmrtClass. More...
 
- Static Public Attributes inherited from trManager::InvokableFunctorCallerBase
static const trUtil::RefStr CLASS_TYPE = trUtil::RefStr("trManager::InvokableFunctorCallerBase")
 
- Protected Member Functions inherited from trBase::SmrtClass
 ~SmrtClass ()
 

Detailed Description

template<typename Message_T = trManager::MessageBase>
class trManager::InvokableFunctorCaller< Message_T >

Definition at line 55 of file Invokable.h.

Member Typedef Documentation

◆ InvokableFunc

template<typename Message_T = trManager::MessageBase>
using trManager::InvokableFunctorCaller< Message_T >::InvokableFunc = trUtil::Functor<void, TYPELIST_1(const Message_T&)>

Definition at line 58 of file Invokable.h.

Constructor & Destructor Documentation

◆ InvokableFunctorCaller()

template<typename Message_T = trManager::MessageBase>
trManager::InvokableFunctorCaller< Message_T >::InvokableFunctorCaller ( InvokableFunc  func)
inline

Definition at line 60 of file Invokable.h.

Member Function Documentation

◆ Call()

template<typename Message_T = trManager::MessageBase>
virtual void trManager::InvokableFunctorCaller< Message_T >::Call ( const trManager::MessageBase message)
inlinevirtual

Implements trManager::InvokableFunctorCallerBase.

Definition at line 65 of file Invokable.h.

Member Data Documentation

◆ mFunctor

template<typename Message_T = trManager::MessageBase>
InvokableFunc trManager::InvokableFunctorCaller< Message_T >::mFunctor
private

Definition at line 70 of file Invokable.h.


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