In file calibration/Unit.hh:

class UnitList

Unit descriptor list

Inheritance:


Public Fields

typedef Unit* const* iterator
Iterator to traverse the unit list
typedef const Unit* const* const_iterator
Const iterator to traverse the unit list

Public Methods

UnitList ()
Default constructor
virtual ~UnitList ()
Destructor
UnitList (const UnitList& list)
Copy constructor: owner ship of units will be transferred
UnitList& operator= (const UnitList& list)
Copy operator: owner ship of units will be transferred
virtual int Size () const
Size of list
virtual bool Add (Unit* unit)
Add an element to list; unit is adopted
virtual const Unit* Find (const char* unit) const
Find an element by name
virtual void Clear ()
Clear list
virtual iterator begin ()
Beginning of list
virtual iterator end ()
End of list (returns the sentinel)
virtual const_iterator begin () const
Beginning of list
virtual const_iterator end () const
End of list (returns the sentinel)

Protected Fields

Unit** fList
List of unit descriptors; the last descriptor in the list is a sentinel and has to be zero!
int fLen
Length of list
int fSize
Size of list

Protected Methods

virtual bool Allocate (int size)
Allocate space for list

Documentation

Describes a list of unit descriptors.

Unit** fList
List of unit descriptors; the last descriptor in the list is a sentinel and has to be zero!

int fLen
Length of list

int fSize
Size of list

virtual bool Allocate(int size)
Allocate space for list

typedef Unit* const* iterator
Iterator to traverse the unit list

typedef const Unit* const* const_iterator
Const iterator to traverse the unit list

UnitList()
Default constructor

virtual ~UnitList()
Destructor

UnitList(const UnitList& list)
Copy constructor: owner ship of units will be transferred

UnitList& operator= (const UnitList& list)
Copy operator: owner ship of units will be transferred

virtual int Size() const
Size of list

virtual bool Add(Unit* unit)
Add an element to list; unit is adopted

virtual const Unit* Find(const char* unit) const
Find an element by name

virtual void Clear()
Clear list

virtual iterator begin()
Beginning of list

virtual iterator end()
End of list (returns the sentinel)

virtual const_iterator begin() const
Beginning of list

virtual const_iterator end() const
End of list (returns the sentinel)


This class has no child classes.
Author:
Written Mai 2000 by Daniel Sigg
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++