eqNbody::FrameData Class Reference

Inheritance diagram for eqNbody::FrameData:
Inheritance graph
[legend]
Collaboration diagram for eqNbody::FrameData:
Collaboration graph
[legend]

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
unsigned int getProxyID (unsigned int ndx) const
unsigned int getProxyVersion (unsigned int ndx) const
unsigned int getVersionForProxyID (unsigned int pid) const
void addProxyID (unsigned int pid, const float *range)
void updateProxyID (unsigned int pid, unsigned int version, const float *range)
virtual uint32_t commit ()
 Commit 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
unsigned int getNumBytes (void) const
unsigned int getNumBodies (void) const

Protected Types

enum  DirtyBits { DIRTY_DATA = eq::Object::DIRTY_CUSTOM << 0, DIRTY_PROXYDATA = eq::Object::DIRTY_CUSTOM << 1, DIRTY_FLAGS = eq::Object::DIRTY_CUSTOM << 2 }
 

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

More...

Protected Member Functions

virtual void serialize (eq::net::DataOStream &os, const uint64_t dirtyBits)
 Worker for pack() and getInstanceData().
virtual void deserialize (eq::net::DataIStream &is, const uint64_t dirtyBits)
 Worker for unpack() and applyInstanceData().

Detailed Description

Definition at line 34 of file examples/eqNBody/frameData.h.


Member Enumeration Documentation

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

Subclasses should define their own bits, starting at DIRTY_CUSTOM.

Reimplemented from eq::Object.

Definition at line 80 of file examples/eqNBody/frameData.h.


Member Function Documentation

uint32_t eqNbody::FrameData::commit (  )  [virtual]

Commit a new version of this object.

If the object has not changed no new version will be generated, that is, the previous version number is returned. This method is a convenience function for commitNB(); commitSync()

Returns:
the new head version.
See also:
commitNB, commitSync

Reimplemented from eq::net::Object.

Definition at line 144 of file examples/eqNBody/frameData.cpp.

References eq::net::Object::commit().

Here is the call graph for this function:

void eqNbody::FrameData::serialize ( eq::net::DataOStream os,
const uint64_t  dirtyBits 
) [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 eq::Object.

Definition at line 74 of file examples/eqNBody/frameData.cpp.

References eq::Object::serialize(), and eq::net::DataOStream::write().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void eqNbody::FrameData::deserialize ( eq::net::DataIStream is,
const uint64_t  dirtyBits 
) [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 transmitted by the overriding method.

See also:
serialize()

Reimplemented from eq::Object.

Definition at line 97 of file examples/eqNBody/frameData.cpp.

References eq::Object::deserialize(), and eq::net::DataIStream::read().

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

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 Sat Feb 6 13:15:14 2010 for Equalizer 0.9.1 by  doxygen 1.6.1