#include <qgarlib/AbstractGenPointChain.H>
Inheritance diagram for qgar::AbstractGenPointChain< T >:

A point is an instance of class qgar::GenPoint<T>. New points can only be inserted to the beginning or to the end of the chain.
Such a chain is provided with some kind of internal ``iterator'', that allows bidirectional traversal of the chain. The validity of this iterator is preserved by any of the public operations of the class.
Predefined types:
Definition at line 134 of file AbstractGenPointChain.H.
Public Types | |
Types | |
| typedef T | value_type |
| Type of the points stored in the chain. | |
| typedef value_type & | reference |
| Reference to qgar::AbstractGenPointChain::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::AbstractGenPointChain::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::AbstractGenPointChain::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::AbstractGenPointChain::value_type. | |
Public Member Functions | |
Constructors | |
| AbstractGenPointChain () | |
| Default constructor. | |
Destructor | |
| virtual | ~AbstractGenPointChain () |
| Virtual destructor. | |
Access to chain characteristics | |
| virtual bool | empty () const =0 |
| Is current chain empty? | |
| virtual int | size () const =0 |
| Get chain size (number of points). | |
Iterator | |
| virtual void | setToBegin ()=0 |
| Set internal iterator to the beginning of the chain. | |
| virtual void | setToEnd ()=0 |
| Set internal iterator to the end of the chain. | |
| virtual bool | isAtBegin () const =0 |
| Does internal iterator points to the beginning of the chain? | |
| virtual bool | isAtEnd () const =0 |
| Does internal iterator points to the end of the chain? | |
| virtual bool | hasNext () const =0 |
| Is there a point after the current point? | |
| virtual bool | hasPrevious () const =0 |
| Is there a point before the current point? | |
| virtual void | moveNext ()=0 |
| Move to next point, that becomes the current point. | |
| virtual void | movePrevious ()=0 |
| Move to previous point, that becomes the current point. | |
Access to points | |
| virtual const GenPoint< value_type > & | accessFront () const =0 |
| Get the first point. | |
| virtual GenPoint< value_type > | front () const =0 |
| Get a copy of the first point. | |
| virtual const GenPoint< value_type > & | accessBack () const =0 |
| Get the last point. | |
| virtual GenPoint< value_type > | back () const =0 |
| Get a copy of the last point. | |
| virtual const GenPoint< value_type > & | accessCurrent () const =0 |
| Get the current point. | |
| virtual GenPoint< value_type > | current () const =0 |
| Get a copy of the current point. | |
| virtual const GenPoint< value_type > & | accessNext ()=0 |
| Get the successor of the current point. | |
| virtual GenPoint< value_type > | next ()=0 |
| Get a copy of the successor of the current point. | |
| virtual const GenPoint< value_type > & | accessPrevious ()=0 |
| Get the predecessor of the current point. | |
| virtual GenPoint< value_type > | previous ()=0 |
| Get a copy of the predecessor of the current point. | |
Insertion | |
| virtual void | push_front (const GenPoint< value_type > &aPt)=0 |
| Insert a point at the beginning of the chain. | |
| virtual void | push_back (const GenPoint< value_type > &aPt)=0 |
| Insert a point at the end of the chain. | |
Transformations | |
| virtual void | reverse ()=0 |
| Reverse the order of elements in the list. | |
Conversions | |
Insert the elements of a given chain at the end of current chain. | |
| virtual std::list< GenPoint< value_type > > | toPointList () const =0 |
| Get a (STL) list of the points of the chain. | |
|
|||||
|
Constant pointer to qgar::AbstractGenPointChain::value_type.
Reimplemented in qgar::GenPointChain< T >. Definition at line 169 of file AbstractGenPointChain.H. |
|
|||||
|
Constant reference to qgar::AbstractGenPointChain::value_type.
Reimplemented in qgar::GenPointChain< T >. Definition at line 159 of file AbstractGenPointChain.H. |
|
|||||
|
Pointer to qgar::AbstractGenPointChain::value_type.
Reimplemented in qgar::GenPointChain< T >. Definition at line 164 of file AbstractGenPointChain.H. |
|
|||||
|
Reference to qgar::AbstractGenPointChain::value_type.
Reimplemented in qgar::GenPointChain< T >. Definition at line 154 of file AbstractGenPointChain.H. |
|
|||||
|
Type of the points stored in the chain.
Reimplemented in qgar::GenPointChain< T >. Definition at line 149 of file AbstractGenPointChain.H. |
|
|||||||||
|
Default constructor.
Definition at line 51 of file AbstractGenPointChain.TCC. |
|
|||||||||
|
Virtual destructor.
Definition at line 65 of file AbstractGenPointChain.TCC. |
|
|||||||||
|
Get the last point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::RWSegmentVector::RWSegmentVector(), qgar::TgifFile::saveChain(), and qgar::DxfFile::saveChain(). |
|
|||||||||
|
Get the first point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get the successor of the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get the predecessor of the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get a copy of the last point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(). |
|
|||||||||
|
Get a copy of the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(). |
|
|||||||||
|
Is current chain empty?
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(), qgar::RWSegmentVector::RWSegmentVector(), and qgar::TgifFile::saveChain(). |
|
|||||||||
|
Get a copy of the first point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(). |
|
|||||||||
|
Is there a point after the current point?
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(), and qgar::TgifFile::saveChain(). |
|
|||||||||
|
Is there a point before the current point?
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Does internal iterator points to the beginning of the chain?
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Does internal iterator points to the end of the chain?
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::RWSegmentVector::RWSegmentVector(), and qgar::DxfFile::saveChain(). |
|
|||||||||
|
Move to next point, that becomes the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(), qgar::RWSegmentVector::RWSegmentVector(), qgar::TgifFile::saveChain(), and qgar::DxfFile::saveChain(). |
|
|||||||||
|
Move to previous point, that becomes the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get a copy of the successor of the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get a copy of the predecessor of the current point.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
||||||||||
|
Insert a point at the end of the chain.
Implemented in qgar::GenPointChain< T >. |
|
||||||||||
|
Insert a point at the beginning of the chain.
Implemented in qgar::GenPointChain< T >. |
|
|||||||||
|
Reverse the order of elements in the list. The internal iterator remains valid once the operation is completed. Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Set internal iterator to the beginning of the chain.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::WDSegmentList::PRIVATEperform(), qgar::RWSegmentVector::RWSegmentVector(), qgar::TgifFile::saveChain(), and qgar::DxfFile::saveChain(). |
|
|||||||||
|
Set internal iterator to the end of the chain.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |
|
|||||||||
|
Get chain size (number of points).
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. Referenced by qgar::TgifFile::saveChain(). |
|
|||||||||
|
Get a (STL) list of the points of the chain.
Implemented in qgar::FreemanChain, and qgar::GenPointChain< T >. |