12 #ifndef SortedObjects_h 13 #define SortedObjects_h 18 class SortedObjectBase;
19 class SortedBranchBase;
65 if (nextElement) next_vector.push_back(
next);
79 if (next_vector.size())
80 return next_vector[index];
84 virtual unsigned int NextCount(
void)
const {
return next_vector.size(); }
85 virtual bool IsLast(
void)
const {
return !(next_vector.size()); }
std::vector< pma::SortedObjectBase * > next_vector
pma::SortedObjectBase * prev
virtual unsigned int NextCount(void) const
virtual bool IsFirst(void) const
SortedBranchBase(const pma::SortedBranchBase &)
Note: copy constructor does not preserve connections.
virtual pma::SortedObjectBase * Next(unsigned int=0) const
virtual bool IsLast(void) const
virtual unsigned int NextCount(void) const
virtual int RemoveNext(pma::SortedObjectBase *nextElement)
SortedObjectBase(const pma::SortedObjectBase &)
Note: copy constructor does not preserve connections.
SortedBranchBase(pma::SortedObjectBase *prevElement, pma::SortedObjectBase *nextElement=0)
virtual pma::SortedObjectBase * Next(unsigned int index=0) const
virtual bool IsLast(void) const
virtual ~SortedObjectBase(void)
pma::SortedObjectBase * next
virtual void Disconnect(void)
virtual bool AddNext(pma::SortedObjectBase *nextElement)
virtual ~SortedBranchBase(void)
virtual pma::SortedObjectBase * Prev(void) const