12 #ifndef SortedObjects_h 13 #define SortedObjects_h 19 class SortedObjectBase;
20 class SortedBranchBase;
67 if (nextElement) next_vector.push_back(
next);
81 if (next_vector.size())
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()); }
pma::SortedObjectBase * prev
virtual unsigned int NextCount(void) const
virtual bool IsFirst(void) const
virtual bool IsLast(void) const
virtual unsigned int NextCount(void) const
std::vector< pma::SortedObjectBase * > next_vector
virtual int RemoveNext(pma::SortedObjectBase *nextElement)
SortedBranchBase(const pma::SortedBranchBase &src)
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
virtual pma::SortedObjectBase * Next(unsigned int index=0) const
SortedObjectBase(const pma::SortedObjectBase &src)
Note: copy constructor does not preserve connections.