CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::ALIUnitsCategory ( ALIstring  name)

Definition at line 240 of file ALIUnitsTable.cc.

References UnitsList.

240  : Name(name), NameMxLen(0), SymbMxLen(0) {
241  UnitsList = *(new ALIUnitsContainer);
242 }
ALIUnitsContainer UnitsList
std::vector< std::shared_ptr< ALIUnitDefinition >> ALIUnitsContainer
Definition: ALIUnitsTable.h:92
ALIUnitsCategory::~ALIUnitsCategory ( )

Definition at line 246 of file ALIUnitsTable.cc.

246 {}
ALIUnitsCategory::ALIUnitsCategory ( ALIUnitsCategory right)
private

Definition at line 250 of file ALIUnitsTable.cc.

250 { *this = right; }

Member Function Documentation

ALIstring ALIUnitsCategory::GetName ( ) const
inline

Definition at line 106 of file ALIUnitsTable.h.

References Name.

106 { return Name; }
ALIint ALIUnitsCategory::GetNameMxLen ( ) const
inline

Definition at line 108 of file ALIUnitsTable.h.

References NameMxLen.

108 { return NameMxLen; }
ALIint ALIUnitsCategory::GetSymbMxLen ( ) const
inline

Definition at line 109 of file ALIUnitsTable.h.

References SymbMxLen.

109 { return SymbMxLen; }
ALIUnitsContainer& ALIUnitsCategory::GetUnitsList ( )
inline

Definition at line 107 of file ALIUnitsTable.h.

References UnitsList.

107 { return UnitsList; }
ALIUnitsContainer UnitsList
ALIint ALIUnitsCategory::operator!= ( const ALIUnitsCategory right) const

Definition at line 270 of file ALIUnitsTable.cc.

270 { return (this != &right); }
ALIUnitsCategory & ALIUnitsCategory::operator= ( const ALIUnitsCategory right)
private

Definition at line 254 of file ALIUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

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 }
ALIUnitsContainer UnitsList
ALIint ALIUnitsCategory::operator== ( const ALIUnitsCategory right) const

Definition at line 266 of file ALIUnitsTable.cc.

266 { return (this == &right); }
void ALIUnitsCategory::PrintCategory ( )

Definition at line 274 of file ALIUnitsTable.cc.

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

274  {
275  std::cout << "\n category: " << Name << std::endl;
276  for (size_t i = 0; i < UnitsList.size(); i++)
277  UnitsList[i]->PrintDefinition();
278 }
ALIUnitsContainer UnitsList
tuple cout
Definition: gather_cfg.py:144
void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 110 of file ALIUnitsTable.h.

References NameMxLen.

110  {
111  if (NameMxLen < len)
112  NameMxLen = len;
113  }
void ALIUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 114 of file ALIUnitsTable.h.

References SymbMxLen.

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

Member Data Documentation

ALIstring ALIUnitsCategory::Name
private

Definition at line 121 of file ALIUnitsTable.h.

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

ALIint ALIUnitsCategory::NameMxLen
private

Definition at line 123 of file ALIUnitsTable.h.

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

ALIint ALIUnitsCategory::SymbMxLen
private

Definition at line 124 of file ALIUnitsTable.h.

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

ALIUnitsContainer ALIUnitsCategory::UnitsList
private

Definition at line 122 of file ALIUnitsTable.h.

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