CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdDbGraphStack Class Reference

#include <DbGraph.h>

Public Member Functions

 OdDbGraphStack (int initPhysicalLength=0, int initGrowLength=8)
 
 ~OdDbGraphStack ()
 
void push (OdDbGraphNode *pNode)
 
OdDbGraphNodepop ()
 
OdDbGraphNodetop () const
 
bool isEmpty () const
 

Detailed Description

This class implements stacks for OdDbGraphNode object pointers. Corresponding C++ library: TD_Db

<group OdDb_Classes>

Definition at line 416 of file DbGraph.h.

Constructor & Destructor Documentation

◆ OdDbGraphStack()

OdDbGraphStack::OdDbGraphStack ( int  initPhysicalLength = 0,
int  initGrowLength = 8 
)
inline
Parameters
initPhysicalLength[in] Initial Physical Length.
initGrowLength[in] Initial Grow Length.
Remarks
Physical Length is the maximum number of entries in this Stack object before it automatically grows.

Grow Length is the number of entries by which the Physical Length will grow as required.

Definition at line 428 of file DbGraph.h.

◆ ~OdDbGraphStack()

OdDbGraphStack::~OdDbGraphStack ( )
inline

Definition at line 433 of file DbGraph.h.

Member Function Documentation

◆ isEmpty()

bool OdDbGraphStack::isEmpty ( ) const
inline

Returns true if and only if this Stack object is empty.

Definition at line 472 of file DbGraph.h.

◆ pop()

OdDbGraphNode* OdDbGraphStack::pop ( )
inline

Pops and returns the GraphNode at the top of this Stack object.

Remarks
Returns a null pointer if this Stack object is empty.

Definition at line 449 of file DbGraph.h.

◆ push()

void OdDbGraphStack::push ( OdDbGraphNode pNode)
inline

Pushes the specified GraphNode onto this Stack object.

Parameters
pNode[in] Pointer to the node to be pushed.

Definition at line 440 of file DbGraph.h.

◆ top()

OdDbGraphNode* OdDbGraphStack::top ( ) const
inline

Returns the OdDbGraphNode at the top of this Stack object.

Remarks
Returns a null pointer if this Stack object is empty.

Definition at line 467 of file DbGraph.h.


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