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

List of all members.

Public Member Functions

void init (unsigned int numBodies)
void initHostData ()
void exit ()
void updateParameters (NBodyConfig config, float clusterScale, float velocityScale, float ts)
void toggleStatistics ()
bool useStatistics () const
unsigned int getNumDataProxies (void) const
eq::uint128_t getProxyID (unsigned int ndx) const
eq::uint128_t getProxyVersion (unsigned int ndx) const
eq::uint128_t getVersionForProxyID (const eq::uint128_t &pid) const
void addProxyID (const eq::uint128_t &pid, const float *range)
void updateProxyID (const eq::uint128_t &pid, const eq::uint128_t &version, const float *range)
virtual eq::uint128_t commit ()
bool isReady ()
const float * getPosData () const
const float * getVelData () const
const float * getColData () const
float getTimeStep () const
float getClusterScale () const
float getVelocityScale () const
float * getPos () const
float * getVel () const
float * getCol () const
uint32_t getNumBytes (void) const
uint32_t getNumBodies (void) 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().

Protected Types

enum  DirtyBits { DIRTY_DATA = co::Serializable::DIRTY_CUSTOM << 0, DIRTY_PROXYDATA = co::Serializable::DIRTY_CUSTOM << 1, DIRTY_FLAGS = co::Serializable::DIRTY_CUSTOM << 2 }
 The changed parts of the serializable since the last pack(). More...

Detailed Description

Definition at line 46 of file share/Equalizer/examples/eqNBody/frameData.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 100 of file share/Equalizer/examples/eqNBody/frameData.h.


Member Function Documentation

void eqNbody::FrameData::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 81 of file eqNBody/frameData.cpp.

References co::Serializable::deserialize(), and co::DataIStream::read().

Referenced by eqPly::FrameData::deserialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void eqNbody::FrameData::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 57 of file eqNBody/frameData.cpp.

References co::Serializable::serialize(), and co::DataOStream::write().

Referenced by eqPly::FrameData::serialize().

+ Here is the call graph for this function:

+ Here is the caller 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