cgma
CastingDLIIterator< ListType, OutType > Class Template Reference

#include <DynamicDLIIterator.hpp>

Inheritance diagram for CastingDLIIterator< ListType, OutType >:
DynamicDLIIteratorImpl< ListType, OutType >

List of all members.

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_typemInternal

Detailed Description

template<class ListType, class OutType>
class CastingDLIIterator< ListType, OutType >

Definition at line 6 of file DynamicDLIIterator.hpp.


Member Typedef Documentation

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

Definition at line 9 of file DynamicDLIIterator.hpp.

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

Definition at line 10 of file DynamicDLIIterator.hpp.


Constructor & Destructor Documentation

template<class ListType , class OutType >
CastingDLIIterator< ListType, OutType >::CastingDLIIterator ( ) [inline]

Definition at line 12 of file DynamicDLIIterator.hpp.

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

Definition at line 14 of file DynamicDLIIterator.hpp.

    {}

Member Function Documentation

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

Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.

Definition at line 44 of file DynamicDLIIterator.hpp.

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

Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.

Definition at line 38 of file DynamicDLIIterator.hpp.

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

Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.

Definition at line 20 of file DynamicDLIIterator.hpp.

    { mInternal.reset(); }
template<class ListType , class OutType >
int CastingDLIIterator< ListType, OutType >::size ( ) const [inline]

Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.

Definition at line 26 of file DynamicDLIIterator.hpp.

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

Reimplemented in DynamicDLIIteratorImpl< ListType, OutType >.

Definition at line 23 of file DynamicDLIIterator.hpp.

    { mInternal.step(n); }
template<class ListType , class OutType >
void CastingDLIIterator< ListType, OutType >::watch ( const DLIList< internal_type > *  dl_i_list) [inline]

Definition at line 17 of file DynamicDLIIterator.hpp.

    { mInternal.watch(dl_i_list); }

Member Data Documentation

template<class ListType , class OutType >
DLIListIterator<internal_type> CastingDLIIterator< ListType, OutType >::mInternal [private]

Definition at line 51 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