DiscParticle Class Reference

#include <DiscParticle.h>

Collaboration diagram for DiscParticle:

Collaboration graph
[legend]
List of all members.

Public Types

enum  DPMode1 { INPUT, OUTPUT, APPEND }
enum  DPMode2 { ALL, ATTRIB }

Public Member Functions

 DiscParticle (const char *fname, const char *config, int iomode, const char *typestr=0)
 DiscParticle (const char *fname, int iomode, const char *=0)
 ~DiscParticle ()
bool get_OK () const
unsigned int get_NumRecords () const
int get_DataMode (unsigned int record=0) const
int get_IOMode () const
unsigned int get_NumLocalParticles (unsigned int record=0) const
unsigned int get_NumGlobalParticles (unsigned int record=0) const
unsigned int get_NumAttributes (unsigned int record=0) const
unsigned int get_ElemByteSize (unsigned int record=0, unsigned int attrib=0) const
const char * get_TypeString () const
const char * get_DiscType (unsigned int record=0, unsigned int attrib=0) const
template<class T>
bool read (ParticleBase< T > &pbase, unsigned int record)
template<class T>
bool read (ParticleAttrib< T > &pattr, unsigned int record)
template<class T>
bool write (ParticleBase< T > &pbase)
template<class T>
bool write (ParticleAttrib< T > &pattr)
void printDebug (ostream &)
void printDebug ()

Detailed Description

Definition at line 50 of file DiscParticle.h.


Member Enumeration Documentation

enum DiscParticle::DPMode1
 

Enumerator:
INPUT 
OUTPUT 
APPEND 

Definition at line 55 of file DiscParticle.h.

enum DiscParticle::DPMode2
 

Enumerator:
ALL 
ATTRIB 

Definition at line 59 of file DiscParticle.h.


Constructor & Destructor Documentation

DiscParticle::DiscParticle const char *  fname,
const char *  config,
int  iomode,
const char *  typestr = 0
 

Definition at line 52 of file DiscParticleFunctions.cpp.

References CT, TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.

DiscParticle::DiscParticle const char *  fname,
int  iomode,
const char *  = 0
 

Definition at line 65 of file DiscParticleFunctions.cpp.

References CT, TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.

DiscParticle::~DiscParticle  ) 
 

Definition at line 115 of file DiscParticleFunctions.cpp.

References CT, TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.


Member Function Documentation

int DiscParticle::get_DataMode unsigned int  record = 0  )  const [inline]
 

Definition at line 96 of file DiscParticle.h.

References ALL, and ATTRIB.

Referenced by get_NumAttributes(), and read().

const char * DiscParticle::get_DiscType unsigned int  record = 0,
unsigned int  attrib = 0
const
 

Definition at line 134 of file DiscParticleFunctions.cpp.

References get_NumRecords().

Referenced by printDebug().

Here is the call graph for this function:

unsigned int DiscParticle::get_ElemByteSize unsigned int  record = 0,
unsigned int  attrib = 0
const [inline]
 

Definition at line 120 of file DiscParticle.h.

Referenced by printDebug().

int DiscParticle::get_IOMode  )  const [inline]
 

Definition at line 102 of file DiscParticle.h.

unsigned int DiscParticle::get_NumAttributes unsigned int  record = 0  )  const [inline]
 

Definition at line 115 of file DiscParticle.h.

References ALL, and get_DataMode().

Referenced by printDebug(), and read().

Here is the call graph for this function:

unsigned int DiscParticle::get_NumGlobalParticles unsigned int  record = 0  )  const [inline]
 

Definition at line 110 of file DiscParticle.h.

Referenced by printDebug().

unsigned int DiscParticle::get_NumLocalParticles unsigned int  record = 0  )  const
 

Definition at line 148 of file DiscParticleFunctions.cpp.

unsigned int DiscParticle::get_NumRecords  )  const [inline]
 

Definition at line 91 of file DiscParticle.h.

Referenced by get_DiscType(), printDebug(), and read().

bool DiscParticle::get_OK  )  const [inline]
 

Definition at line 85 of file DiscParticle.h.

const char* DiscParticle::get_TypeString  )  const [inline]
 

Definition at line 126 of file DiscParticle.h.

void DiscParticle::printDebug  ) 
 

Definition at line 778 of file DiscParticleFunctions.cpp.

void DiscParticle::printDebug ostream &   ) 
 

Definition at line 780 of file DiscParticleFunctions.cpp.

References CT, endl(), get_DiscType(), get_ElemByteSize(), get_NumAttributes(), get_NumGlobalParticles(), get_NumRecords(), INFORM_ALL_NODES, r, TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.

Here is the call graph for this function:

template<class T>
bool DiscParticle::read ParticleAttrib< T > &  pattr,
unsigned int  record
[inline]
 

Definition at line 286 of file DiscParticle.h.

References CT, ParticleAttribBase::elementSize(), endl(), ERRORMSG, TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.

Here is the call graph for this function:

template<class T>
bool DiscParticle::read ParticleBase< T > &  pbase,
unsigned int  record
[inline]
 

Definition at line 162 of file DiscParticle.h.

References ALL, CT, endl(), ERRORMSG, get_DataMode(), get_NumAttributes(), get_NumRecords(), INPUT, ParticleBase< PLayout >::numAttributes(), TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, and TAU_UTILITY.

Referenced by FileParticleBaseDataSource< T >::update(), and FileParticleAttribDataSource< T >::update().

Here is the call graph for this function:

template<class T>
bool DiscParticle::write ParticleAttrib< T > &  pattr  )  [inline]
 

Definition at line 542 of file DiscParticle.h.

References IpplInfo::Comm, COMM_ANY_NODE, CT, DPCTLDBG, ParticleAttribBase::elementSize(), endl(), ERRORMSG, FB_TAG_CYCLE, FB_WRITE_TAG, INFORM_ALL_NODES, IpplInfo::myNode(), TagMaker::next_tag(), PAssert, Message::put(), ParticleAttrib< T >::putMessage(), Communicate::receive_block(), ParticleAttrib< T >::size(), TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, TAU_UTILITY, and ParticleAttribBase::typeString().

Here is the call graph for this function:

template<class T>
bool DiscParticle::write ParticleBase< T > &  pbase  )  [inline]
 

Definition at line 391 of file DiscParticle.h.

References a, IpplInfo::Comm, CT, DPCTLDBG, ParticleAttribBase::elementSize(), endl(), ERRORMSG, FB_TAG_CYCLE, FB_WRITE_TAG, ParticleBase< PLayout >::getAttribute(), ParticleBase< PLayout >::getTotalNum(), INFORM_ALL_NODES, TagMaker::next_tag(), ParticleBase< PLayout >::numAttributes(), TAU_IO, TAU_PARTICLE, TAU_PROFILE, TAU_TYPE_STRING, TAU_UTILITY, and ParticleAttribBase::typeString().

Referenced by FileParticleBaseDataSource< T >::update(), and FileParticleAttribDataSource< T >::update().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Jan 16 14:36:57 2006 for IPPL by  doxygen 1.4.6