

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(). | |
Definition at line 34 of file examples/eqNBody/frameData.h.
enum eqNbody::FrameData::DirtyBits [protected] |
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.
| 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()
Reimplemented from eq::net::Object.
Definition at line 144 of file examples/eqNBody/frameData.cpp.
References eq::net::Object::commit().

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


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


0.9.1 by
1.6.1