![]() |
VR-Forces Developer's Guide
|
API for writing callbacks.

Classes | |
| class | RefWrapper |
| class | Wrapper |
Public Types | |
| typedef boost::shared_ptr < CallbackInterface > | Ptr |
Public Member Functions | |
| virtual | ~CallbackInterface () |
| virtual std::string | label () const |
| virtual void | run ()=0 |
| virtual void | cancel () |
| virtual bool | valid () const |
| typedef boost::shared_ptr<CallbackInterface> DtVrfCallbackQueue::CallbackInterface::Ptr |
|
virtual |
Virtual destructor.
|
virtual |
Name of callback, used only for logging and debugging.
Reimplemented in DtVrfCallbackQueue::CallbackInterface::RefWrapper, and DtVrfCallbackQueue::CallbackInterface::Wrapper.
Referenced by DtVrfCallbackQueue::CallbackInterface::Wrapper::label(), and DtVrfCallbackQueue::CallbackInterface::RefWrapper::label().
|
pure virtual |
Run callback.
Implemented in DtLocalObject::SimObjectCallback, DtVrfCallbackQueue::CallbackInterface::RefWrapper, DtVrfCallbackQueue::CallbackInterface::Wrapper, DtSnapshotManager::DtWriteSnapshotJob, and makVrf::DtSimObjectNetInterface::ParallelContainer.
Referenced by DtVrfCallbackQueue::CallbackInterface::Wrapper::run(), and DtVrfCallbackQueue::CallbackInterface::RefWrapper::run().
|
virtual |
Will be called if the callback will not be run before it's discarded.
Reimplemented in DtVrfCallbackQueue::CallbackInterface::RefWrapper, and DtVrfCallbackQueue::CallbackInterface::Wrapper.
Referenced by DtVrfCallbackQueue::CallbackInterface::Wrapper::cancel(), and DtVrfCallbackQueue::CallbackInterface::RefWrapper::cancel().
|
virtual |
Returns false the callback has become null.