cgma
|
#include <DynamicDLIIterator.hpp>
Public Types | |
typedef ListType * | internal_type |
typedef OutType * | output_type |
Public Member Functions | |
CastingDynamicDLIIterator (DynamicDLIIterator< ListType > *internal) | |
virtual | ~CastingDynamicDLIIterator () |
void | reset () |
void | step (int n=1) |
unsigned 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 |
DynamicDLIIterator< OutType > * | clone () const |
Private Attributes | |
DynamicDLIIterator< ListType > * | mInternal |
Definition at line 123 of file DynamicDLIIterator.hpp.
typedef ListType* CastingDynamicDLIIterator< ListType, OutType >::internal_type |
Definition at line 127 of file DynamicDLIIterator.hpp.
typedef OutType* CastingDynamicDLIIterator< ListType, OutType >::output_type |
Definition at line 128 of file DynamicDLIIterator.hpp.
CastingDynamicDLIIterator< ListType, OutType >::CastingDynamicDLIIterator | ( | DynamicDLIIterator< ListType > * | internal | ) | [inline] |
Definition at line 130 of file DynamicDLIIterator.hpp.
: mInternal(internal) {}
virtual CastingDynamicDLIIterator< ListType, OutType >::~CastingDynamicDLIIterator | ( | ) | [inline, virtual] |
Definition at line 133 of file DynamicDLIIterator.hpp.
{ delete mInternal; }
DynamicDLIIterator<OutType>* CastingDynamicDLIIterator< ListType, OutType >::clone | ( | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 166 of file DynamicDLIIterator.hpp.
{ return new CastingDynamicDLIIterator(mInternal->clone()); }
output_type CastingDynamicDLIIterator< ListType, OutType >::get | ( | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 145 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal->next(0)); }
output_type CastingDynamicDLIIterator< ListType, OutType >::get_and_step | ( | int | n = 1 | ) | [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 151 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal->get_and_step(n)); }
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::is_at_beginning | ( | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 163 of file DynamicDLIIterator.hpp.
{ return mInternal->is_at_beginning(); }
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::is_at_end | ( | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 160 of file DynamicDLIIterator.hpp.
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::is_in_list | ( | output_type | item | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 157 of file DynamicDLIIterator.hpp.
{ return mInternal->is_in_list(dynamic_cast<internal_type>(item)); }
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::move_to | ( | output_type | item | ) | [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 154 of file DynamicDLIIterator.hpp.
output_type CastingDynamicDLIIterator< ListType, OutType >::next | ( | int | n = 1 | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 148 of file DynamicDLIIterator.hpp.
{ return dynamic_cast<output_type>(mInternal->next(n)); }
void CastingDynamicDLIIterator< ListType, OutType >::reset | ( | ) | [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 136 of file DynamicDLIIterator.hpp.
unsigned int CastingDynamicDLIIterator< ListType, OutType >::size | ( | ) | const [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 142 of file DynamicDLIIterator.hpp.
void CastingDynamicDLIIterator< ListType, OutType >::step | ( | int | n = 1 | ) | [inline, virtual] |
Implements DynamicDLIIterator< OutType >.
Definition at line 139 of file DynamicDLIIterator.hpp.
DynamicDLIIterator<ListType>* CastingDynamicDLIIterator< ListType, OutType >::mInternal [private] |
Definition at line 171 of file DynamicDLIIterator.hpp.