Chombo + EB + MF
3.2
|
one dimensional dynamic array More...
#include <Vector.H>
Public Member Functions | |
Vector () | |
virtual | ~Vector () |
Vector (const Vector< T > &invec) | |
Vector (Vector< T > &&a_invec) noexcept | |
Vector (const std::vector< T > &invec) | |
Vector< T > & | operator= (const std::vector< T > &invec) |
Vector< T > & | operator= (Vector< T > &&a_invec) |
Vector< T > & | operator= (const Vector< T > &invec) |
Vector< T > & | assign (const T &inval) |
assign a scalar to every element of the vector More... | |
Vector (unsigned int isize) | |
void | clear () |
size_t | size () const |
Vector (unsigned int isize, const T &value) | |
T & | operator[] (unsigned int n) |
const T & | operator[] (unsigned int n) const |
T & | front () |
T & | back () |
void | pop_back () |
const T & | back () const |
void | swap (Vector< T > &other) |
void | push_back (const T &in) |
void | push_back (T &&in) |
void | append (const Vector< T > &invec) |
void | resize (unsigned int isize) |
void | reserve (size_t isize) |
size_t | capacity () const |
void | resize (unsigned int isize, const T &value) |
void | sort () |
std::vector< T > & | stdVector () |
Returns std::vector under the hood. More... | |
const std::vector< T > & | constStdVector () const |
Private Member Functions | |
unsigned int | initFunc () |
Private Attributes | |
std::vector< T > | v |
one dimensional dynamic array
Vector is a resizable one-dimensional array with constant-time random access and range checking. The template type T must have a default constructor, a copy constructor, and an assignment operator.
Default constructor. Creates a Vector of zero length with null data.
conversion constructor
assign a scalar to every element of the vector
[NOTE: cant use operator=() for this because it would be ambiguous with the (int) constructor for number T types.]
Referenced by BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::computeDiffusion().
|
inline |
Referenced by CodimBox< S >::clear(), AMRMultiGrid< LevelData< MFCellFAB > >::clear(), FASMultiGrid< T >::cycle(), MultiGrid< T >::oneCycle(), AMRMultiGrid< LevelData< MFCellFAB > >::relaxOnlyHomogeneous(), FASMultiGrid< T >::solve(), MultiGrid< T >::solve(), AMRMultiGrid< LevelData< MFCellFAB > >::solveNoInit(), AMRMultiGrid< LevelData< MFCellFAB > >::solveNoInitResid(), and AMRFASMultiGrid< T >::VCycle().
|
inline |
size function. returns current size of Vector
Referenced by IFidTable::add(), IFid::aggregate(), LayoutData< Vector< IntVectSet > >::allocate(), BoxLayoutData< BaseFab< int > >::allocateGhostVector(), ParticleData< P >::allocateVector(), AMRTGA< T >::AMRTGA(), IFid::append(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::append(), AggStencil< BaseIVFAB< Real >, EBCellFAB >::apply(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::assign(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelHeatSolver(), blockWrite(), blockWriteBufferToFile(), buildLocalIndexList(), CodimBox< S >::clear(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::clear(), MultiGrid< T >::clear(), BoxLayoutData< BaseFab< int > >::clear(), AMRMultiGrid< LevelData< MFCellFAB > >::clear(), AMRFASMultiGrid< T >::clear_private(), MinimalCCCM< dim >::computeRhs(), ComputeCutCellMoments< dim >::computeRhs(), AMRTGA< T >::createData(), dataSize(), BaseEBFaceFAB< Real >::dataType(), MultilevelLinearOp< T >::define(), MiniIFFAB< Real >::define(), TreeIntVectSetIterator::define(), RK4DenseOutput< Soln, Rhs, EXOP >::denseOutputCoefs(), ARK4DenseOutput< Soln, Rhs, IMEXOp >::denseOutputCoefs(), MultilevelLinearOp< T >::dotProduct(), ShiftIterator::end(), LSProblem< dim >::fillMap(), MiniIVFAB< Real >::forall(), gatherBoxesAndOffsets(), ParmParse::getarr(), MiniIFFAB< Real >::getFaceSubset(), AMRMultiGrid< LevelData< MFCellFAB > >::getInfo(), getOffsets(), BaseIVFAB< Real >::linearIn(), BaseIFFAB< FaceStencil >::linearIn(), MiniIFFAB< Real >::linearIn(), CodimBox< S >::linearIn(), linearListOut(), linearListSize(), BaseIVFAB< Real >::linearOut(), BaseIFFAB< FaceStencil >::linearOut(), MiniIFFAB< Real >::linearOut(), CodimBox< S >::linearOut(), MultiBlockCoordSys::numBlocks(), MFCellFAB::numPhases(), MFFluxFAB::numPhases(), MFIndexSpace::numPhases(), BaseEBFaceFAB< Real >::offset(), TagSet::ok(), ShiftIterator::ok(), CopyIterator::ok(), FASMultiGrid< T >::oneCycle(), operator<<(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::operator=(), IFid::operator==(), BoxLayout::operator==(), IFidTable::operator[](), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::operator[](), LSProblem< dim >::outputBounds(), LSProblem< dim >::outputRhs(), LSProblem< dim >::outputUnknowns(), CutCellMoments< dim >::print(), ParmParse::queryarr(), read(), readParticlesFromHDF(), regionGather(), AMRMultiGrid< LevelData< MFCellFAB > >::relaxOnlyHomogeneous(), AMRTGA< T >::resetAlphaAndBeta(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::resetSolverAlphaAndBeta(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::resize(), VarCoefStencil::setAllVariables(), BaseEBCellFAB< Real >::setCoveredCellVal(), BaseEBFaceFAB< Real >::setCoveredFaceVal(), AMRMultiGrid< LevelData< MFCellFAB > >::setMGCycle(), IFData< dim >::setNormalDerivatives(), IndexedMoments< SpaceDim, CH_EBIS_ORDER >::setRegular(), AMRTGA< T >::setTime(), VarCoefStencil::size(), VoFIterator::size(), IFidTable::size(), BaseIVFAB< Real >::size(), BaseIFFAB< FaceStencil >::size(), MiniIFFAB< Real >::size(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::size(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::solveHelm(), AMRFASMultiGrid< T >::solveNoInit(), AMRMultiGrid< LevelData< MFCellFAB > >::solveNoInit(), AMRMultiGrid< LevelData< MFCellFAB > >::solveNoInitResid(), BaseLevelCrankNicolson< LevelData< EBCellFAB >, EBFluxFAB, EBFluxRegister >::updateSoln(), BaseLevelBackwardEuler< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSolnWithTimeDependentOp(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSolnWithTimeIndependentOp(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::Vector(), write(), writeParticlesToHDF(), AmrAdaptor::~AmrAdaptor(), and Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::~Vector().
|
inline |
Returns a modifiable lvalue reference to the value of the given element in this Vector. It is an error if n < 0 or n >= this->size(). \
{ Arguments:}\ n (not modified) index of desired element.\ { Returns:}\ modifiable reference to value in Vector at index n.\
|
inline |
|
inline |
|
inline |
Referenced by MultiGrid< T >::define().
|
inline |
|
inline |
|
inline |
Referenced by IFidTable::add(), IFid::append(), MultiGrid< T >::define(), AMRMultiGrid< LevelData< MFCellFAB > >::getAllOperators(), MiniIFFAB< Real >::getFaceSubset(), getOffsets(), AMRMultiGrid< LevelData< MFCellFAB > >::getOperatorsOp(), AMRMultiGrid< LevelData< MFCellFAB > >::outputAMR(), ComputeCutCellMoments< dim >::refine(), regionGather(), and writeParticlesToHDF().
|
inline |
Modifies this Vector by appending the elements of the argument Vector. The new Vector will have a size of this->size() + invec.size() (where this Vector is considered before the append is performed). The first element of invec will have index this->size(), the second element will have index this->size()+1, etc.\
{ Arguments:}\ invec (not modified): Vector whose elements to append to this Vector.\ { This:}\ ----—The object is modified-------—
Referenced by AMRMultiGrid< LevelData< MFCellFAB > >::getAllOperators().
|
inline |
Referenced by LayoutData< Vector< IntVectSet > >::allocate(), BoxLayoutData< BaseFab< int > >::allocateGhostVector(), ParticleData< P >::allocateVector(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelHeatSolver(), blockLocalOffsets(), MiniIFFAB< Real >::clear(), MultiGrid< T >::clear(), AMRMultiGrid< LevelData< MFCellFAB > >::clear(), dataTypes(), AMRFASMultiGrid< T >::define(), MultilevelLinearOp< T >::define(), BlockBaseRegister< FArrayBox >::define(), CodimBox< S >::define(), AMRMultiGrid< LevelData< MFCellFAB > >::define(), TreeIntVectSetIterator::define(), MultiGrid< T >::define(), gather(), gatherBoxesAndOffsets(), ParmParse::getarr(), MiniIFFAB< Real >::getFaceSubset(), LSProblem< dim >::invertNormalEq(), linearListIn(), linearOut(), LSProblem< dim >::LSProblem(), FASMultiGrid< T >::oneCycle(), ParmParse::queryarr(), read(), regionGather(), BoxLayoutData< BaseFab< int > >::unpackReceivesToMe_append(), and Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::Vector().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns std::vector under the hood.
Referenced by IFidTable::add().
|
inline |
|
private |
|
private |
Referenced by Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::append(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::assign(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::back(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::capacity(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::clear(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::constStdVector(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::front(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::operator=(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::operator[](), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::pop_back(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::push_back(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::reserve(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::resize(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::size(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::sort(), Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::stdVector(), and Vector< LevelTGAHelmOp< LevelData< EBCellFAB >, EBFluxFAB > * >::swap().