OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TestCallObserver Class Reference

#include <TestCallObserver.h>

Inheritance diagram for TestCallObserver:
EngineCallObserver

Public Member Functions

void reset ()
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
template<class T >
std::function< AccessibleVector< T >()> record (EngineCall call)
 
- Public Member Functions inherited from EngineCallObserver
virtual ~EngineCallObserver ()=default
 
template<class T >
void notify (EngineCall call, const T &data)
 

Protected Member Functions

virtual void notify (EngineCall call, const std::type_info &type, const void *data) override
 
virtual void notify (EngineCall call, const std::type_info &type, const void *data)=0
 

Private Attributes

bool _enabled = false
 
IndexedArray< std::function< void(const std::type_info &, const void *)>, CALL_FIRST, CALL_LAST_handlers
 

Member Function Documentation

◆ isEnabled()

bool TestCallObserver::isEnabled ( ) const
inline

◆ notify()

virtual void TestCallObserver::notify ( EngineCall  call,
const std::type_info &  type,
const void *  data 
)
inlineoverrideprotectedvirtual

Implements EngineCallObserver.

◆ record()

template<class T >
std::function< AccessibleVector< T >()> TestCallObserver::record ( EngineCall  call)
inline

◆ reset()

void TestCallObserver::reset ( )
inline

◆ setEnabled()

void TestCallObserver::setEnabled ( bool  enabled)
inline

Member Data Documentation

◆ _enabled

bool TestCallObserver::_enabled = false
private

◆ _handlers

IndexedArray<std::function<void(const std::type_info &, const void *)>, CALL_FIRST, CALL_LAST> TestCallObserver::_handlers
private

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