Equalizer  1.2.1
Public Member Functions | Protected Member Functions | Protected Types
eqNbody::SharedDataProxy Class Reference
+ Inheritance diagram for eqNbody::SharedDataProxy:
+ Collaboration diagram for eqNbody::SharedDataProxy:

List of all members.

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...

Detailed Description

Definition at line 37 of file sharedDataProxy.h.


Member Enumeration Documentation

The changed parts of the serializable since the last pack().

Subclasses should define their own bits, starting at DIRTY_CUSTOM.

Version:
1.0

Reimplemented from co::Serializable.

Definition at line 62 of file sharedDataProxy.h.


Member Function Documentation

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.

See also:
serialize()
Version:
1.0

Reimplemented from co::Serializable.

Definition at line 60 of file sharedDataProxy.cpp.

References co::DataIStream::read().

+ Here is the call graph for this function:

virtual ChangeType eqNbody::SharedDataProxy::getChangeType ( ) const [inline, protected, virtual]
Returns:
how the changes are to be handled.

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.

Version:
1.0

Reimplemented from co::Serializable.

Definition at line 43 of file sharedDataProxy.cpp.

References co::DataOStream::write().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Jun 8 2012 15:44:36 for Equalizer 1.2.1 by  doxygen 1.8.0