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 248 of file CocoaUnitsTable.cc.

◆ ~CocoaUnitsCategory()

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 252 of file CocoaUnitsTable.cc.

252 {}

◆ CocoaUnitsCategory() [2/2]

CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right)
private

Definition at line 256 of file CocoaUnitsTable.cc.

256 { *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 276 of file CocoaUnitsTable.cc.

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

◆ operator=()

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

◆ operator==()

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

Definition at line 272 of file CocoaUnitsTable.cc.

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

◆ PrintCategory()

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

◆ 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().