CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 59 of file CocoaUnitsTable.h.

Constructor & Destructor Documentation

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name)

Definition at line 248 of file CocoaUnitsTable.cc.

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 252 of file CocoaUnitsTable.cc.

252 {}
CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right)
private

Definition at line 256 of file CocoaUnitsTable.cc.

256 { *this = right; }

Member Function Documentation

const ALIstring& CocoaUnitsCategory::GetName ( ) const
inline

Definition at line 71 of file CocoaUnitsTable.h.

References Name.

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

Definition at line 73 of file CocoaUnitsTable.h.

References NameMxLen.

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

Definition at line 74 of file CocoaUnitsTable.h.

References SymbMxLen.

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

Definition at line 72 of file CocoaUnitsTable.h.

References UnitsList.

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

Definition at line 276 of file CocoaUnitsTable.cc.

276 { return (this != &right); }
CocoaUnitsCategory & CocoaUnitsCategory::operator= ( const CocoaUnitsCategory right)
private

Definition at line 260 of file CocoaUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

260  {
261  if (this != &right) {
262  Name = right.Name;
263  UnitsList = right.UnitsList;
264  NameMxLen = right.NameMxLen;
265  SymbMxLen = right.SymbMxLen;
266  }
267  return *this;
268 }
CocoaUnitsContainer UnitsList
ALIint CocoaUnitsCategory::operator== ( const CocoaUnitsCategory right) const

Definition at line 272 of file CocoaUnitsTable.cc.

272 { return (this == &right); }
void CocoaUnitsCategory::PrintCategory ( )

Definition at line 280 of file CocoaUnitsTable.cc.

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

280  {
281  std::cout << "\n category: " << Name << std::endl;
282  for (size_t i = 0; i < UnitsList.size(); i++)
283  UnitsList[i]->PrintDefinition();
284 }
CocoaUnitsContainer UnitsList
tuple cout
Definition: gather_cfg.py:144
void CocoaUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 75 of file CocoaUnitsTable.h.

References NameMxLen.

75  {
76  if (NameMxLen < len)
77  NameMxLen = len;
78  }
void CocoaUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 79 of file CocoaUnitsTable.h.

References SymbMxLen.

79  {
80  if (SymbMxLen < len)
81  SymbMxLen = len;
82  }

Member Data Documentation

ALIstring CocoaUnitsCategory::Name
private

Definition at line 86 of file CocoaUnitsTable.h.

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

ALIint CocoaUnitsCategory::NameMxLen
private

Definition at line 88 of file CocoaUnitsTable.h.

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

ALIint CocoaUnitsCategory::SymbMxLen
private

Definition at line 89 of file CocoaUnitsTable.h.

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

CocoaUnitsContainer CocoaUnitsCategory::UnitsList
private

Definition at line 87 of file CocoaUnitsTable.h.

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