CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

ALIUnitsCategory Class Reference

#include <ALIUnitsTable.h>

List of all members.

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.

ALIUnitsCategory::~ALIUnitsCategory ( )

Definition at line 259 of file ALIUnitsTable.cc.

{}
ALIUnitsCategory::ALIUnitsCategory ( ALIUnitsCategory right) [private]

Definition at line 264 of file ALIUnitsTable.cc.

{
    *this = right;
}

Member Function Documentation

ALIstring ALIUnitsCategory::GetName ( ) const [inline]

Definition at line 119 of file ALIUnitsTable.h.

References Name.

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

Definition at line 121 of file ALIUnitsTable.h.

References NameMxLen.

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

Definition at line 122 of file ALIUnitsTable.h.

References SymbMxLen.

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

Definition at line 120 of file ALIUnitsTable.h.

References UnitsList.

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

Definition at line 292 of file ALIUnitsTable.cc.

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

Definition at line 271 of file ALIUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

{
  if (this != &right)
    {
      Name      = right.Name;
      UnitsList = right.UnitsList;
      NameMxLen = right.NameMxLen;
      SymbMxLen = right.SymbMxLen;
    }
  return *this;
}
ALIint ALIUnitsCategory::operator== ( const ALIUnitsCategory right) const

Definition at line 285 of file ALIUnitsTable.cc.

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

Definition at line 299 of file ALIUnitsTable.cc.

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

{
  std::cout << "\n  category: " << Name << std::endl;
  for(size_t i=0;i<UnitsList.size();i++)
      UnitsList[i]->PrintDefinition();
}
void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len) [inline]

Definition at line 123 of file ALIUnitsTable.h.

References NameMxLen.

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

Definition at line 124 of file ALIUnitsTable.h.

References SymbMxLen.

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

Member Data Documentation

Definition at line 129 of file ALIUnitsTable.h.

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

Definition at line 131 of file ALIUnitsTable.h.

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

Definition at line 132 of file ALIUnitsTable.h.

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

Definition at line 130 of file ALIUnitsTable.h.

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