CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ALIUnitsCategory Class Reference

#include <ALIUnitsTable.h>

Public Member Functions

 ALIUnitsCategory (ALIstring name)
 
ALIstring GetName () const
 
ALIint GetNameMxLen () const
 
ALIint GetSymbMxLen () const
 
ALIUnitsContainerGetUnitsList ()
 
ALIint operator!= (const ALIUnitsCategory &) const
 
ALIint operator== (const ALIUnitsCategory &) const
 
void PrintCategory ()
 
void UpdateNameMxLen (ALIint len)
 
void UpdateSymbMxLen (ALIint len)
 
 ~ALIUnitsCategory ()
 

Private Member Functions

 ALIUnitsCategory (ALIUnitsCategory &)
 
ALIUnitsCategoryoperator= (const ALIUnitsCategory &)
 

Private Attributes

ALIstring Name
 
ALIint NameMxLen
 
ALIint SymbMxLen
 
ALIUnitsContainer UnitsList
 

Detailed Description

Definition at line 94 of file ALIUnitsTable.h.

Constructor & Destructor Documentation

◆ ALIUnitsCategory() [1/2]

ALIUnitsCategory::ALIUnitsCategory ( ALIstring  name)

Definition at line 240 of file ALIUnitsTable.cc.

240  : Name(name), NameMxLen(0), SymbMxLen(0) {
241  UnitsList = *(new ALIUnitsContainer);
242 }

References UnitsList.

◆ ~ALIUnitsCategory()

ALIUnitsCategory::~ALIUnitsCategory ( )

Definition at line 246 of file ALIUnitsTable.cc.

246 {}

◆ ALIUnitsCategory() [2/2]

ALIUnitsCategory::ALIUnitsCategory ( ALIUnitsCategory right)
private

Definition at line 250 of file ALIUnitsTable.cc.

250 { *this = right; }

Member Function Documentation

◆ GetName()

ALIstring ALIUnitsCategory::GetName ( ) const
inline

Definition at line 106 of file ALIUnitsTable.h.

106 { return Name; }

References Name.

◆ GetNameMxLen()

ALIint ALIUnitsCategory::GetNameMxLen ( ) const
inline

Definition at line 108 of file ALIUnitsTable.h.

108 { return NameMxLen; }

References NameMxLen.

◆ GetSymbMxLen()

ALIint ALIUnitsCategory::GetSymbMxLen ( ) const
inline

Definition at line 109 of file ALIUnitsTable.h.

109 { return SymbMxLen; }

References SymbMxLen.

◆ GetUnitsList()

ALIUnitsContainer& ALIUnitsCategory::GetUnitsList ( )
inline

Definition at line 107 of file ALIUnitsTable.h.

107 { return UnitsList; }

References UnitsList.

◆ operator!=()

ALIint ALIUnitsCategory::operator!= ( const ALIUnitsCategory right) const

Definition at line 270 of file ALIUnitsTable.cc.

270 { return (this != &right); }

◆ operator=()

ALIUnitsCategory & ALIUnitsCategory::operator= ( const ALIUnitsCategory right)
private

Definition at line 254 of file ALIUnitsTable.cc.

254  {
255  if (this != &right) {
256  Name = right.Name;
257  UnitsList = right.UnitsList;
258  NameMxLen = right.NameMxLen;
259  SymbMxLen = right.SymbMxLen;
260  }
261  return *this;
262 }

References Name, NameMxLen, SymbMxLen, and UnitsList.

◆ operator==()

ALIint ALIUnitsCategory::operator== ( const ALIUnitsCategory right) const

Definition at line 266 of file ALIUnitsTable.cc.

266 { return (this == &right); }

◆ PrintCategory()

void ALIUnitsCategory::PrintCategory ( )

Definition at line 274 of file ALIUnitsTable.cc.

274  {
275  std::cout << "\n category: " << Name << std::endl;
276  for (size_t i = 0; i < UnitsList.size(); i++)
277  UnitsList[i]->PrintDefinition();
278 }

References gather_cfg::cout, mps_fire::i, Name, and UnitsList.

◆ UpdateNameMxLen()

void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 110 of file ALIUnitsTable.h.

110  {
111  if (NameMxLen < len)
112  NameMxLen = len;
113  }

References NameMxLen.

◆ UpdateSymbMxLen()

void ALIUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 114 of file ALIUnitsTable.h.

114  {
115  if (SymbMxLen < len)
116  SymbMxLen = len;
117  }

References SymbMxLen.

Member Data Documentation

◆ Name

ALIstring ALIUnitsCategory::Name
private

Definition at line 121 of file ALIUnitsTable.h.

Referenced by GetName(), operator=(), and PrintCategory().

◆ NameMxLen

ALIint ALIUnitsCategory::NameMxLen
private

Definition at line 123 of file ALIUnitsTable.h.

Referenced by GetNameMxLen(), operator=(), and UpdateNameMxLen().

◆ SymbMxLen

ALIint ALIUnitsCategory::SymbMxLen
private

Definition at line 124 of file ALIUnitsTable.h.

Referenced by GetSymbMxLen(), operator=(), and UpdateSymbMxLen().

◆ UnitsList

ALIUnitsContainer ALIUnitsCategory::UnitsList
private

Definition at line 122 of file ALIUnitsTable.h.

Referenced by ALIUnitsCategory(), GetUnitsList(), operator=(), and PrintCategory().

ALIUnitsCategory::Name
ALIstring Name
Definition: ALIUnitsTable.h:121
mps_fire.i
i
Definition: mps_fire.py:355
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ALIUnitsCategory::UnitsList
ALIUnitsContainer UnitsList
Definition: ALIUnitsTable.h:122
ALIUnitsContainer
std::vector< std::shared_ptr< ALIUnitDefinition > > ALIUnitsContainer
Definition: ALIUnitsTable.h:92
ALIUnitsCategory::SymbMxLen
ALIint SymbMxLen
Definition: ALIUnitsTable.h:124
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ALIUnitsCategory::NameMxLen
ALIint NameMxLen
Definition: ALIUnitsTable.h:123