Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JNET::JMemory_t< T > Class Template Reference
Inheritance diagram for JNET::JMemory_t< T >:
JLANG::JMalloc< T >

Static Public Member Functions

static T * create ()
 Create object in memory.
 
static T * create (const unsigned int size)
 Create array of objects in memory.
 
static void release (T *p)
 Release memory.
 

Detailed Description

template<class T>
class JNET::JMemory_t< T >

Definition at line 27 of file JLigier.cc.

Member Function Documentation

◆ create() [1/2]

static T * JLANG::JMalloc< T >::create ( )
inlinestaticinherited

Create object in memory.

Returns
pointer to data

Definition at line 89 of file JMemory.hh.

90 {
91 return (JClass_t*) malloc(sizeof(JClass_t));
92 }

◆ create() [2/2]

static T * JLANG::JMalloc< T >::create ( const unsigned int size)
inlinestaticinherited

Create array of objects in memory.

Parameters
sizenumber of elements
Returns
pointer to data

Definition at line 101 of file JMemory.hh.

102 {
103 return (JClass_t*) malloc(size * sizeof(JClass_t));
104 }

◆ release()

static void JLANG::JMalloc< T >::release ( T * p)
inlinestaticinherited

Release memory.

Parameters
ppointer to data

Definition at line 112 of file JMemory.hh.

113 {
114 free((void*) p);
115 }

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