Equalizer
1.4.1
|
Public Member Functions | |
void | init (const unsigned int offset, const unsigned int numBytes, float *pos, float *vel, float *col) |
void | init (float *pos, float *vel, float *col) |
void | exit () |
void | markDirty () |
unsigned int | getOffset () const |
unsigned int | getNumBytes () const |
float * | getPosition () const |
float * | getVelocity () const |
Protected Member Functions | |
virtual void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
Worker for pack() and getInstanceData(). | |
virtual void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
Worker for unpack() and applyInstanceData(). | |
virtual ChangeType | getChangeType () const |
Protected Types | |
enum | DirtyBits { DIRTY_DATA = co::Serializable::DIRTY_CUSTOM << 0 } |
The changed parts of the serializable since the last pack(). More... |
Definition at line 37 of file sharedDataProxy.h.
enum eqNbody::SharedDataProxy::DirtyBits [protected] |
The changed parts of the serializable since the last pack().
Subclasses should define their own bits, starting at DIRTY_CUSTOM.
Reimplemented from co::Serializable.
Definition at line 62 of file sharedDataProxy.h.
void eqNbody::SharedDataProxy::deserialize | ( | co::DataIStream & | , |
const uint64_t | |||
) | [protected, virtual] |
Worker for unpack() and applyInstanceData().
This function is called with the dirty bits send by the master instance. The dirty bits are received beforehand, and do not need to be deserialized by the overriding method.
Reimplemented from co::Serializable.
Definition at line 60 of file sharedDataProxy.cpp.
References co::DataIStream::read().
virtual ChangeType eqNbody::SharedDataProxy::getChangeType | ( | ) | const [inline, protected, virtual] |
Reimplemented from co::Serializable.
Definition at line 61 of file sharedDataProxy.h.
References co::Object::UNBUFFERED.
void eqNbody::SharedDataProxy::serialize | ( | co::DataOStream & | , |
const uint64_t | |||
) | [protected, virtual] |
Worker for pack() and getInstanceData().
Override this and deserialize() if you want to distribute subclassed data.
This method is called with DIRTY_ALL from getInstanceData() and with the actual dirty bits from pack(), which also resets the dirty state afterwards. The dirty bits are transmitted beforehand, and do not need to be transmitted by the overriding method.
Reimplemented from co::Serializable.
Definition at line 43 of file sharedDataProxy.cpp.
References co::DataOStream::write().