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 252 of file ALIUnitsTable.cc.

References UnitsList.

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

Definition at line 260 of file ALIUnitsTable.cc.

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

Definition at line 265 of file ALIUnitsTable.cc.

266 {
267  *this = right;
268 }

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 293 of file ALIUnitsTable.cc.

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

Definition at line 272 of file ALIUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

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

Definition at line 286 of file ALIUnitsTable.cc.

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

Definition at line 300 of file ALIUnitsTable.cc.

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

301 {
302  std::cout << "\n category: " << Name << std::endl;
303  for(size_t i=0;i<UnitsList.size();i++)
304  UnitsList[i]->PrintDefinition();
305 }
int i
Definition: DBlmapReader.cc:9
ALIUnitsContainer UnitsList
tuple cout
Definition: gather_cfg.py:145
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().