Equalizer
1.4.1
|
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... |
Definition at line 46 of file share/Equalizer/examples/eqNBody/frameData.h.
enum eqNbody::FrameData::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 100 of file share/Equalizer/examples/eqNBody/frameData.h.
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.
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().
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.
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().