A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers - this is to be done elsewhere. The operator[] returns a reference to the object, not the pointer. More...
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef T | value_type |
typedef T & | reference |
Public Member Functions | |
constexpr | UPtrList () noexcept |
UPtrList (const label len) | |
UPtrList (const UPtrList< T > &list) | |
UPtrList (UPtrList< T > &&list) | |
UPtrList (UPtrList< T > &list, bool reuse) | |
UPtrList (PtrList< T > &list) | |
UPtrList (const UList< T * > &list) | |
UPtrList (UList< T > &list) | |
label | size () const noexcept |
bool | empty () const noexcept |
T & | first () |
const T & | first () const |
T & | last () |
const T & | last () const |
T * | get (const label i) |
const T * | get (const label i) const |
const T * | set (const label i) const |
void | clear () |
void | resize (const label newLen) |
void | setSize (const label n) |
label | squeezeNull () |
void | append (T *ptr) |
void | swap (UPtrList< T > &list) |
void | transfer (UPtrList< T > &list) |
T * | set (const label i, T *ptr) |
void | reorder (const labelUList &oldToNew, const bool testNull=true) |
void | sortOrder (const labelUList &order, const bool testNull=true) |
const T & | operator[] (const label i) const |
T & | operator[] (const label i) |
const T * | operator() (const label i) const |
void | operator= (const UPtrList< T > &list) |
void | operator= (UPtrList< T > &&list) |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
Public Attributes | |
const typedef T & | const_reference |
Protected Member Functions | |
void | setAddressableSize (const label n) noexcept |
UPtrList (Detail::PtrListDetail< T > &&ptrs) | |
Protected Attributes | |
Detail::PtrListDetail< T > | ptrs_ |
Friends | |
Ostream & | operator (Ostream &os, const UPtrList< T > &list) |
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers - this is to be done elsewhere. The operator[] returns a reference to the object, not the pointer.
Definition at line 58 of file UPtrList.H.
typedef T value_type |
Definition at line 93 of file UPtrList.H.
Definition at line 96 of file UPtrList.H.
|
inlineexplicitprotected |
Definition at line 48 of file UPtrListI.H.
|
inlineconstexprnoexcept |
|
inlineexplicit |
Definition at line 41 of file UPtrListI.H.
Definition at line 55 of file UPtrListI.H.
Definition at line 62 of file UPtrListI.H.
Definition at line 29 of file UPtrList.C.
Definition at line 76 of file UPtrListI.H.
Definition at line 83 of file UPtrListI.H.
|
inlineprotectednoexcept |
Definition at line 25 of file UPtrListI.H.
|
inlinenoexcept |
Definition at line 99 of file UPtrListI.H.
Referenced by fvMeshAdder::add(), dynamicOversetFvMesh::addInterpolation(), GAMGAgglomeration::agglomerateLduAddressing(), GAMGAgglomeration::compactLevels(), GAMGSolver::GAMGSolver(), lduPrimitiveMesh::gather(), GAMGProcAgglomeration::globalCellCells(), lduPrimitiveMesh::globalCellCells(), hexRef8Data::hexRef8Data(), lduMatrix::initMatrixInterfaces(), lduPrimitiveMesh::lduPrimitiveMesh(), Foam::MULES::limitSum(), lduPrimitiveMesh::nonBlockingSchedule(), faMeshLduAddressing::nPatches(), Foam::operator<<(), foamToVtkReportFields::print(), refinementHistory::refinementHistory(), Foam::shuffle(), dynamicOversetFvMesh::updateAddressing(), and lduMatrix::updateMatrixInterfaces().
|
inlinenoexcept |
Definition at line 106 of file UPtrListI.H.
|
inline |
Definition at line 148 of file UPtrListI.H.
|
inline |
Definition at line 155 of file UPtrListI.H.
|
inline |
Definition at line 162 of file UPtrListI.H.
|
inline |
Definition at line 169 of file UPtrListI.H.
|
inline |
Definition at line 113 of file UPtrListI.H.
Referenced by fvMeshAdder::add(), and UPtrList< const Foam::UList >::set().
|
inline |
Definition at line 120 of file UPtrListI.H.
|
inline |
Definition at line 172 of file UPtrList.H.
Referenced by fvMeshAdder::add(), GAMGAgglomeration::agglomerateLduAddressing(), GAMGAgglomeration::combineLevels(), GAMGAgglomeration::compactLevels(), wallDistData< TransferType >::correct(), meshWave::correct(), directionalMeshWave::correct(), fvMatrix< Type >::createOrUpdateLduPrimitiveAssembly(), fvMeshDistribute::distribute(), faBoundaryMesh::edgeFaces(), fvBoundaryMesh::faceCells(), polyBoundaryMesh::faceCells(), GAMGSolver::GAMGSolver(), lduPrimitiveMesh::gather(), GAMGProcAgglomeration::globalCellCells(), lduPrimitiveMesh::globalCellCells(), hexRef8Data::hexRef8Data(), lduMatrix::initMatrixInterfaces(), fvBoundaryMesh::interfaces(), faBoundaryMesh::interfaces(), lduPrimitiveMesh::lduPrimitiveMesh(), Foam::MULES::limitSum(), fvMeshAdder::MapDimFields(), fvMeshAdder::MapSurfaceFields(), fvMeshAdder::MapVolFields(), nonBlockingGaussSeidelSmoother::nonBlockingGaussSeidelSmoother(), lduPrimitiveMesh::nonBlockingSchedule(), Foam::operator<<(), procLduMatrix::procLduMatrix(), GeometricField::Boundary::scalarInterfaces(), fvMatrix< Type >::setInterfaces(), lduMatrix::sumA(), lduPrimitiveMeshAssembly::update(), dynamicOversetFvMesh::updateAddressing(), lduMatrix::updateMatrixInterfaces(), and dynamicOversetFvMesh::write().
|
inline |
Definition at line 127 of file UPtrListI.H.
|
inline |
Definition at line 176 of file UPtrListI.H.
Referenced by UPtrList< const Foam::UList >::setSize().
|
inline |
Definition at line 185 of file UPtrList.H.
Referenced by fvMatrix< Type >::setInterfaces(), and dynamicOversetFvMesh::updateAddressing().
Foam::label squeezeNull | ( | ) |
Definition at line 38 of file UPtrList.C.
|
inline |
Definition at line 183 of file UPtrListI.H.
Definition at line 134 of file UPtrListI.H.
Definition at line 141 of file UPtrListI.H.
Definition at line 192 of file UPtrListI.H.
void reorder | ( | const labelUList & | oldToNew, |
const bool | testNull = true |
||
) |
Definition at line 63 of file UPtrList.C.
void sortOrder | ( | const labelUList & | order, |
const bool | testNull = true |
||
) |
Definition at line 122 of file UPtrList.C.
Referenced by Foam::shuffle(), and Foam::sort().
Definition at line 207 of file UPtrListI.H.
Definition at line 224 of file UPtrListI.H.
Definition at line 241 of file UPtrListI.H.
Definition at line 642 of file UPtrListI.H.
Definition at line 649 of file UPtrListI.H.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 609 of file UPtrListI.H.
|
inlinenoexcept |
Definition at line 617 of file UPtrListI.H.
|
inlinenoexcept |
|
inlinenoexcept |
const typedef T& const_reference |
Definition at line 99 of file UPtrList.H.
|
protected |
Definition at line 73 of file UPtrList.H.
Referenced by UPtrList< const Foam::UList >::cbegin(), UPtrList< const Foam::UList >::cend(), UPtrList< const Foam::UList >::operator=(), UPtrList< const Foam::UList >::swap(), and UPtrList< const Foam::UList >::transfer().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.