Choreonoid  1.8
Public Member Functions | Protected Member Functions | List of all members
cnoid::LazySignal< SignalType > Class Template Reference

#include <LazySignal.h>

Inheritance diagram for cnoid::LazySignal< SignalType >:
cnoid::LazySignalBase cnoid::LazyCaller

Public Member Functions

 LazySignal (int priority=LazyCaller::PRIORITY_HIGH)
 
 LazySignal (std::function< void()> emitFunction, int priority=LazyCaller::PRIORITY_HIGH)
 
SignalType & signal ()
 
- Public Member Functions inherited from cnoid::LazySignalBase
void request ()
 
void requestBlocking (Connection connection)
 
void emit ()
 
- Public Member Functions inherited from cnoid::LazyCaller
 LazyCaller ()
 
 LazyCaller (const std::function< void(void)> &function, int priority=HighPriority)
 
 LazyCaller (const LazyCaller &org)
 
virtual ~LazyCaller ()
 
void setFunction (const std::function< void(void)> &function)
 
void setPriority (int priority)
 
void setConservative (bool on)
 
bool isPending () const
 
void flush ()
 
void operator() ()
 
void cancel ()
 

Protected Member Functions

virtual void defaultEmitFunction () override
 
- Protected Member Functions inherited from cnoid::LazySignalBase
 LazySignalBase (int priority)
 
 LazySignalBase (std::function< void()> emitFunction, int priority)
 

Additional Inherited Members

- Public Types inherited from cnoid::LazyCaller
enum  Priority {
  HighPriority = 0, NormalPriority, LowPriority, MinimumPriority,
  PRIORITY_HIGH = HighPriority, PRIORITY_NORMAL = NormalPriority, PRIORITY_LOW = LowPriority
}
 
typedef void result_type
 
- Protected Attributes inherited from cnoid::LazySignalBase
std::function< void()> emitFunction
 
std::vector< ConnectionconnectionsToBlock
 

Constructor & Destructor Documentation

◆ LazySignal() [1/2]

template<class SignalType >
cnoid::LazySignal< SignalType >::LazySignal ( int  priority = LazyCaller::PRIORITY_HIGH)
inline

◆ LazySignal() [2/2]

template<class SignalType >
cnoid::LazySignal< SignalType >::LazySignal ( std::function< void()>  emitFunction,
int  priority = LazyCaller::PRIORITY_HIGH 
)
inline

Member Function Documentation

◆ defaultEmitFunction()

template<class SignalType >
virtual void cnoid::LazySignal< SignalType >::defaultEmitFunction ( )
inlineoverrideprotectedvirtual

Implements cnoid::LazySignalBase.

◆ signal()

template<class SignalType >
SignalType& cnoid::LazySignal< SignalType >::signal ( )
inline

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