Public Member Functions | Private Member Functions | Private Attributes | Friends
DynList< T, staticSize > Class Template Reference
Inheritance diagram for DynList< T, staticSize >:
Inheritance graph
[legend]

Public Member Functions

 DynList ()
 Construct null. More...
 
 DynList (const label)
 Construct given size. More...
 
 DynList (const label, const T &)
 Construct from given size and defualt value. More...
 
 DynList (const UList< T > &)
 Construct from UList. nextFree_ set to size(). More...
 
template<class ListType >
 DynList (const ListType &)
 Construct from other ListType. More...
 
 DynList (const DynList< T, staticSize > &)
 Copy constructor. More...
 
 DynList (Istream &)
 Construct from Istream. nextFree_ set to size(). More...
 
 ~DynList ()
 
label size () const
 
label byteSize () const
 
void setSize (const label)
 Reset size of List. More...
 
void clear ()
 Clear the list, i.e. set next free to zero. More...
 
void shrink ()
 Shrink the List<T> to the number of elements used. More...
 
void append (const T &e)
 Append an element at the end of the list. More...
 
void appendIfNotIn (const T &e)
 
bool contains (const T &e) const
 check if the element is in the list (takes linear time) More...
 
label containsAtPosition (const T &e) const
 
const TlastElement () const
 return a const reference to the last element More...
 
T removeLastElement ()
 Return and remove the last element. More...
 
T removeElement (const label i)
 
TnewElmt (const label)
 return a refence to the element. Resize the list if necessary More...
 
Toperator() (const label)
 
const Toperator[] (const label) const
 return access to an element More...
 
Toperator[] (const label)
 
label fcIndex (const label index, const label offset=1) const
 return forward and reverse circular indices More...
 
label rcIndex (const label index, const label offset=1) const
 
const TfcElement (const label index, const label offset=1) const
 return forward and reverse circular elements More...
 
const TrcElement (const label index, const label offset=1) const
 
void operator= (const T &)
 Assignment of all entries to the given value. More...
 
void operator= (const DynList< T, staticSize > &)
 Copy of another list. More...
 
template<class ListType >
void operator= (const ListType &)
 Copy of another list type. More...
 
bool operator== (const DynList< T, staticSize > &) const
 Compare the list with the another one. More...
 
bool operator!= (const DynList< T, staticSize > &) const
 

Private Member Functions

Tdata ()
 access to the data pointer More...
 
const Tdata () const
 const access to the data pointer More...
 
void allocateSize (const label)
 allocate list size More...
 
void checkIndex (const label) const
 check if index is inside the scope (used for debugging only) More...
 
void checkAllocation () const
 check if nAllocated_ is greater or equal to nextFree_ More...
 

Private Attributes

TdataPtr_
 pointer to the data More...
 
label nAllocated_
 size of the allocated data More...
 
T staticData_ [staticSize]
 statically allocated data (used for short lists) More...
 
label nextFree_
 Number of next free element. More...
 

Friends

Ostreamoperator (Ostream &, const DynList< T, staticSize > &)
 
Istreamoperator>> (Istream &, DynList< T, staticSize > &)
 Read from Istream, discarding contents of existing DynList. More...
 

Detailed Description

template<class T, label staticSize = 16>
class Foam::DynList< T, staticSize >

Definition at line 53 of file DynList.H.

Constructor & Destructor Documentation

◆ DynList() [1/7]

DynList
inline

Construct null.

Definition at line 120 of file DynListI.H.

◆ DynList() [2/7]

DynList ( const label  s)
inlineexplicit

Construct given size.

Definition at line 136 of file DynListI.H.

◆ DynList() [3/7]

DynList ( const label  s,
const T val 
)
inlineexplicit

Construct from given size and defualt value.

Definition at line 151 of file DynListI.H.

◆ DynList() [4/7]

DynList ( const UList< T > &  ul)
inlineexplicit

Construct from UList. nextFree_ set to size().

Definition at line 169 of file DynListI.H.

◆ DynList() [5/7]

DynList ( const ListType &  l)
inline

Construct from other ListType.

Definition at line 188 of file DynListI.H.

◆ DynList() [6/7]

