Apache Mesos
Public Member Functions | Public Attributes | List of all members
process::DispatchEvent Struct Reference

#include <event.hpp>

Inheritance diagram for process::DispatchEvent:
process::Event

Public Member Functions

 DispatchEvent (std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)>> _f, const Option< const std::type_info * > &_functionType)
 
 DispatchEvent (DispatchEvent &&)=default
 
 DispatchEvent (const DispatchEvent &)=delete
 
DispatchEventoperator= (DispatchEvent &&)=default
 
DispatchEventoperator= (const DispatchEvent &)=delete
 
void visit (EventVisitor *visitor) const override
 
void consume (EventConsumer *consumer)&&override
 
- Public Member Functions inherited from process::Event
virtual ~Event ()
 
template<typename T >
bool is () const
 
template<typename T >
const T & as () const
 
 operator JSON::Object () const
 

Public Attributes

std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)> > f
 
Option< const std::type_info * > functionType
 

Constructor & Destructor Documentation

process::DispatchEvent::DispatchEvent ( std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)>>  _f,
const Option< const std::type_info * > &  _functionType 
)
inline
process::DispatchEvent::DispatchEvent ( DispatchEvent &&  )
default
process::DispatchEvent::DispatchEvent ( const DispatchEvent )
delete

Member Function Documentation

void process::DispatchEvent::consume ( EventConsumer consumer)
inlineoverridevirtual

Implements process::Event.

DispatchEvent& process::DispatchEvent::operator= ( DispatchEvent &&  )
default
DispatchEvent& process::DispatchEvent::operator= ( const DispatchEvent )
delete
void process::DispatchEvent::visit ( EventVisitor visitor) const
inlineoverridevirtual

Implements process::Event.

Member Data Documentation

std::unique_ptr<lambda::CallableOnce<void(ProcessBase*)> > process::DispatchEvent::f
Option<const std::type_info*> process::DispatchEvent::functionType

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