cgma
|
#include <DynamicDLIIterator.hpp>
Public Types | |
typedef ListType * | internal_type |
typedef OutType * | output_type |
Public Member Functions | |
CastingDLIIterator () | |
virtual | ~CastingDLIIterator () |
void | watch (const DLIList< internal_type > *dl_i_list) |
void | reset () |
void | step (int n=1) |
int | size () const |
output_type | get () const |
output_type | next (int n=1) const |
output_type | get_and_step (int n=1) |
CubitBoolean | move_to (output_type item) |
CubitBoolean | is_in_list (output_type item) const |
CubitBoolean | is_at_end () const |
CubitBoolean | is_at_beginning () const |
Private Attributes | |
DLIListIterator< internal_type > | mInternal |
Definition at line 6 of file DynamicDLIIterator.hpp.
typedef ListType* CastingDLIIterator< ListType, OutType >::internal_type |
Definition at line 9 of file DynamicDLIIterator.hpp.
typedef OutType* CastingDLIIterator< ListType, OutType >::output_type |
Definition at line 10 of file DynamicDLIIterator.hpp.
CastingDLIIterator< ListType, OutType >::CastingDLIIterator | ( | ) | [inline] |
Definition at line 12 of file DynamicDLIIterator.hpp.
{}
virtual CastingDLIIterator< ListType, OutType >::~CastingDLIIterator | ( | ) | [inline, virtual] |
Definition at line 14 of file DynamicDLIIterator.hpp.
{}
output_type CastingDLIIterator< ListType, OutType >::get | ( | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 29 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal.next(0)); }
output_type CastingDLIIterator< ListType, OutType >::get_and_step | ( | int | n = 1 | ) | [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 35 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal.get_and_step(n)); }
CubitBoolean CastingDLIIterator< ListType, OutType >::is_at_beginning | ( | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 47 of file DynamicDLIIterator.hpp.
{ return mInternal.is_at_beginning(); }
CubitBoolean CastingDLIIterator< ListType, OutType >::is_at_end | ( | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 44 of file DynamicDLIIterator.hpp.
CubitBoolean CastingDLIIterator< ListType, OutType >::is_in_list | ( | output_type | item | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 41 of file DynamicDLIIterator.hpp.
{ return mInternal.is_in_list(dynamic_cast<internal_type>(item)); }
CubitBoolean CastingDLIIterator< ListType, OutType >::move_to | ( | output_type | item | ) | [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 38 of file DynamicDLIIterator.hpp.
output_type CastingDLIIterator< ListType, OutType >::next | ( | int | n = 1 | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 32 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal.next(n)); }
void CastingDLIIterator< ListType, OutType >::reset | ( | ) | [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 20 of file DynamicDLIIterator.hpp.
int CastingDLIIterator< ListType, OutType >::size | ( | ) | const [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 26 of file DynamicDLIIterator.hpp.
void CastingDLIIterator< ListType, OutType >::step | ( | int | n = 1 | ) | [inline] |
Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.
Definition at line 23 of file DynamicDLIIterator.hpp.
void CastingDLIIterator< ListType, OutType >::watch | ( | const DLIList< internal_type > * | dl_i_list | ) | [inline] |
Definition at line 17 of file DynamicDLIIterator.hpp.
DLIListIterator<internal_type> CastingDLIIterator< ListType, OutType >::mInternal [private] |
Definition at line 51 of file DynamicDLIIterator.hpp.