DGtal 1.3.0
|
Aim: model of output iterator, ie incrementable and writable iterator, which only stores in a variable the last assigned item. More...
#include <DGtal/base/OneItemOutputIterator.h>
Public Member Functions | |
OneItemOutputIterator () | |
OneItemOutputIterator (const OneItemOutputIterator &other) | |
OneItemOutputIterator & | operator= (const T &aItem) |
OneItemOutputIterator & | operator* () |
OneItemOutputIterator & | operator++ () |
OneItemOutputIterator | operator++ (int) |
T | get () const |
bool | isValid () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((boost::DefaultConstructible< T >)) | |
BOOST_CONCEPT_ASSERT ((boost::CopyConstructible< T >)) | |
BOOST_CONCEPT_ASSERT ((boost::Assignable< T >)) | |
Private Attributes | |
T * | myItemPtr |
pointer that stores the last assigned item More... | |
Aim: model of output iterator, ie incrementable and writable iterator, which only stores in a variable the last assigned item.
Description of template class 'OneItemOutputIterator'
T | at least a default constructible, copy constuctible and assignable type. |
Definition at line 59 of file OneItemOutputIterator.h.
|
inline |
Default constructor.
Definition at line 73 of file OneItemOutputIterator.h.
References DGtal::OneItemOutputIterator< T >::myItemPtr.
|
inline |
Copy constructor.
Definition at line 80 of file OneItemOutputIterator.h.
|
private |
|
private |
|
private |
|
inline |
Accessor to the last assigned item.
Definition at line 119 of file OneItemOutputIterator.h.
References DGtal::OneItemOutputIterator< T >::isValid(), and DGtal::OneItemOutputIterator< T >::myItemPtr.
|
inline |
Checks the validity/consistency of the object.
Definition at line 129 of file OneItemOutputIterator.h.
References DGtal::OneItemOutputIterator< T >::myItemPtr.
Referenced by DGtal::OneItemOutputIterator< T >::get(), and DGtal::OneItemOutputIterator< T >::operator=().
|
inline |
Dereference operator
Definition at line 101 of file OneItemOutputIterator.h.
|
inline |
Pre-increment operator
Definition at line 107 of file OneItemOutputIterator.h.
|
inline |
Post-increment operator
Definition at line 113 of file OneItemOutputIterator.h.
|
inline |
Assignment
aItem | any item |
Definition at line 90 of file OneItemOutputIterator.h.
References DGtal::OneItemOutputIterator< T >::isValid(), and DGtal::OneItemOutputIterator< T >::myItemPtr.
|
private |
pointer that stores the last assigned item
Definition at line 134 of file OneItemOutputIterator.h.
Referenced by DGtal::OneItemOutputIterator< T >::get(), DGtal::OneItemOutputIterator< T >::isValid(), DGtal::OneItemOutputIterator< T >::OneItemOutputIterator(), and DGtal::OneItemOutputIterator< T >::operator=().