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

#include <event.hpp>

Inheritance diagram for process::MessageEvent:
process::Event

Public Member Functions

 MessageEvent (Message &&_message)
 
 MessageEvent (const UPID &from, const UPID &to, const std::string &name, const char *data, size_t length)
 
 MessageEvent (const UPID &from, const UPID &to, std::string &&name, std::string &&data)
 
 MessageEvent (MessageEvent &&that)=default
 
 MessageEvent (const MessageEvent &that)=delete
 
MessageEventoperator= (MessageEvent &&)=default
 
MessageEventoperator= (const MessageEvent &)=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

Message message
 

Constructor & Destructor Documentation

process::MessageEvent::MessageEvent ( Message &&  _message)
inlineexplicit
process::MessageEvent::MessageEvent ( const UPID from,
const UPID to,
const std::string &  name,
const char *  data,
size_t  length 
)
inline
process::MessageEvent::MessageEvent ( const UPID from,
const UPID to,
std::string &&  name,
std::string &&  data 
)
inline
process::MessageEvent::MessageEvent ( MessageEvent &&  that)
default
process::MessageEvent::MessageEvent ( const MessageEvent that)
delete

Member Function Documentation

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

Implements process::Event.

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

Implements process::Event.

Member Data Documentation

Message process::MessageEvent::message

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