SH::ShHostStorage Class Reference
[Buffer Management]

An ShStorage representing data stored on the CPU host memory. More...

#include <ShMemory.hpp>

Inheritance diagram for SH::ShHostStorage:

Inheritance graph
[legend]
Collaboration diagram for SH::ShHostStorage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShHostStorage (ShMemory *memory, std::size_t length, ShValueType storage_type)
 Internally managed storage.
 ShHostStorage (ShMemory *memory, std::size_t length, void *data, ShValueType storage_type)
 Externally managed storage.
 ~ShHostStorage ()
 Destruct this storage.
std::string id () const
 Return an id uniquely identifying the _type_ of this storage This is used for looking up transfer functions.
std::size_t length () const
 Return the length (in bytes) of data represented by this storage.
const void * data () const
 Return the location of the storage's data on the host.
void * data ()
 Return the location of the storage's data on the host.

Detailed Description

An ShStorage representing data stored on the CPU host memory.

You probably want to use ShHostMemory to construct this.

See also:
ShMemory

ShStorage

ShHostMemory

Definition at line 237 of file ShMemory.hpp.


Constructor & Destructor Documentation

SH::ShHostStorage::~ShHostStorage  ) 
 

Destruct this storage.

If the memory was allocated internally, it will be freed automatically.

Definition at line 274 of file ShMemory.cpp.


Member Function Documentation

std::string SH::ShHostStorage::id  )  const [virtual]
 

Return an id uniquely identifying the _type_ of this storage This is used for looking up transfer functions.

e.g.: host, opengl:texture, sm:texture

Implements SH::ShStorage.

Definition at line 281 of file ShMemory.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 14:56:27 2006 for Sh by  doxygen 1.4.6