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

SH::ShMemory Class Reference
[Buffer ManagementBuffer Management]

A memory object. More...

#include <ShMemory.hpp>

Inheritance diagram for SH::ShMemory:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

int timestamp () const
 Return the timestamp of the most up-to-date storage of this memory.
ShPointer< ShStoragefindStorage (const std::string &id)
 Find a storage of a given id.
template<typename Functor>
ShPointer< ShStoragefindStorage (const std::string &id, const Functor &f)
 Find a storage of a given id selected by an external functor.
void removeStorage (const ShPointer< ShStorage > &storage)
 Discard this storage from this memory.
void add_dep (ShMemoryDep *dep)
 link the memory to a specific dependency
void flush ()
 modify the memory data by using the links to the dependencies

Friends

class ShStorage

Detailed Description

A memory object.

A memory object represents a chunk of data. Note, however, that copies of this data may be stored in more than one place, i.e. on both the CPU and the GPU. This class keeps track of the "current" version and makes transfers as necessary.

Todo:
Maybe keep a length field (in bytes)?
See also:
ShStorage

Definition at line 54 of file ShMemory.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 18:38:14 2005 for Sh by  doxygen 1.4.1