osg::HalfEdgeGraph::TrianglePool::Chunk Class Reference

#include <OSGHalfEdgeGraph.h>

List of all members.

Public Member Functions

 Chunk (const UInt32 size)
 ~Chunk (void)
UInt32 countElem (void)

Public Attributes

const UInt32 _size
UInt32 _freeElem
Chunk_next
Triangle_data


Detailed Description

Definition at line 223 of file OSGHalfEdgeGraph.h.


Constructor & Destructor Documentation

osg::HalfEdgeGraph::TrianglePool::Chunk::Chunk ( const UInt32  size  )  [inline]

Definition at line 217 of file OSGHalfEdgeGraph.inl.

References _data.

00218     : _size(size), _freeElem(size), _next(0) 
00219 {
00220     _data = new Triangle[size];
00221 }

osg::HalfEdgeGraph::TrianglePool::Chunk::~Chunk ( void   )  [inline]

Definition at line 224 of file OSGHalfEdgeGraph.inl.

References _data, and _next.

00225 {
00226     delete [] _data;
00227     delete _next;
00228 }


Member Function Documentation

UInt32 osg::HalfEdgeGraph::TrianglePool::Chunk::countElem ( void   )  [inline]

Definition at line 231 of file OSGHalfEdgeGraph.inl.

References _freeElem, _next, _size, and countElem().

Referenced by osg::HalfEdgeGraph::TrianglePool::countElem(), and countElem().

00232 {
00233     return ((_size - _freeElem) + (_next ? _next->countElem() : 0));
00234 }


Member Data Documentation


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

Generated on Mon Mar 17 12:07:15 2008 for OpenSG by  doxygen 1.5.5