21 #include "NamespaceHeader.H" 79 virtual void addItem(
const T& a_item);
98 const int a_srcComp =0,
99 const int a_destComp=0,
100 const int a_numComp =1);
104 virtual void copy(
const Box& a_RegionFrom,
106 const Box& a_RegionTo,
114 virtual size_t numItems(
const Box& a_box,
const bool a_in=
true)
const;
122 virtual int size(
const Box& a_box,
155 virtual void clear();
172 static std::string
name();
187 inline virtual bool isEnclosed(
const T& a_item,
const Box& a_box)
const;
199 #include "NamespaceFooter.H" RealVect m_mesh_spacing
The cell size in physical space.
Definition: ListBox.H:181
List< T > & listItems()
Returns the list of items contained in this ListBox.
Definition: ListBoxI.H:121
IntVect size() const
as in BaseFab; needed for loop-unroll macro
Definition: ListBox.H:163
IntVect size() const
size functions
Definition: Box.H:1819
virtual void transfer(ListBox< T > &a_src, const Box &a_srcBox, const Box &a_destBox, const int a_srcComp=0, const int a_destComp=0, const int a_numComp=1)
Definition: ListBoxI.H:279
virtual void addItems(const List< T > &a_list)
Definition: ListBoxI.H:235
Box m_box
The Box that defines the valid region of this ListBox.
Definition: ListBox.H:175
virtual void linearOut(void *a_buf, const Box &a_box, const Interval &a_comps=Interval()) const
Write a serialized (packed) representation into a_buf.
Definition: ListBoxI.H:371
virtual bool isEnclosed(const T &a_item, const Box &a_box) const
Determines whether a_item is enclosed in a_box.
Definition: ListBoxI.H:486
RealVect m_origin
The center of our coordinate system. Used for binning our items.
Definition: ListBox.H:184
static int preAllocatable()
Lists are not pre-allocatable. This function is needed so that ListBox.
Definition: ListBox.H:160
virtual void define(const Box &a_box, const RealVect &a_meshSpacing, const RealVect &a_origin)
Same as the constructor.
Definition: ListBoxI.H:55
virtual ~ListBox()
Destructor.
Definition: ListBoxI.H:49
virtual void undefine()
Free the memory associated with this ListBox.
Definition: ListBoxI.H:99
Structure for passing component ranges in code.
Definition: Interval.H:23
A Doubly-Linked List Class.
Definition: List.H:21
A Virtual Base Class for Dynamic Memory Managemen.
Definition: Arena.H:40
virtual void getItemsDestructive(List< T > &a_list, const Box &a_valid)
Definition: ListBoxI.H:159
const Box & box() const
Retrieve the box.
Definition: ListBoxI.H:462
ListBox()
Null constructor.
Definition: ListBoxI.H:27
ListBox< T > & operator=(const ListBox< T > &)
virtual void clear()
Delete all items in this ListBox and reset it to the null Box.
Definition: ListBoxI.H:468
static Arena * s_Arena
Definition: ListBox.H:170
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
virtual void getInvalidDestructive(List< T > &a_list, const Box &a_valid)
Definition: ListBoxI.H:204
static std::string name()
Definition: ListBoxI.H:478
virtual const RealVect & meshSpacing() const
Retrieve the mesh size.
Definition: ListBoxI.H:456
virtual void addItem(const T &a_item)
Add a_item to this ListBox if it is contained within m_box.
Definition: ListBoxI.H:226
virtual void addItemsDestructive(List< T > &a_list)
Definition: ListBoxI.H:252
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
virtual void linearOutDestructive(void *buf, const Box &a_box, const Interval &a_comps=Interval())
Definition: ListBoxI.H:399
virtual size_t numItems() const
Return the number of items in this ListBox.
Definition: ListBoxI.H:314
virtual void getInvalid(List< T > &a_list, const Box &a_valid) const
Definition: ListBoxI.H:189
List< T > * m_dptr
Pointer to the List that stores our items.
Definition: ListBox.H:178
virtual void getItems(List< T > &a_list, const Box &a_valid) const
Definition: ListBoxI.H:137
virtual void copy(const Box &a_RegionFrom, const Interval &a_Cdest, const Box &a_RegionTo, const ListBox< T > &a_src, const Interval &a_Csrc)
Definition: ListBoxI.H:300
virtual void linearIn(void *a_buf, const Box &a_box, const Interval &a_comps=Interval())
Extract a serialized (packed) representation from a_buf.
Definition: ListBoxI.H:427