ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
redzone Class Reference

#include <memory_hooks-stdcmalloc.h>

Collaboration diagram for redzone:

Public Member Functions

 redzone ()
 
 redzone (bool b)
 
 redzone (size_t s, uint32_t st, uint32_t ai)
 
size_t getSize ()
 
uint32_t getStage ()
 
void clearStage ()
 
uint32_t getAlgIndex ()
 

Private Attributes

char m_canary [16]
 
size_t m_s
 
uint32_t m_stage
 
uint32_t m_algIndex
 

Detailed Description

Definition at line 122 of file memory_hooks-stdcmalloc.h.

Constructor & Destructor Documentation

◆ redzone() [1/3]

redzone::redzone ( )
inline

Definition at line 125 of file memory_hooks-stdcmalloc.h.

125  : m_s(0), m_stage(0), m_algIndex(0)
126  {
127  m_canary[0] ='e'; m_canary[1] ='n'; m_canary[2] ='o'; m_canary[3] ='z';
128  m_canary[4] ='d'; m_canary[5] ='e'; m_canary[6] ='r'; m_canary[7] =' ';
129  m_canary[8] ='r'; m_canary[9] ='e'; m_canary[10]='d'; m_canary[11]='z';
130  m_canary[12]='o'; m_canary[13]='n'; m_canary[14]='e'; m_canary[15]=' ';
131  };

◆ redzone() [2/3]

redzone::redzone ( bool  b)
inline

Definition at line 132 of file memory_hooks-stdcmalloc.h.

133  {
134  if(b)
135  {
136  m_s=0;
137  m_stage=0;
138  m_algIndex=0;
139  m_canary[0] ='e'; m_canary[1] ='n'; m_canary[2] ='o'; m_canary[3] ='z';
140  m_canary[4] ='d'; m_canary[5] ='e'; m_canary[6] ='r'; m_canary[7] =' ';
141  m_canary[8] ='r'; m_canary[9] ='e'; m_canary[10]='d'; m_canary[11]='z';
142  m_canary[12]='o'; m_canary[13]='n'; m_canary[14]='e'; m_canary[15]=' ';
143  }
144  };

◆ redzone() [3/3]

redzone::redzone ( size_t  s,
uint32_t  st,
uint32_t  ai 
)
inline

Definition at line 145 of file memory_hooks-stdcmalloc.h.

145  : m_s(s), m_stage(st), m_algIndex(ai)
146  {
147  m_canary[0] ='e'; m_canary[1] ='n'; m_canary[2] ='o'; m_canary[3] ='z';
148  m_canary[4] ='d'; m_canary[5] ='e'; m_canary[6] ='r'; m_canary[7] =' ';
149  m_canary[8] ='R'; m_canary[9] ='E'; m_canary[10]='D'; m_canary[11]='-';
150  m_canary[12]='Z'; m_canary[13]='O'; m_canary[14]='N'; m_canary[15]='E';
151  };

Member Function Documentation

◆ clearStage()

void redzone::clearStage ( )
inline

Definition at line 154 of file memory_hooks-stdcmalloc.h.

154 { m_stage=0; };

◆ getAlgIndex()

uint32_t redzone::getAlgIndex ( )
inline

Definition at line 155 of file memory_hooks-stdcmalloc.h.

155 { return m_algIndex; };

◆ getSize()

size_t redzone::getSize ( )
inline

Definition at line 152 of file memory_hooks-stdcmalloc.h.

152 { return m_s; };

◆ getStage()

uint32_t redzone::getStage ( )
inline

Definition at line 153 of file memory_hooks-stdcmalloc.h.

153 { return m_stage; };

Member Data Documentation

◆ m_algIndex

uint32_t redzone::m_algIndex
private

Definition at line 161 of file memory_hooks-stdcmalloc.h.

◆ m_canary

char redzone::m_canary[16]
private

Definition at line 158 of file memory_hooks-stdcmalloc.h.

◆ m_s

size_t redzone::m_s
private

Definition at line 159 of file memory_hooks-stdcmalloc.h.

◆ m_stage

uint32_t redzone::m_stage
private

Definition at line 160 of file memory_hooks-stdcmalloc.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
redzone::m_s
size_t m_s
Definition: memory_hooks-stdcmalloc.h:159
redzone::m_algIndex
uint32_t m_algIndex
Definition: memory_hooks-stdcmalloc.h:161
redzone::m_canary
char m_canary[16]
Definition: memory_hooks-stdcmalloc.h:155
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
redzone::m_stage
uint32_t m_stage
Definition: memory_hooks-stdcmalloc.h:160