Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JNew< JClass_t > Class Template Reference

Memory management class for create/release policy based on new/delete. More...

#include <JMemory.hh>

Inheritance diagram for JLANG::JNew< JClass_t >:
JLANG::JStorage< JClass_t, JNew > JLANG::JStorage< JClass_t, JMemory_t > JLANG::JSharedPointer< JClass_t, JMemory_t > JLANG::JSinglePointer< JClass_t, JMemory_t > JROOT::JRootFile JEEP::JPropertiesElement JPARSER::JParserElement JPHYSICS::JACoeffSource JPHYSICS::JRadiationSource JTOOLS::JAbstractAutoPointer< JBase_t > JTOOLS::JAutoElement< JBase_t > JROOT::JRootInputFile JROOT::JRootOutputFile

Static Public Member Functions

static JClass_t * create ()
 Create object in memory.
 
static void release (JClass_t *p)
 Release memory.
 

Detailed Description

template<class JClass_t>
class JLANG::JNew< JClass_t >

Memory management class for create/release policy based on new/delete.

Definition at line 23 of file JMemory.hh.

Member Function Documentation

◆ create()

template<class JClass_t >
static JClass_t * JLANG::JNew< JClass_t >::create ( )
inlinestatic

Create object in memory.

Returns
pointer to data

Definition at line 30 of file JMemory.hh.

31 {
32 return new JClass_t();
33 }

◆ release()

template<class JClass_t >
static void JLANG::JNew< JClass_t >::release ( JClass_t * p)
inlinestatic

Release memory.

Parameters
ppointer to data

Definition at line 41 of file JMemory.hh.

42 {
43 delete p;
44 }

The documentation for this class was generated from the following file: