The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
MyClass1A Class Reference

Simple class, equipped with "Allocator", to be compared with class MyClass1. More...

#include <test/MyClass1A.h>

Public Member Functions

 MyClass1A ()
 
virtual ~MyClass1A ()
 
void * operator new (size_t)
 overloaded 'new' operator
 
void operator delete (void *hit)
 overloaded 'delete' operator
 

Private Attributes

int m_int0 { 0 }
 

Detailed Description

Simple class, equipped with "Allocator", to be compared with class MyClass1.

Author
Vanya BELYAEV
Date
2006-02-14

Definition at line 28 of file MyClass1A.h.

Constructor & Destructor Documentation

◆ MyClass1A()

MyClass1A::MyClass1A ( )

Definition at line 33 of file MyClass1A.cpp.

33{}

◆ ~MyClass1A()

MyClass1A::~MyClass1A ( )
virtual

Definition at line 34 of file MyClass1A.cpp.

34{}

Member Function Documentation

◆ operator delete()

void MyClass1A::operator delete ( void * hit)

overloaded 'delete' operator

Definition at line 57 of file MyClass1A.cpp.

57{ s_Allocator.FreeSingle( (MyClass1A*)hit ); }

◆ operator new()

void * MyClass1A::operator new ( size_t )

overloaded 'new' operator

Definition at line 47 of file MyClass1A.cpp.

47 {
48 void* hit;
49 hit = (void*)s_Allocator.MallocSingle();
50 return hit;
51}

Member Data Documentation

◆ m_int0

int MyClass1A::m_int0 { 0 }
private

Definition at line 48 of file MyClass1A.h.

48{ 0 }; // gain is ~3.0

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