iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Public Attributes | List of all members
imstk::Command Class Reference

Stores everything needed to invoke an event A call may not be present, in which case invoke doesn't do anything. More...

#include <imstkEventObject.h>

Public Member Functions

 Command (std::function< void(Event *)> call, std::shared_ptr< Event > event)
 
void invoke ()
 Call the underlying function if present then delete the event data.
 

Public Attributes

std::function< void(Event *)> m_call = nullptr
 
std::shared_ptr< Eventm_event = nullptr
 

Detailed Description

Stores everything needed to invoke an event A call may not be present, in which case invoke doesn't do anything.

Definition at line 47 of file imstkEventObject.h.


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