1 #ifndef __JLANG__JSTORAGE__ 
    2 #define __JLANG__JSTORAGE__ 
   13 namespace JPP { 
using namespace JLANG; }
 
   25   template<
class JClass_t, 
template<
class> 
class JMemory_t = 
JNew>
 
   28     public JMemory_t<JClass_t>
 
   60         this->
set(memory_type::create());
 
   71       this->
reset(memory_type::create());
 
   83       this->
reset(memory_type::create(size));
 
   93       memory_type::release(this->
get());
 
virtual void reset()
Reset pointer. 
 
Memory management class for create/release policy based on new/delete. 
 
void create()
Create object in memory. 
 
JMemory_t< JClass_t > memory_type
 
bool is_valid() const 
Check validity of pointer. 
 
JPointer< JClass_t > pointer_type
 
void recreate()
Recreate object in memory. 
 
virtual void reset()
Reset pointer. 
 
Template implementation of class that holds pointer to object(s). 
 
void create(const unsigned int size)
Create array of objects in memory. 
 
void release()
Release memory. 
 
Base class for memory management. 
 
virtual void set(JClass_t *p)
Set pointer.