Collage
1.1.2
High-performance C++ library for developing object-oriented distributed applications.
|
An input command specialization for objects. More...
#include <objectICommand.h>
Public Member Functions | |
CO_API | ObjectICommand (LocalNodePtr local, NodePtr remote, ConstBufferPtr buffer, const bool swap) |
CO_API | ObjectICommand (const ICommand &command) |
Copy-construct an object command from a generic ICommand. More... | |
CO_API | ObjectICommand (const ObjectICommand &rhs) |
Copy-construct an object command. More... | |
virtual CO_API | ~ObjectICommand () |
Destruct an object command. More... | |
const uint128_t & | getObjectID () const |
uint32_t | getInstanceID () const |
Public Member Functions inherited from co::ICommand | |
CO_API | ICommand (LocalNodePtr local, NodePtr remote, ConstBufferPtr buffer, const bool swap) |
CO_API | ICommand (const ICommand &rhs) |
CO_API ICommand & | operator= (const ICommand &rhs) |
CO_API void | clear () |
CO_API uint32_t | getType () const |
CO_API uint32_t | getCommand () const |
CO_API uint64_t | getSize () const |
template<typename T > | |
T | get () |
NodePtr | getNode () const |
CO_API NodePtr | getRemoteNode () const override |
CO_API LocalNodePtr | getLocalNode () const override |
CO_API bool | isValid () const |
CO_API ConstBufferPtr | getBuffer () const |
CO_API void | setType (const CommandType type) |
CO_API void | setCommand (const uint32_t cmd) |
void | setDispatchFunction (const Dispatcher::Func &func) |
CO_API bool | operator() () |
Public Member Functions inherited from co::DataIStream | |
template<> | |
DataIStream & | operator>> (std::string &str) |
Read a std::string. More... | |
template<> | |
DataIStream & | operator>> (Object *&object) |
Deserialize an object (id+version). More... | |
template<> | |
DataIStream & | operator>> (std::vector< uint8_t > &value) |
Optimized specialization to read a std::vector of uint8_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< uint16_t > &value) |
Optimized specialization to read a std::vector of uint16_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< int16_t > &value) |
Optimized specialization to read a std::vector of int16_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< uint32_t > &value) |
Optimized specialization to read a std::vector of uint32_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< int32_t > &value) |
Optimized specialization to read a std::vector of int32_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< uint64_t > &value) |
Optimized specialization to read a std::vector of uint64_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< int64_t > &value) |
Optimized specialization to read a std::vector of int64_t. More... | |
template<> | |
DataIStream & | operator>> (std::vector< float > &value) |
Optimized specialization to read a std::vector of float. More... | |
template<> | |
DataIStream & | operator>> (std::vector< double > &value) |
Optimized specialization to read a std::vector of double. More... | |
template<> | |
DataIStream & | operator>> (std::vector< ObjectVersion > &value) |
Optimized specialization to read a std::vector of ObjectVersion. More... | |
virtual void | reset () |
void | setSwapping (const bool onOff) |
CO_API bool | isSwapping () const |
DataIStream & | operator= (const DataIStream &rhs) |
template<typename T > | |
T | read () |
template<class T > | |
DataIStream & | operator>> (T &value) |
Read a plain data item. More... | |
template<class T > | |
DataIStream & | operator>> (Array< T > array) |
Read a C array. More... | |
template<class T > | |
DataIStream & | operator>> (lunchbox::RefPtr< T > &) |
Read a lunchbox::RefPtr. More... | |
template<class T > | |
DataIStream & | operator>> (lunchbox::Buffer< T > &) |
Read a lunchbox::Buffer. More... | |
template<class T > | |
DataIStream & | operator>> (std::vector< T > &) |
Read a std::vector of serializable items. More... | |
template<class K , class V > | |
DataIStream & | operator>> (std::map< K, V > &) |
Read a std::map of serializable items. More... | |
template<class T > | |
DataIStream & | operator>> (std::set< T > &) |
Read a std::set of serializable items. More... | |
template<class K , class V > | |
DataIStream & | operator>> (stde::hash_map< K, V > &) |
Read a stde::hash_map of serializable items. More... | |
template<class T > | |
DataIStream & | operator>> (stde::hash_set< T > &) |
Read a stde::hash_set of serializable items. More... | |
template<typename O , typename C > | |
void | deserializeChildren (O *object, const std::vector< C * > &old, std::vector< C * > &result) |
CO_API const void * | getRemainingBuffer (const uint64_t size) |
CO_API uint64_t | getRemainingBufferSize () |
bool | wasUsed () const |
bool | hasData () |
An input command specialization for objects.
Definition at line 31 of file objectICommand.h.
CO_API co::ObjectICommand::ObjectICommand | ( | const ICommand & | command | ) |
Copy-construct an object command from a generic ICommand.
CO_API co::ObjectICommand::ObjectICommand | ( | const ObjectICommand & | rhs | ) |
Copy-construct an object command.
|
virtual |
Destruct an object command.