LAMA
/home/brandes/workspace/LAMA/src/lama/pgas/PGASAllocator.hpp
Go to the documentation of this file.
00001 
00033 #ifndef LAMA_PGASALLOCATOR_HPP_
00034 #define LAMA_PGASALLOCATOR_HPP_
00035 #include <cstring>
00036 
00037 namespace lama{
00038 
00039 class PGASAllocator
00040 {
00041 public:
00042     PGASAllocator();
00043     virtual ~PGASAllocator();
00044     virtual void* allocate(size_t size) = 0;
00045     virtual void free(void* ptr, size_t size) = 0;
00046     virtual bool isAllocated(const void* ptr) = 0;
00047     virtual size_t getOffset(const void* ptr) = 0;
00048 };
00049 
00050 }
00051 
00052 #endif // LAMA_PGASALLOCATOR_HPP_