Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
__B__< T > Struct Template Reference
Inheritance diagram for __B__< T >:
JLANG::JObjectAllocator< __A__, JLANG::JAllocator >

Static Public Member Functions

static const char * getName ()
 
static int getVersion ()
 
static JLANG::JAllocatorgetInstance ()
 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 i
 

Static Public Attributes

static const int ID = 9
 
static const std::size_t BLOCK_SIZE
 size of object [Byte]
 

Detailed Description

template<class T>
struct __B__< T >

Definition at line 28 of file JEnumeration.cc.

Member Function Documentation

◆ getName()

template<class T >
static const char * __B__< T >::getName ( )
inlinestatic

Definition at line 32 of file JEnumeration.cc.

32{ return "__B__"; } // optional name

◆ getVersion()

template<class T >
static int __B__< T >::getVersion ( )
inlinestatic

Definition at line 33 of file JEnumeration.cc.

33{ return 123; } // optional version

◆ getInstance()

static JLANG::JAllocator & JLANG::JObjectAllocator< __A__, JLANG::JAllocator >::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::JAllocator >::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.

◆ operator delete()

static void JLANG::JObjectAllocator< __A__, JLANG::JAllocator >::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.

Member Data Documentation

◆ ID

template<class T >
const int __B__< T >::ID = 9
static

Definition at line 30 of file JEnumeration.cc.

◆ i [1/2]

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::JAllocator >::BLOCK_SIZE
staticinherited

size of object [Byte]

Definition at line 54 of file JObjectAllocator.hh.

◆ i [2/2]

int __A__::i
inherited

Definition at line 71 of file JObjectDemultiplexer.cc.


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