8 #ifndef MEMORY_ARRAY_HPP_
9 #define MEMORY_ARRAY_HPP_
11 #include "memory/memory.hpp"
12 #include "Memleak_check.hpp"
41 ptr =
static_cast<T *
>(ptr_);
67 : ptr(static_cast<T *>(ptr))
memory_array()
Default constructor.
void set_pointer(void *ptr_)
Set the internal pointer to the indicated chunk of memory.
memory_array(void *ptr, size_t sz, bool init)
Memory array constructor.
This class give a representation to a chunk or memory.
void * get_pointer()
Return the pointer.
T & operator[](mem_id i)
operator[]