Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Public Member Functions | Static Public Member Functions | Protected Member Functions
Poly_CoherentTriPtr Class Reference

#include <Poly_CoherentTriPtr.hxx>

Data Structures

class  Iterator

Public Member Functions

 Poly_CoherentTriPtr (const Poly_CoherentTriangle &theTri)
DEFINE_NCOLLECTION_ALLOC const
Poly_CoherentTriangle
GetTriangle () const
void SetTriangle (const Poly_CoherentTriangle *pTri)
Poly_CoherentTriPtrNext () const
Poly_CoherentTriPtrPrevious () const
void Append (const Poly_CoherentTriangle *pTri, const Handle_NCollection_BaseAllocator &theA)
void Prepend (const Poly_CoherentTriangle *pTri, const Handle_NCollection_BaseAllocator &theA)

Static Public Member Functions

static void Remove (Poly_CoherentTriPtr *thePtr, const Handle_NCollection_BaseAllocator &theA)
static void RemoveList (Poly_CoherentTriPtr *thePtr, const Handle_NCollection_BaseAllocator &)

Protected Member Functions

 Poly_CoherentTriPtr (const Poly_CoherentTriangle *pTri)

Detailed Description

Implementation of both list node for Poly_CoherentTriangle type and round double-linked list of these nodes.


Constructor & Destructor Documentation

Constructor.

Constructor.


Member Function Documentation

void Poly_CoherentTriPtr::Append ( const Poly_CoherentTriangle pTri,
const Handle_NCollection_BaseAllocator &  theA 
)

Append a pointer to triangle into the list after the current instance.

Parameters:
pTriTriangle that is to be included in the list after this one.
theAAllocator where the new pointer instance is created.

Operator new for dynamic allocations Query the stored pointer to Triangle.

Query the next pointer in the list.

void Poly_CoherentTriPtr::Prepend ( const Poly_CoherentTriangle pTri,
const Handle_NCollection_BaseAllocator &  theA 
)

Prepend a pointer to triangle into the list before the current instance.

Parameters:
pTriTriangle that is to be included in the list before this one.
theAAllocator where the new pointer instance is created.

Query the previous pointer in the list.

static void Poly_CoherentTriPtr::Remove ( Poly_CoherentTriPtr thePtr,
const Handle_NCollection_BaseAllocator &  theA 
) [static]

Remove a pointer to triangle from its list.

Parameters:
thePtrThis class instance that should be removed from its list.
theAAllocator where the current pointer instance was created.
static void Poly_CoherentTriPtr::RemoveList ( Poly_CoherentTriPtr thePtr,
const Handle_NCollection_BaseAllocator &   
) [static]

Remove the list containing the given pointer to triangle.

Initialize this instance with a pointer to triangle.


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