#include <ShMemory.hpp>
Inheritance diagram for SH::ShMemory:


Public Member Functions | |
| virtual | ~ShMemory () |
| 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. | |
| template<typename Functor> | |
| ShPointer< ShStorage > | findStorage (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 |
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 48 of file ShMemory.hpp.
1.4.6