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 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 ALIUnitDefinition::Name.

Referenced by ALIBestUnit::ALIBestUnit().

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

Definition at line 121 of file ALIUnitsTable.h.

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

Definition at line 122 of file ALIUnitsTable.h.

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

Definition at line 120 of file ALIUnitsTable.h.

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, mps_fire::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 }
ALIUnitsContainer UnitsList
void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 123 of file ALIUnitsTable.h.

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

Definition at line 124 of file ALIUnitsTable.h.

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

Member Data Documentation

ALIstring ALIUnitsCategory::Name
private

Definition at line 129 of file ALIUnitsTable.h.

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

ALIint ALIUnitsCategory::NameMxLen
private

Definition at line 131 of file ALIUnitsTable.h.

Referenced by operator=().

ALIint ALIUnitsCategory::SymbMxLen
private

Definition at line 132 of file ALIUnitsTable.h.

Referenced by operator=().

ALIUnitsContainer ALIUnitsCategory::UnitsList
private

Definition at line 130 of file ALIUnitsTable.h.

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