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 69 of file CocoaUnitsTable.h.

Constructor & Destructor Documentation

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name)

Definition at line 264 of file CocoaUnitsTable.cc.

266 {
267 }
CocoaUnitsContainer UnitsList
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 CocoaUnitDefinition::Name.

Referenced by CocoaBestUnit::CocoaBestUnit().

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

Definition at line 87 of file CocoaUnitsTable.h.

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

Definition at line 88 of file CocoaUnitsTable.h.

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

Definition at line 86 of file CocoaUnitsTable.h.

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, mps_fire::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
void CocoaUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 89 of file CocoaUnitsTable.h.

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

Definition at line 90 of file CocoaUnitsTable.h.

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

Member Data Documentation

ALIstring CocoaUnitsCategory::Name
private

Definition at line 95 of file CocoaUnitsTable.h.

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

ALIint CocoaUnitsCategory::NameMxLen
private

Definition at line 97 of file CocoaUnitsTable.h.

Referenced by operator=().

ALIint CocoaUnitsCategory::SymbMxLen
private

Definition at line 98 of file CocoaUnitsTable.h.

Referenced by operator=().

CocoaUnitsContainer CocoaUnitsCategory::UnitsList
private

Definition at line 96 of file CocoaUnitsTable.h.

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