buffer_pool Class Reference

#include <buffer_pool.hpp>

Collaboration diagram for buffer_pool:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 48 of file buffer_pool.hpp.


Public Member Functions

object_record allocate_object ()
 buffer_pool (const vbuffer::update_mode &mode, const gsgl::index_t &num_objects_per_bucket, const gsgl::index_t &num_vertices_per_object, const gsgl::index_t &num_indices_per_object)
void free_object (const object_record &)
void load ()
void unload ()
virtual ~buffer_pool ()

Private Attributes

data::simple_stack< object_recordavailable_objects
data::simple_array< bucket * > buckets
const vbuffer::update_mode mode
const gsgl::index_t num_indices_per_object
const gsgl::index_t num_objects_per_bucket
const gsgl::index_t num_vertices_per_object

Classes

struct  bucket
struct  object_record

Constructor & Destructor Documentation

buffer_pool ( const vbuffer::update_mode mode,
const gsgl::index_t num_objects_per_bucket,
const gsgl::index_t num_vertices_per_object,
const gsgl::index_t num_indices_per_object 
)

Definition at line 45 of file buffer_pool.cpp.

~buffer_pool (  )  [virtual]

Definition at line 52 of file buffer_pool.cpp.

References buffer_pool::buckets.


Member Function Documentation

buffer_pool::object_record allocate_object (  ) 

void free_object ( const object_record obj  ) 

void load (  ) 

Definition at line 98 of file buffer_pool.cpp.

References buffer_pool::buckets.

void unload (  ) 

Definition at line 108 of file buffer_pool.cpp.

References buffer_pool::buckets.

Referenced by spherical_quadtree::cleanup().


Member Data Documentation

Definition at line 79 of file buffer_pool.hpp.

Referenced by buffer_pool::allocate_object(), and buffer_pool::free_object().

const vbuffer::update_mode mode [private]

Definition at line 50 of file buffer_pool.hpp.

Referenced by buffer_pool::allocate_object().

Definition at line 53 of file buffer_pool.hpp.

Referenced by buffer_pool::allocate_object().

Definition at line 51 of file buffer_pool.hpp.

Referenced by buffer_pool::allocate_object().

Definition at line 52 of file buffer_pool.hpp.

Referenced by buffer_pool::allocate_object().


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5