ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
D3PD::VectorFillerToolBase::Vars Struct Reference

Description for the list of variables. More...

Inheritance diagram for D3PD::VectorFillerToolBase::Vars:
Collaboration diagram for D3PD::VectorFillerToolBase::Vars:

Public Member Functions

 ~Vars ()
 Destructor. More...
 
void resize_all (size_t sz, size_t pos=0)
 Resize all vector. More...
 
void next_all ()
 Move all variable pointers to the next element. More...
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

Description for the list of variables.

This is a list of Var objects, with a few convenient extensions for performing operations on all variables.

Note: has to be a list rather than a vector, since we want to be able to extend it without changing the addresses of existing elements.

Definition at line 324 of file VectorFillerToolBase.h.

Constructor & Destructor Documentation

◆ ~Vars()

D3PD::VectorFillerToolBase::Vars::~Vars ( )

Destructor.

Definition at line 551 of file VectorFillerToolBase.cxx.

552 {
553  for (Var& v : *this) {
554  v.free();
555  }
556 }

Member Function Documentation

◆ next_all()

void D3PD::VectorFillerToolBase::Vars::next_all ( )
inline

Move all variable pointers to the next element.

Definition at line 42 of file VectorFillerToolBase.cxx.

43 {
44  for (Var& v : *this) {
45  v.next();
46  }
47 }

◆ resize_all()

void D3PD::VectorFillerToolBase::Vars::resize_all ( size_t  sz,
size_t  pos = 0 
)

Resize all vector.

Parameters
szThe new vector size.
posAfter the resize, move the variable pointers to this element.

Definition at line 564 of file VectorFillerToolBase.cxx.

565 {
566  for (Var& v : *this) {
567  v.resize (sz, pos);
568  }
569 }

Member Data Documentation

◆ elements

T std::list< T >::elements
inherited

STL member.


The documentation for this struct was generated from the following files:
fitman.sz
sz
Definition: fitman.py:527
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.PyAthena.v
v
Definition: PyAthena.py:157
Prompt::Def::Var
Var
Definition: VarHolder.h:57