StackNodePool Class Reference

A pool for stack nodes. More...

#include <SVG.h>

Inheritance diagram for StackNodePool:

SVGStackNodeFillRulePool SVGStackNodePaintPool SVGStackNodeTransformationPool List of all members.

Public Member Functions

 StackNodePool ()
 Constructor.
bool init (int aInitialSize, int aIncrement)
 Initializer.
virtual ~StackNodePool ()
 Virtual destructor.
StackNodeget ()
 Returns a new stack node from the pool.
void put (StackNode *aNode)
 Puts a stack node back to the pool.
void putNodes (StackNode *aNode)
 Puts the stack node and all its siblings back to the pool.

Protected Member Functions

bool grow (int aSize)
 Enlarges the pool by aSize.
virtual StackNodecreateNode ()=0
 Virtual method for implementations for creating the nodes.

Protected Attributes

int mGrowIncrement
StackNodemFirst

Detailed Description

A pool for stack nodes.


Constructor & Destructor Documentation

StackNodePool::StackNodePool  ) 
 

Constructor.

StackNodePool::~StackNodePool  )  [virtual]
 

Virtual destructor.


Member Function Documentation

virtual StackNode* StackNodePool::createNode  )  [protected, pure virtual]
 

Virtual method for implementations for creating the nodes.

Implemented in SVGStackNodeTransformationPool, SVGStackNodePaintPool, and SVGStackNodeFillRulePool.

StackNode * StackNodePool::get  ) 
 

Returns a new stack node from the pool.

bool StackNodePool::grow int  aSize  )  [protected]
 

Enlarges the pool by aSize.

bool StackNodePool::init int  aInitialSize,
int  aIncrement
 

Initializer.

void StackNodePool::put StackNode aNode  ) 
 

Puts a stack node back to the pool.

void StackNodePool::putNodes StackNode aNode  ) 
 

Puts the stack node and all its siblings back to the pool.


Member Data Documentation

StackNode* StackNodePool::mFirst [protected]
 

int StackNodePool::mGrowIncrement [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 3 00:44:41 2007 for Scanline edge-flag algorithm for antialiasing by  doxygen 1.4.6-NO