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
CocoaUnitsCategory Class Reference

#include <CocoaUnitsTable.h>

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.

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 271 of file CocoaUnitsTable.cc.

272 {
273 }
CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right)
private

Definition at line 277 of file CocoaUnitsTable.cc.

278 {
279  *this = right;
280 }

Member Function Documentation

const ALIstring& CocoaUnitsCategory::GetName ( ) const
inline

Definition at line 85 of file CocoaUnitsTable.h.

References Name.

85 {return Name;}
ALIint CocoaUnitsCategory::GetNameMxLen ( ) const
inline

Definition at line 87 of file CocoaUnitsTable.h.

References NameMxLen.

87 {return NameMxLen;}
ALIint CocoaUnitsCategory::GetSymbMxLen ( ) const
inline

Definition at line 88 of file CocoaUnitsTable.h.

References SymbMxLen.

88 {return SymbMxLen;}
CocoaUnitsContainer& CocoaUnitsCategory::GetUnitsList ( )
inline

Definition at line 86 of file CocoaUnitsTable.h.

References UnitsList.

86 {return UnitsList;}
CocoaUnitsContainer UnitsList
ALIint CocoaUnitsCategory::operator!= ( const CocoaUnitsCategory right) const

Definition at line 305 of file CocoaUnitsTable.cc.

306 {
307  return (this != (CocoaUnitsCategory *) &right);
308 }
CocoaUnitsCategory & CocoaUnitsCategory::operator= ( const CocoaUnitsCategory right)
private

Definition at line 284 of file CocoaUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

285 {
286  if (this != &right)
287  {
288  Name = right.Name;
289  UnitsList = right.UnitsList;
290  NameMxLen = right.NameMxLen;
291  SymbMxLen = right.SymbMxLen;
292  }
293  return *this;
294 }
CocoaUnitsContainer UnitsList
ALIint CocoaUnitsCategory::operator== ( const CocoaUnitsCategory right) const

Definition at line 298 of file CocoaUnitsTable.cc.

299 {
300  return (this == (CocoaUnitsCategory *) &right);
301 }
void CocoaUnitsCategory::PrintCategory ( )

Definition at line 312 of file CocoaUnitsTable.cc.

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

313 {
314  std::cout << "\n category: " << Name << std::endl;
315  for(size_t i=0;i<UnitsList.size();i++)
316  UnitsList[i]->PrintDefinition();
317 }
CocoaUnitsContainer UnitsList
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:145
void CocoaUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 89 of file CocoaUnitsTable.h.

References NameMxLen.

89 {if (NameMxLen<len) NameMxLen=len;}
void CocoaUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 90 of file CocoaUnitsTable.h.

References SymbMxLen.

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