#include <BinItem.H>
Inheritance diagram for BinItem:
Public Member Functions | |
BinItem () | |
Null constructor, copy constructor and operator= can be compiler defined. | |
BinItem (const RealVect &a_position) | |
Constructs a BinItem at a_position. | |
virtual | ~BinItem () |
Destructor. | |
virtual void | define (const RealVect &a_position) |
Same as the constructor. | |
void | setPosition (const RealVect &a_position) |
Change the position. | |
void | setPosition (const Real a_position, const int a_dimension) |
Change one component of the position. | |
RealVect & | position () |
Return a reference to the position. | |
const RealVect & | position () const |
Return a constant reference to the position. | |
Real | position (const int a_dir) const |
Gets one component of the position. | |
virtual int | size () const |
Number of bytes used by linearIn()/linearOut(). | |
virtual void | linearOut (void *a_buf) const |
Write a serialized (packed) representation into a_buf. | |
virtual void | linearIn (void *a_buf) |
Extract a serialized (packed) representation from a_buf. | |
int | preAllocatable () |
virtual void | print () const |
Write a human-readable version to stdout (for debugging). | |
Protected Attributes | |
RealVect | m_position |
this is the position in space of this item | |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, const BinItem &a_item) |
BinItem is a base class to provide the necessary interface with BinFab for particle-in-bin/cell problems. Since the only attribute of a particle needed by the BinFab is position, it is the only attribute present in this class. All other attributes (charge, velocity, etc) must appear in a derived class.
|
Null constructor, copy constructor and operator= can be compiler defined.
|
|
Constructs a
|
|
Destructor.
|
|
Same as the constructor.
Reimplemented in DragParticle. |
|
Extract a serialized (packed) representation from a_buf. Given a linear representation of the class data previously made using linearIn() in a_buf, set the data for this class. |
|
Write a serialized (packed) representation into a_buf. Write a linear representation of the internal data. Assumes that sufficient memory for the buffer has already been allocated by the caller. Reimplemented in DragParticle. |
|
Gets one component of the position.
|
|
Return a constant reference to the position.
|
|
Return a reference to the position.
|
|
Reimplemented in DragParticle. |
|
Write a human-readable version to stdout (for debugging).
|
|
Change one component of the position.
|
|
Change the position.
|
|
Number of bytes used by linearIn()/linearOut(). Returns the size, in number of bytes, of a flat linear representation of the data in this object. Reimplemented in DragParticle. |
|
|
|
this is the position in space of this item
|