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

#include <memory_hooks-stdcmalloc.h>

Collaboration diagram for node:

Public Types

enum  TYPE { HISTOGRAM, DIRECTORY, DUFF }
 

Public Member Functions

 node ()
 
 node (node *n, node *p, uint16_t d=deltaLow)
 
 node (bool b)
 
void setNext (node *n)
 
void setPrev (node *p)
 
nodegetNext ()
 
nodegetPrev ()
 
void setSize (size_t s)
 
size_t getSize ()
 
uint16_t getDeltaPayload ()
 
void fillRedZone ()
 
 node (node *n=0, const std::string &d="", TObject *t=0)
 
virtual ~node ()
 
void name (const std::string &n)
 
const std::string & name () const
 
void path (const std::string &p)
 
const std::string & path () const
 
nodeparent ()
 
const nodeparent () const
 
const std::string & depth () const
 
void type (TYPE t)
 
virtual TYPE type () const
 
std::string stype () const
 
const TObject * object () const
 
TObject * object ()
 
void addrate (const std::string &s, double r)
 
void addrate (const std::pair< std::string, double > &r)
 
const std::pair< std::string, double > & rate () const
 

Public Attributes

std::string mname
 
nodemparent
 
TYPE mtype
 
std::string mpath
 
std::string mdepth
 
TObject * mobj
 
std::pair< std::string, double > mhirate
 

Private Attributes

nodem_next
 
nodem_prev
 
uint16_t m_deltaPayload
 
uint16_t m_sizeHigh
 
uint32_t m_sizeLow
 
char m_canary [8]
 

Detailed Description

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

Member Enumeration Documentation

◆ TYPE

enum node::TYPE
Enumerator
HISTOGRAM 
DIRECTORY 
DUFF 

Definition at line 25 of file node.h.

25 { HISTOGRAM, DIRECTORY, DUFF };

Constructor & Destructor Documentation

◆ node() [1/4]

node::node ( )
inline

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

77  m_sizeHigh(0), m_sizeLow(0)
78  {
79  m_canary[0]='r'; m_canary[1]='e'; m_canary[2]='d'; m_canary[3]='z';
80  m_canary[4]='o'; m_canary[5]='n'; m_canary[6]='e'; m_canary[7]=' ';
81  };

◆ node() [2/4]

node::node ( node n,
node p,
uint16_t  d = deltaLow 
)
inline

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

83  m_sizeHigh(0), m_sizeLow(0)
84  {
85  m_canary[0]='r'; m_canary[1]='e'; m_canary[2]='d'; m_canary[3]='z';
86  m_canary[4]='o'; m_canary[5]='n'; m_canary[6]='e'; m_canary[7]=' ';
87  };

◆ node() [3/4]

node::node ( bool  b)
inline

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

89  : m_sizeHigh(0), m_sizeLow(0)
90  {
91  if(b)
92  {
93  m_next=0;
94  m_prev=0;
95  m_deltaPayload=32;
96  m_canary[0]='r'; m_canary[1]='e'; m_canary[2]='d'; m_canary[3]='z';
97  m_canary[4]='o'; m_canary[5]='n'; m_canary[6]='e'; m_canary[7]=' ';
98  }
99  };

◆ node() [4/4]

node::node ( node n = 0,
const std::string &  d = "",
TObject *  t = 0 
)
inline

Definition at line 29 of file node.h.

29  :
30  mname("duff"), mparent(n), mtype(DUFF), mpath(""), mdepth(d), mobj(t) {
31  if ( t!=0 ) mname = t->GetName();
32  mhirate = std::pair<std::string, double>( "", 0);
33  }

◆ ~node()

virtual node::~node ( )
inlinevirtual

Definition at line 35 of file node.h.

35 { }

Member Function Documentation

◆ addrate() [1/2]

void node::addrate ( const std::pair< std::string, double > &  r)
inline

Definition at line 64 of file node.h.

64  {
65  if ( r.second > mhirate.second ) mhirate = r;
66  }

◆ addrate() [2/2]

void node::addrate ( const std::string &  s,
double  r 
)
inline

Definition at line 60 of file node.h.

60  {
61  addrate( std::pair<std::string, double>( s, r ) );
62  }

◆ depth()

const std::string& node::depth ( ) const
inline

Definition at line 46 of file node.h.

46 { return mdepth; }

◆ fillRedZone()

void node::fillRedZone ( )
inline

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

108  {
109  m_canary[0]='r'; m_canary[1]='e'; m_canary[2]='d'; m_canary[3]='z';
110  m_canary[4]='o'; m_canary[5]='n'; m_canary[6]='e'; m_canary[7]=' ';
111  };

◆ getDeltaPayload()

uint16_t node::getDeltaPayload ( )
inline

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

106 { return m_deltaPayload; };

◆ getNext()

node* node::getNext ( )
inline

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

102 { return m_next; };

◆ getPrev()

node* node::getPrev ( )
inline

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

103 { return m_prev; };

◆ getSize()

size_t node::getSize ( )
inline

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

