CMS 3D CMS Logo

ALIUnitsCategory Class Reference

#include <Alignment/CocoaModel/interface/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 250 of file ALIUnitsTable.cc.

References UnitsList.

00251 :Name(name),NameMxLen(0),SymbMxLen(0)
00252 {
00253     UnitsList = *(new ALIUnitsContainer);
00254 }

ALIUnitsCategory::~ALIUnitsCategory (  ) 

Definition at line 258 of file ALIUnitsTable.cc.

00259 {}

ALIUnitsCategory::ALIUnitsCategory ( ALIUnitsCategory right  )  [private]

Definition at line 263 of file ALIUnitsTable.cc.

00264 {
00265     *this = right;
00266 }


Member Function Documentation

ALIstring ALIUnitsCategory::GetName (  )  const [inline]

Definition at line 119 of file ALIUnitsTable.h.

References Name.

00119 {return Name;}

ALIint ALIUnitsCategory::GetNameMxLen (  )  const [inline]

Definition at line 121 of file ALIUnitsTable.h.

References NameMxLen.

00121 {return NameMxLen;}

ALIint ALIUnitsCategory::GetSymbMxLen (  )  const [inline]

Definition at line 122 of file ALIUnitsTable.h.

References SymbMxLen.

00122 {return SymbMxLen;}

ALIUnitsContainer& ALIUnitsCategory::GetUnitsList (  )  [inline]

Definition at line 120 of file ALIUnitsTable.h.

References UnitsList.

00120 {return UnitsList;}

ALIint ALIUnitsCategory::operator!= ( const ALIUnitsCategory right  )  const

Definition at line 291 of file ALIUnitsTable.cc.

00292 {
00293   return (this != (ALIUnitsCategory *) &right);
00294 }

ALIUnitsCategory & ALIUnitsCategory::operator= ( const ALIUnitsCategory right  )  [private]

Definition at line 270 of file ALIUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

00271 {
00272   if (this != &right)
00273     {
00274       Name      = right.Name;
00275       UnitsList = right.UnitsList;
00276       NameMxLen = right.NameMxLen;
00277       SymbMxLen = right.SymbMxLen;
00278     }
00279   return *this;
00280 }

ALIint ALIUnitsCategory::operator== ( const ALIUnitsCategory right  )  const

Definition at line 284 of file ALIUnitsTable.cc.

00285 {
00286   return (this == (ALIUnitsCategory *) &right);
00287 }

void ALIUnitsCategory::PrintCategory (  ) 

Definition at line 298 of file ALIUnitsTable.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), i, Name, and UnitsList.

00299 {
00300   std::cout << "\n  category: " << Name << std::endl;
00301   for(size_t i=0;i<UnitsList.size();i++)
00302       UnitsList[i]->PrintDefinition();
00303 }

void ALIUnitsCategory::UpdateNameMxLen ( ALIint  len  )  [inline]

Definition at line 123 of file ALIUnitsTable.h.

References NameMxLen.

00123 {if (NameMxLen<len) NameMxLen=len;}

void ALIUnitsCategory::UpdateSymbMxLen ( ALIint  len  )  [inline]

Definition at line 124 of file ALIUnitsTable.h.

References SymbMxLen.

00124 {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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:14:38 2009 for CMSSW by  doxygen 1.5.4