CMS 3D CMS Logo

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() [1/2]

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name)

Definition at line 249 of file CocoaUnitsTable.cc.

◆ ~CocoaUnitsCategory()

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 253 of file CocoaUnitsTable.cc.

253 {}

◆ CocoaUnitsCategory() [2/2]

CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right)
private

Definition at line 257 of file CocoaUnitsTable.cc.

257 { *this = right; }

Member Function Documentation

◆ GetName()

const ALIstring& CocoaUnitsCategory::GetName ( ) const
inline

Definition at line 71 of file CocoaUnitsTable.h.

References Name.

71 { return Name; }

◆ GetNameMxLen()

ALIint CocoaUnitsCategory::GetNameMxLen ( ) const
inline

Definition at line 73 of file CocoaUnitsTable.h.

References NameMxLen.

73 { return NameMxLen; }

◆ GetSymbMxLen()

ALIint CocoaUnitsCategory::GetSymbMxLen ( ) const
inline

Definition at line 74 of file CocoaUnitsTable.h.

References SymbMxLen.

74 { return SymbMxLen; }

◆ GetUnitsList()

CocoaUnitsContainer& CocoaUnitsCategory::GetUnitsList ( )
inline

Definition at line 72 of file CocoaUnitsTable.h.

References UnitsList.

72 { return UnitsList; }
CocoaUnitsContainer UnitsList

◆ operator!=()

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

Definition at line 277 of file CocoaUnitsTable.cc.

277 { return (this != &right); }

◆ operator=()

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

Definition at line 261 of file CocoaUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

261  {
262  if (this != &right) {
263  Name = right.Name;
264  UnitsList = right.UnitsList;
265  NameMxLen = right.NameMxLen;
266  SymbMxLen = right.SymbMxLen;
267  }
268  return *this;
269 }
CocoaUnitsContainer UnitsList

◆ operator==()

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

Definition at line 273 of file CocoaUnitsTable.cc.

273 { return (this == &right); }

◆ PrintCategory()

void CocoaUnitsCategory::PrintCategory ( )

Definition at line 281 of file CocoaUnitsTable.cc.

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

281  {
282  std::cout << "\n category: " << Name << std::endl;
283  for (size_t i = 0; i < UnitsList.size(); i++)
284  UnitsList[i]->PrintDefinition();
285 }
CocoaUnitsContainer UnitsList

◆ UpdateNameMxLen()

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  }

◆ UpdateSymbMxLen()

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

◆ Name

ALIstring CocoaUnitsCategory::Name
private

Definition at line 86 of file CocoaUnitsTable.h.

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

◆ NameMxLen

ALIint CocoaUnitsCategory::NameMxLen
private

Definition at line 88 of file CocoaUnitsTable.h.

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

◆ SymbMxLen

ALIint CocoaUnitsCategory::SymbMxLen
private

Definition at line 89 of file CocoaUnitsTable.h.

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

◆ UnitsList

CocoaUnitsContainer CocoaUnitsCategory::UnitsList
private

Definition at line 87 of file CocoaUnitsTable.h.

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