Public Methods |
| BinFab () |
| null constructor, copy constructor and operator= can be compiler defined.
|
| BinFab (const Box &a_domain, const RealVect &a_mesh_spacing, const RealVect &a_origin, const ProblemDomain &a_probdomain) |
| constructs empty binFab on domain
|
| BinFab (const BinFab &a_binfab) |
| copy constructor
|
virtual | ~BinFab () |
virtual void | define (const Box &a_domain, const RealVect &a_mesh_spacing, const RealVect &a_origin, const ProblemDomain &a_probdomain) |
virtual void | reBin () |
| sort all the BinItems into the appropriate bins
|
virtual void | addItem (const T &a_item) |
| copy one item into the appropriate bin
|
virtual void | addItems (const List< T > &a_list) |
| copy a list of items into the appropriate bins
|
virtual void | addItemsDestructive (List< T > &a_list) |
| move items off the argument list and into the appropriate bins
|
virtual void | clear () |
virtual int | size (const Box &box, const Interval &comps) const |
| {\bf linearization functions}
|
virtual void | linearOut (void *buf, const Box &R, const Interval &comps) const |
virtual void | linearIn (void *buf, const Box &R, const Interval &comps) |
Static Public Methods |
int | preAllocatable () |
Protected Methods |
IntVect | locateBin (const T &) const |
Protected Attributes |
RealVect | m_origin |
RealVect | m_mesh_spacing |
ProblemDomain | m_probdomain |
This is a class for holding and sorting particle-type items. Class <T> must have a RealVect <T>position() const function which is used to place the item in an appropriate bin.