19 #include "NamespaceHeader.H" 48 BinFab(
const Box& a_domain,
int a_ncomps);
70 virtual void addItem(
const T& a_item);
91 const Box& a_destBox);
100 virtual void clear();
149 virtual void linearIn(
void* a_buf,
const Box& a_box,
178 #include "NamespaceFooter.H" virtual void addItem(const T &a_item)
Copy one item into the appropriate bin.
Definition: BinFabImplem.H:107
IntVect size() const
size functions
Definition: Box.H:1819
virtual void linearOut(void *a_buf, const Box &a_box, const Interval &a_comps) const
Write a serialized (packed) representation into a_buf.
Definition: BinFabImplem.H:470
virtual int numItems(const Box &a_box=Box()) const
Count the number of items in this BinFab in the specified Box.
Definition: BinFabImplem.H:412
IntVect size() const
Should be inherited from BaseFab but it isn't, sigh; code is the same.
Definition: BinFab.H:160
Box m_domain
Definition: BaseFab.H:632
virtual RealVect meshSpacing() const
Retrieve the mesh cell size, in physical coordinates.
Definition: BinFabImplem.H:83
virtual void reBin()
Sort all the items into the appropriate bins, losing items not in the FAB's domain.
Definition: BinFabImplem.H:259
virtual void linearIn(void *a_buf, const Box &a_box, const Interval &a_comps=Interval(0, 0))
Extract a serialized (packed) representation from a_buf.
Definition: BinFabImplem.H:527
Structure for passing component ranges in code.
Definition: Interval.H:23
A Doubly-Linked List Class.
Definition: List.H:21
RealVect origin() const
Retrieve the physical coordinates of the lower corner of cell zero.
Definition: BinFabImplem.H:98
void define()
Definition: BaseFabImplem.H:672
virtual ~BinFab()
Destructor.
Definition: BinFabImplem.H:53
virtual IntVect locateBin(const T &a_item) const
compute the cell index containing the physical position of the item
Definition: BinFabImplem.H:582
RealVect m_origin
location in physical space of the 0 index
Definition: BinFab.H:167
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
virtual void linearOutDestructive(void *buf, const Box &a_box, const Interval &a_comps=Interval(0, 0))
Write a serialized (packed) representation into a_buf and remove from *this.
Definition: BinFabImplem.H:501
virtual void clear()
Delete all the items in this BinFab and reset it to the null Box.
Definition: BinFabImplem.H:398
BinFab()
Null constructor, copy constructor and operator= can be compiler defined.
Definition: BinFabImplem.H:25
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
RealVect m_mesh_spacing
cell size in physical space
Definition: BinFab.H:170
static int preAllocatable()
Definition: BinFab.H:153
Base class for particle data on a Box.
Definition: BinFab.H:30
virtual void addItemsDestructive(List< T > &a_list)
Copy items into the appropriate bins and remove them from the List.
Definition: BinFabImplem.H:157
virtual void transfer(BinFab< T > &a_src, const Box &a_srcBox, const Box &a_destBox)
Move particles from a BinFab to the overlapping cells in this one.
Definition: BinFabImplem.H:369
virtual void addItems(const List< T > &a_list)
Copy items into the appropriate bins.
Definition: BinFabImplem.H:130