CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 103 of file ALIUnitsTable.h.

Constructor & Destructor Documentation

ALIUnitsCategory::ALIUnitsCategory ( ALIstring  name)

Definition at line 251 of file ALIUnitsTable.cc.

References UnitsList.

253 {
254  UnitsList = *(new ALIUnitsContainer);
255 }
std::vector< ALIUnitDefinition * > ALIUnitsContainer
ALIUnitsContainer UnitsList
ALIUnitsCategory::~ALIUnitsCategory ( )

Definition at line 259 of file ALIUnitsTable.cc.

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

Definition at line 264 of file ALIUnitsTable.cc.

265 {
266  *this = right;
267 }

Member Function Documentation

ALIstring ALIUnitsCategory::GetName ( ) const
inline

Definition at line 119 of file ALIUnitsTable.h.

References Name.

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

Definition at line 121 of file ALIUnitsTable.h.

References NameMxLen.

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

Definition at line 122 of file ALIUnitsTable.h.

References SymbMxLen.

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

Definition at line 120 of file ALIUnitsTable.h.

References UnitsList.

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

Definition at line 292 of file ALIUnitsTable.cc.

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

Definition at line 271 of file ALIUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

272 {
273  if (this != &right)
274  {
275  Name = right.Name;
276  UnitsList = right.UnitsList;
277  NameMxLen = right.NameMxLen;
278  SymbMxLen = right.SymbMxLen;
279  }
280  return *this;
281 }
ALIUnitsContainer UnitsList
ALIint ALIUnitsCategory::operator== ( const ALIUnitsCategory right) const

Definition at line 285 of file ALIUnitsTable.cc.

286 {
287  return (this == &right);
288 }
void ALIUnitsCategory::PrintCategory ( )

Definition at line 299 of file ALIUnitsTable.cc.

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

300 {
301  std::cout << "\n category: " << Name << std::endl;
302  for(size_t i=0;i<UnitsList.size();i++)
303  UnitsList[i]->PrintDefinition();
304 }
int i
Definition: DBlmapReader.cc:9
ALIUnitsContainer UnitsList
tuple cout
Definition: gather_cfg.py:121
void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 123 of file ALIUnitsTable.h.

References NameMxLen.

123 {if (NameMxLen<len) NameMxLen=len;}
void ALIUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 124 of file ALIUnitsTable.h.

References SymbMxLen.

124 {if (SymbMxLen<len) SymbMxLen=len;}

Member Data Documentation

ALIstring ALIUnitsCategory::Name
private

Definition at line 129 of file ALIUnitsTable.h.

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

ALIint ALIUnitsCategory::NameMxLen
private

Definition at line 131 of file ALIUnitsTable.h.

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

ALIint ALIUnitsCategory::SymbMxLen
private

Definition at line 132 of file ALIUnitsTable.h.

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

ALIUnitsContainer ALIUnitsCategory::UnitsList
private

Definition at line 130 of file ALIUnitsTable.h.

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