Go to the documentation of this file. 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 set(JClass_t *p)
Set pointer.
virtual JClass_t * get() const
Get pointer.
Memory management class for create/release policy based on new/delete.
void recreate()
Recreate object in memory.
void create()
Create object in memory.
JPointer< JClass_t > pointer_type
JMemory_t< JClass_t > memory_type
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template implementation of class that holds pointer to object(s).
virtual void reset()
Reset pointer.
void create(const unsigned int size)
Create array of objects in memory.
void release()
Release memory.
Auxiliary classes and methods for language specific functionality.
virtual void reset()
Reset pointer.
bool is_valid() const
Check validity of pointer.