3 #include "g_cont_it_base.h"
10 template <
class T >
class it :
public it_base<T,T,const T>
16 it (RecipientBase_t& aRecipient , IterFrom_t aIterDir = head ) { this->mInit ( aRecipient , aIterDir ); }
17 it (
const it& other){ this->mCopy(other); }
18 it& operator = (
const it& aOther){ this->mCopy(aOther);
return *
this;}
20 it operator + (
int inc) {
it result(*
this); result.moveOf(inc);
return result; }
21 it operator - (
int dec) {
it result(*
this); result.moveOf(-dec);
return result; }
22 it& operator ++ (
int ){ this->moveOf(1);
return*
this; }
23 it& operator -- (
int ){ this->moveOf(1);
return*
this; }
24 it& operator ++ ( ){ this->moveOf(1);
return*
this; }
25 it& operator -- ( ){ this->moveOf(1);
return*
this; }
26 it& operator += (
int inc ){ this->moveOf(inc);
return*
this; }
27 it& operator -= (
int dec ){ this->moveOf(-dec);
return*
this; }
29 T& underlying ( ) {
return *this->mRecipientP->mPositionerP->getPtr ( this->mIndex ); }
30 const T& underlying ( )
const {
return *this->mRecipientP->mPositionerP->getPtr ( this->mIndex ); }
32 const T* operator -> ( )
const {
return &underlying(); }
33 const T& operator * ( )
const {
return underlying(); }
35 T* operator -> ( ) {
return &underlying(); }
36 T& operator * ( ) {
return underlying(); }
45 it_const (
const RecipientBase_t& aRecipient , IterFrom_t aIterFrom = head ) { this->mInit ( aRecipient , aIterFrom ); }
49 it_const& operator = (
const it_const& other ) { this->mCopy(other);
return *
this; }
51 it_const operator + (
int inc) {
it_const result(*
this); result.moveOf(inc);
return result; }
52 it_const operator - (
int dec) {
it_const result(*
this); result.moveOf(-dec);
return result; }
53 it_const& operator ++ (
int ){ this->moveOf(1);
return*
this; }
54 it_const& operator -- (
int ){ this->moveOf(1);
return*
this; }
55 it_const& operator ++ ( ){ this->moveOf(1);
return*
this; }
56 it_const& operator -- ( ){ this->moveOf(1);
return*
this; }
57 it_const& operator += (
int inc ){ this->moveOf(inc);
return*
this; }
58 it_const& operator -= (
int dec ){ this->moveOf(-dec);
return*
this; }
60 const T& underlying ( )
const {
return *this->mRecipientP->mPositionerP->getPtr ( this->mIndex ); }
62 const T* operator -> ( )
const {
return &underlying(); }
63 const T& operator * ( )
const {
return underlying(); }
Definition: g.mthread.ThreadSimpleEvent.h:5
Definition: g_cont_it.h:39
Definition: g_cont_base_cont.h:13
Definition: g_cont_it.h:10