SH::ShMemory Class Reference
[Buffer 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

virtual ~ShMemory ()
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.
template<typename Functor>
ShPointer< ShStoragefindStorage (const std::string &id, Functor &f)
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
void freeze (bool state)
 (un)freeze the current timestamp

Protected Member Functions

 ShMemory ()

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 48 of file ShMemory.hpp.


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