Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
__C__ Struct Reference
Inheritance diagram for __C__:
JLANG::JObjectAllocator< __A__, JLANG::JRAM >

Static Public Member Functions

static JLANG::JRAMgetInstance ()
 Get reference to unique instance of this class object.
 
static void * operator new (const std::size_t size)
 new operator.
 
static void operator delete (void *p, const std::size_t size)
 delete operator.
 

Public Attributes

int i
 
double d
 
int value
 
int value
 
int value
 
int value
 

Static Public Attributes

static const std::size_t BLOCK_SIZE
 size of object [Byte]
 

Detailed Description

Definition at line 45 of file JStreamAvailable.cc.

Member Function Documentation

◆ getInstance()

static JLANG::JRAM & JLANG::JObjectAllocator< __A__, JLANG::JRAM >::getInstance ( )
inlinestaticinherited

Get reference to unique instance of this class object.

Returns
reference to this class object

Definition at line 46 of file JObjectAllocator.hh.

47 {
48 static JAllocator_t allocator(BLOCK_SIZE);
49
50 return allocator;
51 }

◆ operator new()

static void * JLANG::JObjectAllocator< __A__, JLANG::JRAM >::operator new ( const std::size_t size)
inlinestaticinherited

new operator.

Returns
pointer to new object (or NULL)

Definition at line 62 of file JObjectAllocator.hh.

63 {
64 return getInstance().allocate();
65 }
void * allocate()
Allocate memory.
Definition JRAM.hh:115

◆ operator delete()

static void JLANG::JObjectAllocator< __A__, JLANG::JRAM >::operator delete ( void * p,
const std::size_t size )
inlinestaticinherited

delete operator.

Parameters
ppointer to object to be freed
sizenumber of bytes

Definition at line 74 of file JObjectAllocator.hh.

75 {
76 getInstance().free(p);
77 }
void free(void *p)
Deallocate memory.
Definition JRAM.hh:132

Member Data Documentation

◆ i

int __A__::i
inherited

Definition at line 25 of file JAllocator.cc.

◆ d

double __A__::d
inherited

Definition at line 26 of file JAllocator.cc.

◆ BLOCK_SIZE

const std::size_t JLANG::JObjectAllocator< __A__, JLANG::JRAM >::BLOCK_SIZE
staticinherited

size of object [Byte]

Definition at line 54 of file JObjectAllocator.hh.

◆ value [1/4]

int __A__::value
inherited

Definition at line 43 of file JMultiComparable.cc.

◆ value [2/4]

int __B__::value
inherited

Definition at line 69 of file JMultiComparable.cc.

◆ value [3/4]

int __A__::value
inherited

Definition at line 38 of file JMultiEquals.cc.

◆ value [4/4]

int __B__::value
inherited

Definition at line 63 of file JMultiEquals.cc.


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