Equalizer 1.0

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 uint32_t commitNB (const uint32_t incarnation)
 Start committing a new version of this object.
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 = eq::fabric::Serializable::DIRTY_CUSTOM << 0, DIRTY_PROXYDATA = eq::fabric::Serializable::DIRTY_CUSTOM << 1, DIRTY_FLAGS = eq::fabric::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 eq::fabric::Serializable.

Definition at line 100 of file share/Equalizer/examples/eqNBody/frameData.h.


Member Function Documentation

uint32_t eqNbody::FrameData::commitNB ( const uint32_t  incarnation) [virtual]

Start committing a new version of this object.

The commit transaction has to be completed using commitSync, passing the returned identifier.

Parameters:
incarnationthe commit incarnation for auto obsoletion.
Returns:
the commit identifier to be passed to commitSync
See also:
commit(), commitSync()

Reimplemented from co::Object.

Definition at line 134 of file eqNBody/frameData.cpp.

References co::Object::commitNB().

Here is the call graph for this function:

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 eq::fabric::Serializable.

Definition at line 81 of file eqNBody/frameData.cpp.

References eq::fabric::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 eq::fabric::Serializable.

Definition at line 57 of file eqNBody/frameData.cpp.

References eq::fabric::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 Sun May 8 2011 19:11:10 for Equalizer 1.0 by  doxygen 1.7.3