Jpp  test_elongated_shower_pde
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
__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. More...
 
static void * operator new (const std::size_t size)
 new operator. More...
 
static void operator delete (void *p, const std::size_t size)
 delete operator. More...
 

Public Attributes

int i
 
int i
 
double d
 

Static Public Attributes

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

Detailed Description

template<class T>
struct __B__< T >

Definition at line 28 of file JEnumeration.cc.

Member Function Documentation

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

Definition at line 32 of file JEnumeration.cc.

32 { return "__B__"; } // optional name
template<class T >
static int __B__< T >::getVersion ( )
inlinestatic

Definition at line 33 of file JEnumeration.cc.

33 { return 123; } // optional version
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 44 of file JObjectAllocator.hh.

45  {
46  static JAllocator_t allocator(BLOCK_SIZE);
47 
48  return allocator;
49  }
static const std::size_t BLOCK_SIZE
size of object [Byte]
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 60 of file JObjectAllocator.hh.

61  {
62  return getInstance().allocate();
63  }
static JLANG::JAllocator & getInstance()
Get reference to unique instance of this class object.
void * allocate()
Allocate memory.
Definition: JAllocator.hh:179
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 72 of file JObjectAllocator.hh.

73  {
74  getInstance().free(p);
75  }
void free(void *p)
Deallocate memory.
Definition: JAllocator.hh:219
static JLANG::JAllocator & getInstance()
Get reference to unique instance of this class object.

Member Data Documentation

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

Definition at line 30 of file JEnumeration.cc.

int __A__::i
inherited

Definition at line 64 of file JObjectDemultiplexer.cc.

int __A__::i
inherited

Definition at line 24 of file JAllocator.cc.

double __A__::d
inherited

Definition at line 25 of file JAllocator.cc.

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

size of object [Byte]

Definition at line 52 of file JObjectAllocator.hh.


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