105 { return (size_t)m_sizeLow+(((size_t)m_sizeHigh)<<32); };

◆ name() [1/2]

const std::string& node::name ( ) const
inline

Definition at line 38 of file node.h.

38 { return mname; }

◆ name() [2/2]

void node::name ( const std::string &  n)
inline

Definition at line 37 of file node.h.

37 { mname=n; }

◆ object() [1/2]

TObject* node::object ( )
inline

Definition at line 58 of file node.h.

58 { return mobj; }

◆ object() [2/2]

const TObject* node::object ( ) const
inline

Definition at line 57 of file node.h.

57 { return mobj; }

◆ parent() [1/2]

node* node::parent ( )
inline

Definition at line 43 of file node.h.

43 { return mparent; }

◆ parent() [2/2]

const node* node::parent ( ) const
inline

Definition at line 44 of file node.h.

44 { return mparent; }

◆ path() [1/2]

const std::string& node::path ( ) const
inline

Definition at line 41 of file node.h.

41 { return mpath; }

◆ path() [2/2]

void node::path ( const std::string &  p)
inline

Definition at line 40 of file node.h.

40 { mpath=p; }

◆ rate()

const std::pair<std::string, double>& node::rate ( ) const
inline

Definition at line 68 of file node.h.

68 { return mhirate; }

◆ setNext()

void node::setNext ( node n)
inline

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

100 { m_next=n; };

◆ setPrev()

void node::setPrev ( node p)
inline

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

101 { m_prev=p; };

◆ setSize()

void node::setSize ( size_t  s)
inline

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

104 { m_sizeLow=(uint32_t)(s&0xFFFFFFFF); m_sizeHigh=(s>>32); };

◆ stype()

std::string node::stype ( ) const
inline

Definition at line 51 of file node.h.

51  {
52  if ( type()==DIRECTORY ) return "DIRECTORY";
53  if ( type()==HISTOGRAM ) return "HISTOGRAM";
54  return "DUFF";
55  };

◆ type() [1/2]

virtual TYPE node::type ( ) const
inlinevirtual

Definition at line 49 of file node.h.

49 { return mtype; }

◆ type() [2/2]

void node::type ( TYPE  t)
inline

Definition at line 48 of file node.h.

48 { mtype=t; }

Member Data Documentation

◆ m_canary

char node::m_canary[8]
private

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

◆ m_deltaPayload

uint16_t node::m_deltaPayload
private

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

◆ m_next

node* node::m_next
private

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

◆ m_prev

node* node::m_prev
private

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

◆ m_sizeHigh

uint16_t node::m_sizeHigh
private

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

◆ m_sizeLow

uint32_t node::m_sizeLow
private

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

◆ mdepth

std::string node::mdepth

Definition at line 79 of file node.h.

◆ mhirate

std::pair<std::string, double> node::mhirate

Definition at line 83 of file node.h.

◆ mname

std::string node::mname

Definition at line 73 of file node.h.

◆ mobj

TObject* node::mobj

Definition at line 81 of file node.h.

◆ mparent

node* node::mparent

Definition at line 74 of file node.h.

◆ mpath

std::string node::mpath

Definition at line 77 of file node.h.

◆ mtype

TYPE node::mtype

Definition at line 75 of file node.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
node::mparent
node * mparent
Definition: node.h:74
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
deltaLow
const unsigned int deltaLow
Definition: memory_hooks-stdcmalloc.h:70
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
hist_file_dump.d
d
Definition: hist_file_dump.py:137
node::mhirate
std::pair< std::string, double > mhirate
Definition: node.h:83
node::type
virtual TYPE type() const
Definition: node.h:49
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
node::mtype
TYPE mtype
Definition: node.h:75
node::DUFF
@ DUFF
Definition: node.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
python.LArBadChannelDBAlg.xFFFFFFFF
xFFFFFFFF
Definition: LArBadChannelDBAlg.py:73
beamspotman.n
n
Definition: beamspotman.py:731
node::mname
std::string mname
Definition: node.h:73
node::mpath
std::string mpath
Definition: node.h:77
node::HISTOGRAM
@ HISTOGRAM
Definition: node.h:25
node::m_deltaPayload
uint16_t m_deltaPayload
Definition: memory_hooks-stdcmalloc.h:116
node::addrate
void addrate(const std::string &s, double r)
Definition: node.h:60
node::DIRECTORY
@ DIRECTORY
Definition: node.h:25
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
node::m_sizeHigh
uint16_t m_sizeHigh
Definition: memory_hooks-stdcmalloc.h:117
node::mobj
TObject * mobj
Definition: node.h:81
node::m_prev
node * m_prev
Definition: memory_hooks-stdcmalloc.h:115
node::m_next
node * m_next
Definition: memory_hooks-stdcmalloc.h:111
node::mdepth
std::string mdepth
Definition: node.h:79
node::m_sizeLow
uint32_t m_sizeLow
Definition: memory_hooks-stdcmalloc.h:118
node::m_canary
char m_canary[8]
Definition: memory_hooks-stdcmalloc.h:119