DynList ( const DynList< T, staticSize > &  dl)
inline

Copy constructor.

Copy construct.

Definition at line 207 of file DynListI.H.

◆ DynList() [7/7]

DynList ( Istream )
explicit

Construct from Istream. nextFree_ set to size().

Definition at line 32 of file DynList.C.

◆ ~DynList()

~DynList
inline

Definition at line 226 of file DynListI.H.

Member Function Documentation

◆ data() [1/2]

const T * data
inlineprivate

access to the data pointer

Definition at line 27 of file DynListI.H.

◆ data() [2/2]

const T* data ( ) const
inlineprivate

const access to the data pointer

◆ allocateSize()

void allocateSize ( const label  s)
inlineprivate

allocate list size

allocates enough space for the elements

shrinks the list

delete dynamically allocated data

Definition at line 39 of file DynListI.H.

◆ checkIndex()

void checkIndex ( const label  i) const
inlineprivate

check if index is inside the scope (used for debugging only)

Definition at line 90 of file DynListI.H.

◆ checkAllocation()

void checkAllocation
inlineprivate

check if nAllocated_ is greater or equal to nextFree_

Definition at line 104 of file DynListI.H.

◆ size()

Foam::label size
inline

Size of the active part of the list. Direct over-ride of list size member function

Definition at line 235 of file DynListI.H.

