cgma
CastingDynamicDLIIterator< ListType, OutType > Class Template Reference

#include <DynamicDLIIterator.hpp>

Inheritance diagram for CastingDynamicDLIIterator< ListType, OutType >:
DynamicDLIIterator< OutType >

List of all members.

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

Detailed Description

template<class ListType, class OutType>
class CastingDynamicDLIIterator< ListType, OutType >

Definition at line 123 of file DynamicDLIIterator.hpp.


Member Typedef Documentation

template<class ListType , class OutType >
typedef ListType* CastingDynamicDLIIterator< ListType, OutType >::internal_type

Definition at line 127 of file DynamicDLIIterator.hpp.

template<class ListType , class OutType >
typedef OutType* CastingDynamicDLIIterator< ListType, OutType >::output_type

Definition at line 128 of file DynamicDLIIterator.hpp.


Constructor & Destructor Documentation

template<class ListType , class OutType >
CastingDynamicDLIIterator< ListType, OutType >::CastingDynamicDLIIterator ( DynamicDLIIterator< ListType > *  internal) [inline]

Definition at line 130 of file DynamicDLIIterator.hpp.

          : mInternal(internal)
    {}
template<class ListType , class OutType >
virtual CastingDynamicDLIIterator< ListType, OutType >::~CastingDynamicDLIIterator ( ) [inline, virtual]

Definition at line 133 of file DynamicDLIIterator.hpp.

    { delete mInternal; }

Member Function Documentation

template<class ListType , class OutType >
DynamicDLIIterator<OutType>* CastingDynamicDLIIterator< ListType, OutType >::clone ( ) const [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 166 of file DynamicDLIIterator.hpp.

template<class ListType , class OutType >
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)); }
template<class ListType , class OutType >
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)); }
template<class ListType , class OutType >
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(); }
template<class ListType , class OutType >
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::is_at_end ( ) const [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 160 of file DynamicDLIIterator.hpp.

    { return mInternal->is_at_end(); }
template<class ListType , class OutType >
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)); }
template<class ListType , class OutType >
CubitBoolean CastingDynamicDLIIterator< ListType, OutType >::move_to ( output_type  item) [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 154 of file DynamicDLIIterator.hpp.

    { return mInternal->move_to(dynamic_cast<internal_type>(item)); }
template<class ListType , class OutType >
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)); }
template<class ListType , class OutType >
void CastingDynamicDLIIterator< ListType, OutType >::reset ( ) [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 136 of file DynamicDLIIterator.hpp.

    { mInternal->reset(); }
template<class ListType , class OutType >
unsigned int CastingDynamicDLIIterator< ListType, OutType >::size ( ) const [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 142 of file DynamicDLIIterator.hpp.

    { return mInternal->size(); }
template<class ListType , class OutType >
void CastingDynamicDLIIterator< ListType, OutType >::step ( int  n = 1) [inline, virtual]

Implements DynamicDLIIterator< OutType >.

Definition at line 139 of file DynamicDLIIterator.hpp.

    { mInternal->step(n); }

Member Data Documentation

template<class ListType , class OutType >
DynamicDLIIterator<ListType>* CastingDynamicDLIIterator< ListType, OutType >::mInternal [private]

Definition at line 171 of file DynamicDLIIterator.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines