|
| BoxArray () noexcept |
|
| BoxArray (const BoxArray &rhs)=default |
|
| BoxArray (BoxArray &&rhs) noexcept=default |
|
BoxArray & | operator= (BoxArray const &rhs)=default |
|
BoxArray & | operator= (BoxArray &&rhs) noexcept=default |
|
| ~BoxArray () noexcept=default |
|
| BoxArray (const Box &bx) |
| Make a boxarray out of a single box. More...
|
|
| BoxArray (size_t n) |
| Construct a BoxArray of the specified size. More...
|
|
| BoxArray (const Box *bxvec, int nbox) |
| Construct a BoxArray from an array of Boxes of size nbox. More...
|
|
| BoxArray (const BoxList &bl) |
| Construct a BoxArray from a BoxList. More...
|
|
| BoxArray (BoxList &&bl) noexcept |
|
| BoxArray (const BoxArray &rhs, const BATransformer &trans) |
|
| BoxArray (BoxList &&bl, IntVect const &max_grid_size) |
|
void | define (const Box &bx) |
| Initialize the BoxArray from a single box. It is an error if the BoxArray has already been initialized. More...
|
|
void | define (const BoxList &bl) |
| Initialize the BoxArray from the supplied BoxList. It is an error if the BoxArray has already been initialized. More...
|
|
void | define (BoxList &&bl) noexcept |
|
void | clear () |
| Remove all Boxes from the BoxArray. More...
|
|
void | resize (Long len) |
| Resize the BoxArray. See Vector<T>::resize() for the gory details. More...
|
|
Long | size () const noexcept |
| Return the number of boxes in the BoxArray. More...
|
|
Long | capacity () const noexcept |
| Return the number of boxes that can be held in the current allocated storage. More...
|
|
bool | empty () const noexcept |
| Return whether the BoxArray is empty. More...
|
|
Long | numPts () const noexcept |
| Returns the total number of cells contained in all boxes in the BoxArray. More...
|
|
double | d_numPts () const noexcept |
| Returns the total number of cells (in double type) contained in all boxes in the BoxArray. More...
|
|
int | readFrom (std::istream &is) |
| Initialize the BoxArray from the supplied istream. It is an error if the BoxArray has already been initialized. Note that the BoxArray in the istream must have been written using writeOn(). More...
|
|
std::ostream & | writeOn (std::ostream &) const |
| Output this BoxArray to a checkpoint file. More...
|
|
bool | operator== (const BoxArray &rhs) const noexcept |
| Are the BoxArrays equal? More...
|
|
bool | operator!= (const BoxArray &rhs) const noexcept |
| Are the BoxArrays not equal? More...
|
|
bool | operator== (const Vector< Box > &bv) const noexcept |
|
bool | operator!= (const Vector< Box > &bv) const noexcept |
|
bool | CellEqual (const BoxArray &rhs) const noexcept |
| Are the BoxArrays equal after conversion to cell-centered. More...
|
|
BoxArray & | maxSize (int block_size) |
| Forces each Box in BoxArray to have sides <= block_size. More...
|
|
BoxArray & | maxSize (const IntVect &block_size) |
|
BoxArray & | minmaxSize (const IntVect &min_size, const IntVect &max_size) |
|
BoxArray & | refine (int refinement_ratio) |
| Refine each Box in the BoxArray to the specified ratio. More...
|
|
BoxArray & | refine (const IntVect &iv) |
| Refine each Box in the BoxArray to the specified ratio. More...
|
|
BoxArray & | coarsen (int refinement_ratio) |
| Coarsen each Box in the BoxArray to the specified ratio. More...
|
|
bool | coarsenable (int refinement_ratio, int min_width=1) const |
| Coarsen each Box in the BoxArray to the specified ratio. More...
|
|
bool | coarsenable (const IntVect &refinement_ratio, int min_width=1) const |
|
bool | coarsenable (const IntVect &refinement_ratio, const IntVect &min_width) const |
|
BoxArray & | coarsen (const IntVect &iv) |
| Coarsen each Box in the BoxArray to the specified ratio. More...
|
|
BoxArray & | growcoarsen (int n, const IntVect &iv) |
| Grow and then coarsen each Box in the BoxArray. More...
|
|
BoxArray & | growcoarsen (IntVect const &ngrow, const IntVect &iv) |
|
BoxArray & | grow (int n) |
| Grow each Box in the BoxArray by the specified amount. More...
|
|
BoxArray & | grow (const IntVect &iv) |
| Grow each Box in the BoxArray by the specified amount. More...
|
|
BoxArray & | grow (int idir, int n_cell) |
| Grow each Box in the BoxArray on the low and high ends by n_cell cells in the idir direction. More...
|
|
BoxArray & | growLo (int idir, int n_cell) |
| Grow each Box in the BoxArray on the low end by n_cell cells in the idir direction. More...
|
|
BoxArray & | growHi (int idir, int n_cell) |
| Grow each Box in the BoxArray on the high end by n_cell cells in the idir direction. More...
|
|
BoxArray & | surroundingNodes () |
| Apply surroundingNodes(Box) to each Box in BoxArray. See the documentation of Box for details. More...
|
|
BoxArray & | surroundingNodes (int dir) |
| Apply surroundingNodes(Box,int) to each Box in BoxArray. See the documentation of Box for details. More...
|
|
BoxArray & | enclosedCells () |
| Apply Box::enclosedCells() to each Box in the BoxArray. More...
|
|
BoxArray & | enclosedCells (int dir) |
| Apply Box::enclosedCells(int) to each Box in the BoxArray. More...
|
|
BoxArray & | convert (IndexType typ) |
| Apply Box::convert(IndexType) to each Box in the BoxArray. More...
|
|
BoxArray & | convert (const IntVect &iv) |
|
BoxArray & | convert (Box(*fp)(const Box &)) |
| Apply function (*fp)(Box) to each Box in the BoxArray. More...
|
|
BoxArray & | shift (int dir, int nzones) |
| Apply Box::shift(int,int) to each Box in the BoxArray. More...
|
|
BoxArray & | shift (const IntVect &iv) |
| Apply Box::shift(const IntVect &iv) to each Box in the BoxArray. More...
|
|
void | set (int i, const Box &ibox) |
| Set element i in this BoxArray to Box ibox. More...
|
|
Box | operator[] (int index) const noexcept |
| Return element index of this BoxArray. More...
|
|
Box | operator[] (const MFIter &mfi) const noexcept |
| Return element index of this BoxArray. More...
|
|
Box | get (int index) const noexcept |
| Return element index of this BoxArray. More...
|
|
Box | getCellCenteredBox (int index) const noexcept |
| Return cell-centered box at element index of this BoxArray. More...
|
|
bool | ok () const |
| Return true if Box is valid and they all have the same IndexType. Is true by default if the BoxArray is empty. More...
|
|
bool | isDisjoint () const |
| Return true if set of intersecting Boxes in BoxArray is null. More...
|
|
BoxList | boxList () const |
| Create a BoxList from this BoxArray. More...
|
|
bool | contains (const IntVect &v) const |
| True if the IntVect is within any of the Boxes in this BoxArray. More...
|
|
bool | contains (const Box &b, bool assume_disjoint_ba=false, const IntVect &ng=IntVect(0)) const |
| True if the Box is contained in this BoxArray(+ng). The Box must also have the same IndexType as those in this BoxArray. More...
|
|
bool | contains (const BoxArray &ba, bool assume_disjoint_ba=false, const IntVect &ng=IntVect(0)) const |
| True if all Boxes in ba are contained in this BoxArray(+ng). More...
|
|
bool | contains (const BoxArray &ba, Periodicity const &period) const |
| True if all cells in ba are periodically contained in this BoxArray. More...
|
|
Box | minimalBox () const |
| Return smallest Box that contains all Boxes in this BoxArray. More...
|
|
Box | minimalBox (Long &npts_avg_box) const |
|
bool | intersects (const Box &b, int ng=0) const |
| True if the Box intersects with this BoxArray(+ghostcells). The Box must have the same IndexType as those in this BoxArray. More...
|
|
bool | intersects (const Box &b, const IntVect &ng) const |
|
std::vector< std::pair< int, Box > > | intersections (const Box &bx) const |
| Return intersections of Box and BoxArray. More...
|
|
std::vector< std::pair< int, Box > > | intersections (const Box &bx, bool first_only, int ng) const |
| Return intersections of Box and BoxArray(+ghostcells). More...
|
|
std::vector< std::pair< int, Box > > | intersections (const Box &bx, bool first_only, const IntVect &ng) const |
|
void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects) const |
| intersect Box and BoxArray, then store the result in isects More...
|
|
void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects, bool first_only, int ng) const |
| intersect Box and BoxArray(+ghostcells), then store the result in isects More...
|
|
void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects, bool first_only, const IntVect &ng) const |
|
BoxList | complementIn (const Box &b) const |
| Return box - boxarray. More...
|
|
void | complementIn (BoxList &bl, const Box &b) const |
|
void | clear_hash_bin () const |
| Clear out the internal hash table used by intersections. More...
|
|
void | removeOverlap (bool simplify=true) |
| Change the BoxArray to one with no overlap and then simplify it (see the simplify function in BoxList). More...
|
|
RefID | getRefID () const noexcept |
| Return a unique ID of the reference. More...
|
|
IndexType | ixType () const noexcept |
| Return index type of this BoxArray. More...
|
|
IntVect | crseRatio () const noexcept |
| Return crse ratio of this BoxArray. More...
|
|
void | uniqify () |
| Make ourselves unique. More...
|
|
BoxList const & | simplified_list () const |
|
BoxArray | simplified () const |
|
BATransformer const & | transformer () const |
|
A collection of Boxes stored in an Array.
It is a reference-counted concrete class, not a polymorphic one; i.e. you cannot use any of the List member functions with a BoxList.