Choreonoid  1.8
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cnoid::LazySignalBase Class Referenceabstract

#include <LazySignal.h>

Inheritance diagram for cnoid::LazySignalBase:
cnoid::LazyCaller cnoid::LazySignal< SignalType > cnoid::LazySignal< cnoid::Signal< void()> >

Public Member Functions

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

 LazySignalBase (int priority)
 
 LazySignalBase (std::function< void()> emitFunction, int priority)
 
virtual void defaultEmitFunction ()=0
 

Protected Attributes

std::function< void()> emitFunction
 
std::vector< ConnectionconnectionsToBlock
 

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
 

Constructor & Destructor Documentation

◆ LazySignalBase() [1/2]

LazySignalBase::LazySignalBase ( int  priority)
protected

◆ LazySignalBase() [2/2]

LazySignalBase::LazySignalBase ( std::function< void()>  emitFunction,
int  priority 
)
protected

Member Function Documentation

◆ defaultEmitFunction()

virtual void cnoid::LazySignalBase::defaultEmitFunction ( )
protectedpure virtual

◆ emit()

void cnoid::LazySignalBase::emit ( )
inline

◆ request()

void cnoid::LazySignalBase::request ( )
inline

◆ requestBlocking()

void cnoid::LazySignalBase::requestBlocking ( Connection  connection)
inline

Member Data Documentation

◆ connectionsToBlock

std::vector<Connection> cnoid::LazySignalBase::connectionsToBlock
protected

◆ emitFunction

std::function<void()> cnoid::LazySignalBase::emitFunction
protected

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