Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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, int length)
 Internally managed storage.

 ShHostStorage (ShMemory *memory, int length, void *data)
 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.

int 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 207 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 250 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 257 of file ShMemory.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Oct 18 14:17:56 2004 for Sh by doxygen 1.3.7