ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
SG::ArenaAllocatorBase::Stats::Stat Struct Reference

A single statistic. More...

#include <ArenaAllocatorBase.h>

Collaboration diagram for SG::ArenaAllocatorBase::Stats::Stat:

Public Member Functions

 Stat ()
 Default constructor. More...
 
void clear ()
 Reset to zero. More...
 
Statoperator+= (const Stat &other)
 Accumulate. More...
 

Public Attributes

size_t inuse
 Number of items currently allocated by the application. More...
 
size_t free
 Number of items currently not allocated by the application but cached by the allocator. More...
 
size_t total
 Total number of items held by the allocator. More...
 

Detailed Description

A single statistic.

Definition at line 193 of file ArenaAllocatorBase.h.

Constructor & Destructor Documentation

◆ Stat()

SG::ArenaAllocatorBase::Stats::Stat::Stat ( )

Default constructor.

Constructor for a single statistic.

Definition at line 26 of file ArenaAllocatorBase.cxx.

27  : inuse (0),
28  free (0),
29  total (0)
30 {
31 }

Member Function Documentation

◆ clear()

void SG::ArenaAllocatorBase::Stats::Stat::clear ( )

Reset to zero.

Zero a statistic.

Definition at line 37 of file ArenaAllocatorBase.cxx.

38 {
39  inuse = free = total = 0;
40 }

◆ operator+=()

ArenaAllocatorBase::Stats::Stat & SG::ArenaAllocatorBase::Stats::Stat::operator+= ( const Stat other)

Accumulate.

Accumulate a statistic.

Parameters
otherThe statistic to accumulate into this one.

Definition at line 48 of file ArenaAllocatorBase.cxx.

49 {
50  inuse += other.inuse;
51  free += other.free;
52  total += other.total;
53  return *this;
54 }

Member Data Documentation

◆ free

size_t SG::ArenaAllocatorBase::Stats::Stat::free

Number of items currently not allocated by the application but cached by the allocator.

Definition at line 205 of file ArenaAllocatorBase.h.

◆ inuse

size_t SG::ArenaAllocatorBase::Stats::Stat::inuse

Number of items currently allocated by the application.

Definition at line 202 of file ArenaAllocatorBase.h.

◆ total

size_t SG::ArenaAllocatorBase::Stats::Stat::total

Total number of items held by the allocator.

Definition at line 207 of file ArenaAllocatorBase.h.


The documentation for this struct was generated from the following files:
SG::ArenaAllocatorBase::Stats::Stat::free
size_t free
Number of items currently not allocated by the application but cached by the allocator.
Definition: ArenaAllocatorBase.h:205
SG::ArenaAllocatorBase::Stats::Stat::inuse
size_t inuse
Number of items currently allocated by the application.
Definition: ArenaAllocatorBase.h:202
SG::ArenaAllocatorBase::Stats::Stat::total
size_t total
Total number of items held by the allocator.
Definition: ArenaAllocatorBase.h:207
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16