Referenced by edgeExtractor::faceEvaluator::bestPatchTopological(), polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::calcCellPoints(), meshOctreeAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::calcPointPoints(), edgeExtractor::calculateDeformationMetricForFace(), triSurfaceCurvatureEstimator::calculateEdgeCurvature(), meshSurfaceEngine::calculateEdgeFacesAddressing(), triSurfacePartitioner::calculateEdgeGroupsToCorners(), boundaryLayerOptimisation::calculateNormalVectorsSmother(), meshSurfaceEngine::calculatePointPatches(), meshSurfaceEngine::calculatePointPoints(), triSurfaceCurvatureEstimator::calculateSurfaceCurvatures(), checkIrregularSurfaceConnections::checkAndFixCellGroupsAtBndVertices(), meshOctreeAddressing::checkAndFixIrregularConnections(), Foam::polyMeshGenChecks::checkCellsZipUp(), edgeExtractor::checkCorners(), checkIrregularSurfaceConnections::checkFaceGroupsAtBndVertices(), edgeExtractor::checkFacePatchesGeometry(), edgeExtractor::checkFacePatchesTopology(), topologicalCleaner::checkInvalidConnectionsForVerticesCells(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableFaces(), triSurfaceClassifyEdges::checkOrientation(), Foam::triSurfaceChecks::checkOverlaps(), Foam::triSurfaceChecks::checkSelfIntersections(), partTriMesh::createBufferLayers(), partTetMesh::createBufferLayers(), meshSurfaceEdgeExtractor::createEdgeVertices(), tetCreatorOctree::createFaceCentreLabels(), extrudeLayer::createLayerCells(), boundaryLayers::createLayerCells(), boundaryLayers::createNewEdgeVerticesParallel(), boundaryLayers::createNewVertex(), extrudeLayer::createNewVertices(), boundaryLayers::createNewVertices(), meshOctreeAddressing::createOctreeFaces(), meshOctreeCreator::createOctreeWithRefinedBoundary(), tetMeshExtractorOctree::createPolyMesh(), tetCreatorOctree::createTetsAroundEdges(), correctEdgesBetweenPatches::decomposeConcaveFaces(), decomposeFaces::decomposeConcaveInternalFaces(), decomposeFaces::decomposeMeshFaces(), triSurfaceDetectFeatureEdges::detectFeatureEdgesAngleCriterion(), edgeExtractor::distributeBoundaryFacesNormalAlignment(), meshOctreeModifier::distributeLeavesToProcessors(), Foam::help::doTrianglesOverlap(), DynList< Foam::triFace >::DynList(), meshSurfaceOptimizer::edgeNodeDisplacementParallel(), tetMeshOptimisation::exchangeData(), decomposeCells::findAddressingForCell(), checkNonMappableCellConnections::findCellTypes(), meshOctreeCube::findContainedEdges(), edgeExtractor::findEdgeCandidates(), edgeExtractor::findFaceCandidates(), edgeExtractor::findFeatureEdgesNearEdge(), detectBoundaryLayers::findHairsForFace(), meshOctree::findLeavesContainedInBox(), Foam::help::findMinimizerPoint(), meshUntangler::cutRegion::findNewEdges(), meshUntangler::cutRegion::findNewFaces(), edgeExtractor::findPatchesNearSurfaceFace(), boundaryLayers::findPatchesToBeTreatedTogether(), sortEdgesIntoChains::findPointsBelongingToTheChain(), refineBoundaryLayers::refineCornerHexCell::generateMissingFaces(), refineBoundaryLayers::generateNewCells(), refineBoundaryLayers::generateNewFaces(), Foam::help::groupMarking(), boundaryLayerOptimisation::hairEdgesAtBndFace(), edgeExtractor::cornerEvaluator::improveCorners(), main(), makePatchFromSubset(), meshSurfaceMapper2D::mapCorners(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), meshSurfaceOptimizer::newEdgePositionLaplacian(), meshSurfaceOptimizer::newPositionLaplacian(), meshSurfaceOptimizer::newPositionLaplacianFC(), Foam::help::numberOfEdgeGroups(), Foam::help::numberOfFaceGroups(), DynList< Foam::triFace >::operator=(), meshUntangler::optimizeNodePosition(), partTetMeshSimplex::partTetMeshSimplex(), edgeExtractor::projectDeterminedFeatureVertices(), meshOctreeAutomaticRefinement::refineBasedOnContainedPartitions(), meshOctreeCube::refineCube(), meshOctreeCube::refineCube2D(), meshOctreeCube::refineMissingCube(), meshUntangler::cutRegion::removeCoincidentVertices(), polyMeshGenModifier::removeDuplicateFaces(), checkBoundaryFacesSharingTwoEdges::removeExcessiveVertices(), polyMeshGenModifier::removeFaces(), Foam::help::sortEdgeChain(), meshUntangler::cutRegion::tieBreak(), meshSurfaceOptimizer::transformIntoPlane(), extrudeLayer::updateBoundary(), fpmaMesh::writeSubsets(), Foam::writeSurfaceToVTK(), and Foam::help::zipOpenChain().

◆ byteSize()

Foam::label byteSize
inline

Number of bytes used by the active part of the list Direct over-ride of list byteSize member function

Definition at line 245 of file DynListI.H.

◆ setSize()

void setSize ( const label  s)
inline

Reset size of List.

Definition at line 263 of file DynListI.H.

Referenced by quadricFitting::calculateQuadricCoeffs(), edgeExtractor::checkConcaveEdgeCells(), edgeExtractor::checkFacePatchesTopology(), triSurfaceClassifyEdges::checkOrientation(), boundaryLayers::checkTopologyOfBoundaryFaces(), extrudeLayer::createLayerCells(), boundaryLayers::createLayerCells(), extrudeLayer::createNewVertices(), meshOctreeAddressing::createNodeLabels(), decomposeCells::decomposeCellIntoPyramids(), decomposeFaces::decomposeConcaveInternalFaces(), edgeExtractor::distributeBoundaryFacesNormalAlignment(), Foam::help::doTrianglesIntersect(), Foam::help::doTrianglesOverlap(), detectBoundaryLayers::findHairsForFace(), edgeExtractor::findNeiPatches(), meshUntangler::cutRegion::findNewEdges(), meshUntangler::cutRegion::findNewFaces(), Foam::help::findOpenEdges(), sortEdgesIntoChains::findPointsBelongingToTheChain(), refineBoundaryLayers::generateNewCells(), refineBoundaryLayers::generateNewVertices(), Foam::help::groupMarking(), boundaryLayerOptimisation::hairEdgesAtBndFace(), Foam::help::isFaceConvexAndOk(), Foam::help::mergeTwoFaces(), edgeExtractor::faceEvaluator::neiFacesOverEdges(), edgeExtractor::faceEvaluator::neiFacesProcs(), edgeExtractor::faceEvaluator::neiPatchesOverEdges(), meshSurfaceOptimizer::newPositionLaplacian(), meshSurfaceOptimizer::newPositionLaplacianFC(), meshSurfaceOptimizer::newPositionLaplacianWFC(), graphNeiOp::operator()(), VRWGraphSMPModifier::optimizeMemoryUsage(), refineBoundaryLayers::refineFace(), meshUntangler::cutRegion::removeCoincidentVertices(), Foam::help::reverseAddressingSMP(), VRWGraphSMPModifier::setSizeAndRowSize(), refineBoundaryLayers::sortFaceFaces(), refineBoundaryLayers::sortFacePoints(), meshUntangler::cutRegion::tieBreak(), and meshSurfaceOptimizer::transformIntoPlane().

Here is the caller graph for this function:

◆ clear()

void clear
inline

Clear the list, i.e. set next free to zero.

Allocated size does not change

Definition at line 279 of file DynListI.H.

Referenced by polyMeshGenCells::cellInSubsets(), polyMeshGenCells::cellSubsetIndices(), checkIrregularSurfaceConnections::checkAndFixCellGroupsAtBndVertices(), meshOctreeAddressing::checkAndFixIrregularConnections(), checkIrregularSurfaceConnections::checkFaceGroupsAtBndVertices(), meshOctreeAddressing::checkGluedRegions(), triSurfaceClassifyEdges::checkOrientation(), meshOctree::containedEdges(), meshOctree::containedTriangles(), triSurfacePartitioner::cornersSharedByEdgeGroups(), meshSurfaceEdgeExtractor::createEdgeVertices(), boundaryLayers::createLayerCells(), triSurfaceMetaData::createMetaData(), Foam::help::doTrianglesIntersect(), Foam::help::doTrianglesOverlap(), triSurfacePartitioner::edgeGroupsSharedByPatches(), triSurfFeatureEdges::edgeInSubsets(), meshOctreeAddressing::edgeIntersections(), triSurfFeatureEdges::edgeSubsetIndices(), meshOctreeModifier::ensureCorrectRegularity(), polyMeshGenFaces::faceInSubsets(), extrudeLayer::addressingCalculator::facesSharingEdge(), polyMeshGenFaces::faceSubsetIndices(), triSurfFacets::facetInSubsets(), triSurfFacets::facetSubsetIndices(), decomposeCells::findAddressingForCell(), meshOctree::findAllLeafNeighbours(), edgeExtractor::findEdgeCandidates(), meshOctree::findEdgesInBox(), meshOctree::findLeavesContainedInBox(), meshOctreeModifier::findLeavesContainedInBox(), meshOctree::findLeavesInSphere(), meshOctree::findNearestCorner(), meshOctree::findNearestEdgePoint(), meshOctree::findNearestSurfacePoint(), meshOctree::findNearestSurfacePointInRegion(), meshOctree::findNeighboursForLeaf(), Foam::help::findOpenEdges(), meshOctree::findTrianglesInBox(), meshOctreeAddressing::findUsedBoxes(), meshOctreeAddressing::isIntersectedEdge(), meshOctreeAddressing::isIntersectedFace(), meshOctreeModifier::markAdditionalLayers(), meshOctreeModifier::markAdditionalLayersOfFaceNeighbours(), Foam::help::numberOfEdgeGroups(), Foam::help::numberOfFaceGroups(), meshConnectionsNeighbourOperator::operator()(), meshBndLayerNeighbourOperator::operator()(), surfaceNeiOp::operator()(), featureEdgesNeiOp::operator()(), triSurfPoints::pointInSubsets(), polyMeshGenPoints::pointInSubsets(), triSurfPoints::pointSubsetIndices(), polyMeshGenPoints::pointSubsetIndices(), meshOctreeAutomaticRefinement::refineBasedOnContainedCorners(), meshOctreeAutomaticRefinement::refineBasedOnContainedPartitions(), meshOctreeAutomaticRefinement::refineBasedOnProximityTests(), meshOctreeCreator::refineBoxesIntersectingEdgeMeshes(), meshOctreeCreator::refineBoxesIntersectingSurfaces(), triSurf::topologyCheck(), and partTetMesh::updateVertex().

◆ shrink()

void shrink

Shrink the List<T> to the number of elements used.

Definition at line 290 of file DynListI.H.

Referenced by surfaceMorpherCells::morphInternalFaces().

Here is the caller graph for this function:

◆ append()

void append ( const T e)
inline

Append an element at the end of the list.

Definition at line 304 of file DynListI.H.

Referenced by polyMeshGenAddressing::calcEdgeFaces(), meshOctreeAddressing::calcGlobalPointLabels(), triSurfaceCurvatureEstimator::calculateEdgeCurvature(), meshSurfaceEngine::calculateEdgeFacesAddressing(), boundaryLayerOptimisation::calculateHairEdges(), boundaryLayerOptimisation::calculateNormalVectorsSmother(), meshSurfaceEngine::calculatePointPoints(), edgeExtractor::calculateSingleCellEdge(), triSurfaceCurvatureEstimator::calculateSurfaceCurvatures(), polyMeshGenCells::cellInSubsets(), polyMeshGenCells::cellSubsetIndices(), checkIrregularSurfaceConnections::checkAndFixCellGroupsAtBndVertices(), meshOctreeAddressing::checkAndFixIrregularConnections(), Foam::polyMeshGenChecks::checkCellsZipUp(), edgeExtractor::checkConcaveEdgeCells(), edgeExtractor::checkCorners(), checkIrregularSurfaceConnections::checkFaceGroupsAtBndVertices(), topologicalCleaner::checkInvalidConnectionsForVerticesCells(), topologicalCleaner::checkInvalidConnectionsForVerticesFaces(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableFaces(), triSurfaceClassifyEdges::checkOrientation(), Foam::triSurfaceChecks::checkSelfIntersections(), meshBndLayerNeighbourOperator::collectGroups(), meshOctree::containedEdges(), meshOctree::containedTriangles(), triSurfacePartitioner::cornersSharedByEdgeGroups(), voronoiMeshExtractor::createAddressing(), partTriMesh::createBufferLayers(), partTetMesh::createBufferLayers(), meshSurfaceEdgeExtractor::createEdgeVertices(), meshUntangler::cutRegion::createInitialConfiguration(), boundaryLayers::createLayerCells(), extrudeLayer::createNewVertices(), boundaryLayers::createNewVertices(), partTriMesh::createParallelAddressing(), partTetMesh::createParallelAddressing(), edgeExtractor::cornerEvaluator::createParallelAddressing(), tetMeshExtractorOctree::createPolyMesh(), meshUntangler::cutRegion::createPolyMeshFromRegion(), tetCreatorOctree::createTetsAroundEdges(), decomposeCells::decomposeCellIntoPyramids(), decomposeFaces::decomposeConcaveInternalFaces(), decomposeFaces::decomposeMeshFaces(), triSurfaceDetectFeatureEdges::detectFeatureEdgesAngleCriterion(), Foam::help::doTrianglesIntersect(), Foam::help::doTrianglesOverlap(), triSurfacePartitioner::edgeGroupsSharedByPatches(), triSurfFeatureEdges::edgeInSubsets(), meshOctreeAddressing::edgeIntersections(), meshSurfaceOptimizer::edgeNodeDisplacementParallel(), triSurfFeatureEdges::edgeSubsetIndices(), tetMeshOptimisation::exchangeData(), polyMeshGenFaces::faceInSubsets(), extrudeLayer::addressingCalculator::facesSharingEdge(), polyMeshGenFaces::faceSubsetIndices(), triSurfFacets::facetInSubsets(), triSurfFacets::facetSubsetIndices(), decomposeCells::findAddressingForCell(), meshOctree::findAllLeafNeighbours(), checkNonMappableCellConnections::findCellTypes(), meshOctreeCube::findContainedEdges(), edgeExtractor::findEdgeCandidates(), meshOctree::findEdgesInBox(), detectBoundaryLayers::findHairsForFace(), meshOctree::findLeavesContainedInBox(), meshOctree::findNeighboursInDirection(), meshOctree::findNeighboursOverEdge(), meshUntangler::cutRegion::findNewEdges(), meshUntangler::cutRegion::findNewFaces(), Foam::help::findOpenEdges(), boundaryLayers::findPatchesToBeTreatedTogether(), meshOctree::findTrianglesInBox(), refineBoundaryLayers::refineEdgeHexCell::generateMissingFaces(), refineBoundaryLayers::refineCornerHexCell::generateMissingFaces(), refineBoundaryLayers::generateNewCells(), refineBoundaryLayers::generateNewCellsPrism(), Foam::help::groupMarking(), boundaryLayerOptimisation::hairEdgesAtBndFace(), edgeExtractor::cornerEvaluator::improveCorners(), meshOctreeCube::leavesInBox(), meshOctreeCube::leavesInSphere(), main(), meshSurfaceMapper2D::mapCorners(), Foam::help::mergeTwoFaces(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), meshSurfaceOptimizer::newEdgePositionLaplacian(), Foam::help::numberOfEdgeGroups(), Foam::help::numberOfFaceGroups(), meshConnectionsNeighbourOperator::operator()(), meshBndLayerNeighbourOperator::operator()(), surfaceNeiOp::operator()(), featureEdgesNeiOp::operator()(), tetMeshOptimisation::optimiseBoundarySurfaceLaplace(), tetMeshOptimisation::optimiseBoundaryVolumeOptimizer(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), boundaryLayerOptimisation::optimiseThicknessVariation(), triSurfPoints::pointInSubsets(), polyMeshGenPoints::pointInSubsets(), triSurfPoints::pointSubsetIndices(), polyMeshGenPoints::pointSubsetIndices(), meshOctreeCreator::refineBoxesIntersectingEdgeMeshes(), refineBoundaryLayers::refineFace(), meshOctreeCube::refineMissingCube(), surfaceMorpherCells::removeCellsWithAllVerticesAtTheBoundary(), meshUntangler::cutRegion::removeCoincidentVertices(), polyMeshGenModifier::removeDuplicateFaces(), checkBoundaryFacesSharingTwoEdges::removeExcessiveVertices(), polyMeshGenModifier::removeFaces(), Foam::help::reverseAddressingSMP(), workflowControls::runCurrentStep(), Foam::help::sortEdgeChain(), meshUntangler::cutRegion::tieBreak(), extrudeLayer::updateBoundary(), Foam::help::whisperReduce(), and Foam::help::zipOpenChain().

◆ appendIfNotIn()

void appendIfNotIn ( const T e)
inline

Append an element at the end of the list if it is not yet present in the list (takes linear time)

Definition at line 324 of file DynListI.H.

Referenced by edgeExtractor::faceEvaluator::bestPatchTopological(), polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::calcCellPoints(), meshSurfaceEngine::calcGlobalBoundaryEdgeLabels(), meshSurfaceEngine::calcGlobalBoundaryPointLabels(), polyMeshGenAddressing::calcGlobalEdgeLabels(), meshOctreeAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::calcPointPoints(), triSurfacePartitioner::calculateEdgeGroupsToCorners(), meshSurfaceEngine::calculateEdgePatchesAddressing(), boundaryLayerOptimisation::calculateNormalVectorsSmother(), meshSurfaceEngine::calculatePointPatches(), meshSurfaceEngine::calculatePointPoints(), edgeExtractor::checkFacePatchesGeometry(), edgeExtractor::checkFacePatchesTopology(), meshConnectionsNeighbourOperator::collectGroups(), meshBndLayerNeighbourOperator::collectGroups(), featureEdgesNeiOp::collectGroups(), partTetMesh::createBOUNDARYPointsOrdering(), partTriMesh::createBufferLayers(), partTetMesh::createBufferLayers(), boundaryLayers::createLayerCells(), boundaryLayers::createNewEdgeVerticesParallel(), boundaryLayers::createNewVertex(), partTetMesh::createSMOOTHPointsOrdering(), correctEdgesBetweenPatches::decomposeConcaveFaces(), edgeExtractor::distributeBoundaryFacesNormalAlignment(), meshOctreeModifier::distributeLeavesToProcessors(), meshSurfaceOptimizer::edgeNodeDisplacementParallel(), tetMeshOptimisation::exchangeData(), edgeExtractor::findEdgeCandidates(), edgeExtractor::findFaceCandidates(), meshOctree::findNearestCorner(), edgeExtractor::findPatchesNearSurfaceFace(), surfaceMorpherCells::morphInternalFaces(), meshOctreeAutomaticRefinement::refineBasedOnContainedPartitions(), extrudeLayer::updateBoundary(), partTriMesh::updateVertex(), and partTetMesh::updateVertex().

Here is the caller graph for this function:

◆ contains()

bool contains ( const T e) const
inline

◆ containsAtPosition()

Foam::label containsAtPosition ( const T e) const
inline

◆ lastElement()

const T & lastElement
inline

return a const reference to the last element

Definition at line 374 of file DynListI.H.

◆ removeLastElement()

T removeLastElement
inline

◆ removeElement()

T removeElement ( const label  i)
inline

Definition at line 404 of file DynListI.H.

Referenced by edgeExtractor::findFeatureEdgesNearEdge().

Here is the caller graph for this function:

◆ newElmt()

T & newElmt ( const label  i)
inline

return a refence to the element. Resize the list if necessary

Definition at line 430 of file DynListI.H.

◆ operator()()

T & operator() ( const label  i)
inline

Return non-const access to an element, resizing the list if necessary

Definition at line 442 of file DynListI.H.

◆ operator[]() [1/2]

const T & operator[] ( const label  i) const
inline

return access to an element

Definition at line 463 of file DynListI.H.

◆ operator[]() [2/2]

T & operator[] ( const label  i)
inline

Definition at line 474 of file DynListI.H.

◆ fcIndex()

Foam::label fcIndex ( const label  index,
const label  offset = 1 
) const
inline

return forward and reverse circular indices

Definition at line 486 of file DynListI.H.

Referenced by boundaryLayers::createLayerCells(), and edgeExtractor::cornerEvaluator::improveCorners().

Here is the caller graph for this function:

◆ rcIndex()

Foam::label rcIndex ( const label  index,
const label  offset = 1 
) const
inline

Definition at line 496 of file DynListI.H.

Referenced by edgeExtractor::cornerEvaluator::createParallelAddressing().

Here is the caller graph for this function:

◆ fcElement()

const T & fcElement ( const label  index,
const label  offset = 1 
) const
inline

return forward and reverse circular elements

Definition at line 506 of file DynListI.H.

Referenced by Foam::help::doTrianglesOverlap().

Here is the caller graph for this function:

◆ rcElement()

const T & rcElement ( const label  index,
const label  offset = 1 
) const
inline

Definition at line 516 of file DynListI.H.

◆ operator=() [1/3]

void operator= ( const T t)
inline

Assignment of all entries to the given value.

Definition at line 525 of file DynListI.H.

Referenced by IODynList< T, IndexType >::IODynList(), and IODynList< T, IndexType >::operator=().

Here is the caller graph for this function:

◆ operator=() [2/3]

void operator= ( const DynList< T, staticSize > &  dl)
inline

Copy of another list.

Definition at line 537 of file DynListI.H.

◆ operator=() [3/3]

void operator= ( const ListType &  l)
inline

Copy of another list type.

Definition at line 558 of file DynListI.H.

◆ operator==()

bool operator== ( const DynList< T, staticSize > &  DL) const
inline

Compare the list with the another one.

Definition at line 577 of file DynListI.H.

◆ operator!=()

bool operator!= ( const DynList< T, staticSize > &  DL) const
inline

Definition at line 593 of file DynListI.H.

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const DynList< T, staticSize > &   
)
friend

◆ operator>>

Istream& operator>> ( Istream ,
DynList< T, staticSize > &   
)
friend

Read from Istream, discarding contents of existing DynList.

Field Documentation

◆ dataPtr_

T* dataPtr_
private

pointer to the data

Definition at line 78 of file DynList.H.

◆ nAllocated_

label nAllocated_
private

size of the allocated data

Definition at line 81 of file DynList.H.

◆ staticData_

T staticData_[staticSize]
private

statically allocated data (used for short lists)

Definition at line 84 of file DynList.H.

◆ nextFree_

label nextFree_
private

Number of next free element.

Definition at line 87 of file DynList.H.


The documentation for this class was generated from the following files: