Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes
NCollection_BaseSequence Class Reference

#include <NCollection_BaseSequence.hxx>

Inherited by NCollection_Sequence< NCollection_Array1< gp_Pnt2d > >, NCollection_Sequence< gp_Pnt2d >, NCollection_Sequence< double >, NCollection_Sequence< int >, NCollection_Sequence< NCollection_Array1< gp_Pnt > >, NCollection_Sequence< gp_Pnt >, NCollection_Sequence< opencascade::handle< AIS_Animation > >, NCollection_Sequence< Quantity_Color >, NCollection_Sequence< TCollection_ExtendedString >, NCollection_Sequence< gp_Trsf >, NCollection_Sequence< NCollection_Vec2< int > >, NCollection_Sequence< Aspect_ScrollDelta >, NCollection_Sequence< opencascade::handle< AdvApp2Var_Node > >, NCollection_Sequence< NCollection_Sequence< opencascade::handle< AdvApp2Var_Iso > > >, NCollection_Sequence< opencascade::handle< AdvApp2Var_Patch > >, NCollection_Sequence< AppParCurves_MultiCurve >, NCollection_Sequence< opencascade::handle< NCollection_HArray1< double > > >, NCollection_Sequence< opencascade::handle< NCollection_HArray1< gp_Pnt2d > > >, NCollection_Sequence< BRepBlend_PointOnRst >, NCollection_Sequence< Blend_Point >, NCollection_Sequence< BRepClass3d_BndBoxTreeSelectorLine::EdgeParam >, NCollection_Sequence< BRepClass3d_BndBoxTreeSelectorLine::VertParam >, NCollection_Sequence< BRepExtrema_SolutionElem >, NCollection_Sequence< Extrema_POnSurf >, NCollection_Sequence< Extrema_POnCurv >, NCollection_Sequence< bool >, NCollection_Sequence< opencascade::handle< Geom_Curve > >, NCollection_Sequence< TopoDS_Shape >, NCollection_Sequence< BRepFill_EdgeFaceAndOrder >, NCollection_Sequence< BRepFill_FaceAndOrder >, NCollection_Sequence< opencascade::handle< GeomPlate_PointConstraint > >, NCollection_Sequence< BRepFill_Section >, NCollection_Sequence< NCollection_Sequence< opencascade::handle< Geom2d_Curve > > >, NCollection_Sequence< NCollection_Sequence< TopoDS_Shape > >, NCollection_Sequence< opencascade::handle< Standard_Transient > >, NCollection_Sequence< CSLib_Class2d >, NCollection_Sequence< void * >, NCollection_Sequence< gp_Ax1 >, NCollection_Sequence< gp_XY >, NCollection_Sequence< Contap_Line >, NCollection_Sequence< IntSurf_Couple >, NCollection_Sequence< IntSurf_PathPoint >, NCollection_Sequence< opencascade::handle< Contap_TheIWLineOfTheIWalking > >, NCollection_Sequence< Contap_TheSegmentOfTheSearch >, NCollection_Sequence< Contap_ThePathPointOfTheSearch >, NCollection_Sequence< IntSurf_InteriorPoint >, NCollection_Sequence< NCollection_Array1< PointType > >, NCollection_Sequence< PointType >, NCollection_Sequence< opencascade::handle< Draw_Drawable3D > >, NCollection_Sequence< opencascade::handle< Expr_NamedFunction > >, NCollection_Sequence< opencascade::handle< Expr_NamedExpression > >, NCollection_Sequence< opencascade::handle< Expr_GeneralExpression > >, NCollection_Sequence< opencascade::handle< Expr_GeneralRelation > >, NCollection_Sequence< Extrema_POnCurv2d >, NCollection_Sequence< NCollection_List< opencascade::handle< NCollection_HArray1< double > > > >, NCollection_Sequence< Geom2dConvert_PPoint >, NCollection_Sequence< opencascade::handle< Geom2d_Curve > >, NCollection_Sequence< HatchGen_PointOnHatching >, NCollection_Sequence< HatchGen_Domain >, NCollection_Sequence< gp_XYZ >, NCollection_Sequence< opencascade::handle< Graphic3d_Group > >, NCollection_Sequence< opencascade::handle< Graphic3d_CView > >, NCollection_Sequence< opencascade::handle< Graphic3d_Structure > >, NCollection_Sequence< opencascade::handle< Graphic3d_ClipPlane > >, NCollection_Sequence< opencascade::handle< Graphic3d_ShaderObject > >, NCollection_Sequence< opencascade::handle< Graphic3d_ShaderVariable > >, NCollection_Sequence< opencascade::handle< Graphic3d_ShaderAttribute > >, NCollection_Sequence< HLRBRep_ShapeBounds >, NCollection_Sequence< HatchGen_PointOnElement >, NCollection_Sequence< Hatch_Line >, NCollection_Sequence< Hatch_Parameter >, NCollection_Sequence< opencascade::handle< IFSelect_GeneralModifier > >, NCollection_Sequence< opencascade::handle< Interface_InterfaceModel > >, NCollection_Sequence< TCollection_AsciiString >, NCollection_Sequence< opencascade::handle< IFSelect_AppliedModifiers > >, NCollection_Sequence< opencascade::handle< IFSelect_Selection > >, NCollection_Sequence< opencascade::handle< IFSelect_Dispatch > >, NCollection_Sequence< IntCurveSurface_IntersectionPoint >, NCollection_Sequence< IntCurveSurface_IntersectionSegment >, NCollection_Sequence< opencascade::handle< IntCurvesFace_Intersector > >, NCollection_Sequence< IntPatch_Point >, NCollection_Sequence< opencascade::handle< IntPatch_Line > >, NCollection_Sequence< opencascade::handle< IntPatch_TheIWLineOfTheIWalking > >, NCollection_Sequence< IntPatch_TheSegmentOfTheSOnBounds >, NCollection_Sequence< IntPatch_ThePathPointOfTheSOnBounds >, NCollection_Sequence< IntPolyh_StartPoint >, NCollection_Sequence< IntRes2d_IntersectionPoint >, NCollection_Sequence< IntRes2d_IntersectionSegment >, NCollection_Sequence< IntSurf_PntOn2S >, NCollection_Sequence< IntTools_Range >, NCollection_Sequence< IntTools_CommonPrt >, NCollection_Sequence< IntTools_Curve >, NCollection_Sequence< IntTools_PntOn2Faces >, NCollection_Sequence< Intf_SectionPoint >, NCollection_Sequence< Intf_SectionLine >, NCollection_Sequence< Intf_TangentZone >, NCollection_Sequence< Intrv_Interval >, NCollection_Sequence< LProp_CIType >, NCollection_Sequence< LocOpe_PntFace >, NCollection_Sequence< opencascade::handle< Geom2d_Geometry > >, NCollection_Sequence< opencascade::handle< MAT2d_Connexion > >, NCollection_Sequence< opencascade::handle< MAT_Arc > >, NCollection_Sequence< opencascade::handle< Message_Printer > >, NCollection_Sequence< Message_Level * >, NCollection_Sequence< opencascade::handle< NLPlate_HGPPConstraint > >, NCollection_Sequence< opencascade::handle< OpenGl_ShaderProgram > >, NCollection_Sequence< opencascade::handle< OpenGl_ShaderObject > >, NCollection_Sequence< PCDM_Reference >, NCollection_Sequence< Plate_PinpointConstraint >, NCollection_Sequence< Plate_LinearXYZConstraint >, NCollection_Sequence< Plate_LinearScalarConstraint >, NCollection_Sequence< NCollection_List >, NCollection_Sequence< HCurve >, NCollection_Sequence< HArrow >, NCollection_Sequence< opencascade::handle< PrsMgr_Presentation > >, NCollection_Sequence< RWGltf_GltfPrimArrayData >, NCollection_Sequence< opencascade::handle< STEPSelections_AssemblyComponent > >, NCollection_Sequence< opencascade::handle< SelectMgr_Selection > >, NCollection_Sequence< opencascade::handle< TDocStd_Document > >, NCollection_Sequence< opencascade::handle< TDocStd_ApplicationDelta > >, NCollection_Sequence< opencascade::handle< TObj_ObjectIterator > >, NCollection_Sequence< TopOpeBRep_Point2d >, NCollection_Sequence< opencascade::handle< V3d_View > >, NCollection_Sequence< XCAFDimTolObjects_DatumSingleModif >, NCollection_Sequence< XCAFDimTolObjects_DimensionModif >, NCollection_Sequence< XCAFDimTolObjects_GeomToleranceModif >, NCollection_Sequence< AuxAssemblyItem >, NCollection_Sequence< opencascade::handle< XCAFDoc_GraphNode > >, NCollection_Sequence< TDF_Label >, NCollection_Sequence< XmlLDrivers_NamespaceDef >, and NCollection_Sequence< TheItemType >.

Data Structures

class  Iterator
 Memory allocation. More...
 

Public Member Functions

bool IsEmpty () const noexcept
 
int Length () const noexcept
 Number of items (legacy int-returning API).
 
size_t Size () const noexcept
 Size - number of items.
 
const occ::handle< NCollection_BaseAllocator > & Allocator () const noexcept
 Returns attached allocator.
 

Protected Member Functions

 NCollection_BaseSequence (const occ::handle< NCollection_BaseAllocator > &theAllocator)
 
virtual ~NCollection_BaseSequence ()=default
 Destructor.
 
void ClearSeq (NCollection_DelSeqNode fDel)
 
void PAppend (NCollection_SeqNode *)
 
void PAppend (NCollection_BaseSequence &S)
 
void PPrepend (NCollection_SeqNode *)
 
void PPrepend (NCollection_BaseSequence &S)
 
void PInsertAfter (Iterator &thePosition, NCollection_SeqNode *)
 
void PInsertAfter (const size_t Index, NCollection_SeqNode *)
 
void PInsertAfter (const size_t Index, NCollection_BaseSequence &S)
 
void PSplit (const size_t Index, NCollection_BaseSequence &Sub)
 
void RemoveSeq (Iterator &thePosition, NCollection_DelSeqNode fDel)
 
void RemoveSeq (const size_t Index, NCollection_DelSeqNode fDel)
 
void RemoveSeq (const size_t From, const size_t To, NCollection_DelSeqNode fDel)
 
void PReverse () noexcept
 
void PExchange (const size_t I, const size_t J)
 
NCollection_SeqNodeFind (const size_t) const noexcept
 

Protected Attributes

occ::handle< NCollection_BaseAllocatormyAllocator
 
NCollection_SeqNodemyFirstItem
 
NCollection_SeqNodemyLastItem
 
NCollection_SeqNodemyCurrentItem
 
size_t myCurrentIndex
 
size_t mySize
 

Detailed Description

Purpose: This is a base class for the Sequence. It deals with an indexed bidirectional list of NCollection_SeqNode's.

Constructor & Destructor Documentation

◆ NCollection_BaseSequence()

NCollection_BaseSequence::NCollection_BaseSequence ( const occ::handle< NCollection_BaseAllocator > & theAllocator)
inlineprotected

◆ ~NCollection_BaseSequence()

virtual NCollection_BaseSequence::~NCollection_BaseSequence ( )
protectedvirtualdefault

Destructor.

Member Function Documentation

◆ Allocator()

const occ::handle< NCollection_BaseAllocator > & NCollection_BaseSequence::Allocator ( ) const
inlinenoexcept

Returns attached allocator.

◆ ClearSeq()

void NCollection_BaseSequence::ClearSeq ( NCollection_DelSeqNode fDel)
protected

◆ Find()

NCollection_SeqNode * NCollection_BaseSequence::Find ( const size_t ) const
protectednoexcept

◆ IsEmpty()

bool NCollection_BaseSequence::IsEmpty ( ) const
inlinenoexcept

◆ Length()

int NCollection_BaseSequence::Length ( ) const
inlinenoexcept

Number of items (legacy int-returning API).

◆ PAppend() [1/2]

void NCollection_BaseSequence::PAppend ( NCollection_BaseSequence & S)
protected

◆ PAppend() [2/2]

void NCollection_BaseSequence::PAppend ( NCollection_SeqNode * )
protected

◆ PExchange()

void NCollection_BaseSequence::PExchange ( const size_t I,
const size_t J )
protected

◆ PInsertAfter() [1/3]

void NCollection_BaseSequence::PInsertAfter ( const size_t Index,
NCollection_BaseSequence & S )
protected

◆ PInsertAfter() [2/3]

void NCollection_BaseSequence::PInsertAfter ( const size_t Index,
NCollection_SeqNode *  )
protected

◆ PInsertAfter() [3/3]

void NCollection_BaseSequence::PInsertAfter ( Iterator & thePosition,
NCollection_SeqNode *  )
protected

◆ PPrepend() [1/2]

void NCollection_BaseSequence::PPrepend ( NCollection_BaseSequence & S)
protected

◆ PPrepend() [2/2]

void NCollection_BaseSequence::PPrepend ( NCollection_SeqNode * )
protected

◆ PReverse()

void NCollection_BaseSequence::PReverse ( )
protectednoexcept

◆ PSplit()

void NCollection_BaseSequence::PSplit ( const size_t Index,
NCollection_BaseSequence & Sub )
protected

◆ RemoveSeq() [1/3]

void NCollection_BaseSequence::RemoveSeq ( const size_t From,
const size_t To,
NCollection_DelSeqNode fDel )
protected

◆ RemoveSeq() [2/3]

void NCollection_BaseSequence::RemoveSeq ( const size_t Index,
NCollection_DelSeqNode fDel )
protected

◆ RemoveSeq() [3/3]

void NCollection_BaseSequence::RemoveSeq ( Iterator & thePosition,
NCollection_DelSeqNode fDel )
protected

◆ Size()

size_t NCollection_BaseSequence::Size ( ) const
inlinenoexcept

Size - number of items.

Field Documentation

◆ myAllocator

occ::handle<NCollection_BaseAllocator> NCollection_BaseSequence::myAllocator
protected

◆ myCurrentIndex

size_t NCollection_BaseSequence::myCurrentIndex
protected

◆ myCurrentItem

NCollection_SeqNode* NCollection_BaseSequence::myCurrentItem
protected

◆ myFirstItem

NCollection_SeqNode* NCollection_BaseSequence::myFirstItem
protected

◆ myLastItem

NCollection_SeqNode* NCollection_BaseSequence::myLastItem
protected

◆ mySize

size_t NCollection_BaseSequence::mySize
protected

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