#include <ShMemory.hpp>
Inheritance diagram for SH::ShMemory:
Public Member Functions | |
int | timestamp () const |
Return the timestamp of the most up-to-date storage of this memory. | |
ShPointer< ShStorage > | findStorage (const std::string &id) |
Find a storage of a given id. | |
template<typename Functor> | |
ShPointer< ShStorage > | findStorage (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 |
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.
Definition at line 54 of file ShMemory.hpp.