CMS 3D CMS Logo

CocoaUnitsCategory Class Reference

#include <Alignment/CocoaToDDL/interface/CocoaUnitsTable.h>

List of all members.

Public Member Functions

 CocoaUnitsCategory (const ALIstring &name)
const ALIstringGetName () const
ALIint GetNameMxLen () const
ALIint GetSymbMxLen () const
CocoaUnitsContainerGetUnitsList ()
ALIint operator!= (const CocoaUnitsCategory &) const
ALIint operator== (const CocoaUnitsCategory &) const
void PrintCategory ()
void UpdateNameMxLen (ALIint len)
void UpdateSymbMxLen (ALIint len)
 ~CocoaUnitsCategory ()

Private Member Functions

 CocoaUnitsCategory (const CocoaUnitsCategory &)
CocoaUnitsCategoryoperator= (const CocoaUnitsCategory &)

Private Attributes

ALIstring Name
ALIint NameMxLen
ALIint SymbMxLen
CocoaUnitsContainer UnitsList


Detailed Description

Definition at line 69 of file CocoaUnitsTable.h.


Constructor & Destructor Documentation

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name  ) 

Definition at line 264 of file CocoaUnitsTable.cc.

00265   : Name(name),UnitsList(),NameMxLen(0),SymbMxLen(0)
00266 {
00267 }

CocoaUnitsCategory::~CocoaUnitsCategory (  ) 

Definition at line 271 of file CocoaUnitsTable.cc.

00272 {
00273 }

CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right  )  [private]

Definition at line 277 of file CocoaUnitsTable.cc.

00278 {
00279   *this = right;
00280 }


Member Function Documentation

const ALIstring& CocoaUnitsCategory::GetName (  )  const [inline]

Definition at line 85 of file CocoaUnitsTable.h.

References Name.

00085 {return Name;}

ALIint CocoaUnitsCategory::GetNameMxLen (  )  const [inline]

Definition at line 87 of file CocoaUnitsTable.h.

References NameMxLen.

00087 {return NameMxLen;}

ALIint CocoaUnitsCategory::GetSymbMxLen (  )  const [inline]

Definition at line 88 of file CocoaUnitsTable.h.

References SymbMxLen.

00088 {return SymbMxLen;}

CocoaUnitsContainer& CocoaUnitsCategory::GetUnitsList (  )  [inline]

Definition at line 86 of file CocoaUnitsTable.h.

References UnitsList.

00086 {return UnitsList;}

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

Definition at line 305 of file CocoaUnitsTable.cc.

00306 {
00307   return (this != (CocoaUnitsCategory *) &right);
00308 }

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

Definition at line 284 of file CocoaUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

00285 {
00286   if (this != &right)
00287     {
00288       Name      = right.Name;
00289       UnitsList = right.UnitsList;
00290       NameMxLen = right.NameMxLen;
00291       SymbMxLen = right.SymbMxLen;
00292     }
00293   return *this;
00294 }

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

Definition at line 298 of file CocoaUnitsTable.cc.

00299 {
00300   return (this == (CocoaUnitsCategory *) &right);
00301 }

void CocoaUnitsCategory::PrintCategory (  ) 

Definition at line 312 of file CocoaUnitsTable.cc.

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

00313 {
00314   std::cout << "\n  category: " << Name << std::endl;
00315   for(size_t i=0;i<UnitsList.size();i++)
00316       UnitsList[i]->PrintDefinition();
00317 }

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

Definition at line 89 of file CocoaUnitsTable.h.

References NameMxLen.

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

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

Definition at line 90 of file CocoaUnitsTable.h.

References SymbMxLen.

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


Member Data Documentation

ALIstring CocoaUnitsCategory::Name [private]

Definition at line 95 of file CocoaUnitsTable.h.

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

ALIint CocoaUnitsCategory::NameMxLen [private]

Definition at line 97 of file CocoaUnitsTable.h.

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

ALIint CocoaUnitsCategory::SymbMxLen [private]

Definition at line 98 of file CocoaUnitsTable.h.

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

CocoaUnitsContainer CocoaUnitsCategory::UnitsList [private]

Definition at line 96 of file CocoaUnitsTable.h.

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


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