JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JPtrArrayIterator< T > Class Template Reference

#include <JPtrArray.h>

Inheritance diagram for JPtrArrayIterator< T >:
[legend]

Public Member Functions

 JPtrArrayIterator (const JPtrArray< T > &theArray, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
 JPtrArrayIterator (JPtrArray< T > *theArray, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
bool SetPrev (T *dataPtr, const JPtrArrayT::SetAction action, const JListT::Action move=JListT::kMove)
 
bool SetNext (T *dataPtr, const JPtrArrayT::SetAction action, const JListT::Action move=JListT::kMove)
 
bool DeletePrev ()
 
bool DeleteNext ()
 
bool DeletePrevAsArray ()
 
bool DeleteNextAsArray ()
 
- Public Member Functions inherited from JArrayIterator< T * >
 JArrayIterator (const JArray< T * > &theArray, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
 JArrayIterator (JArray< T * > *theArray, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
 JArrayIterator (const JArrayIterator< T * > &source)
 
 ~JArrayIterator () override
 
bool Prev (T * *data, const JListT::Action move=JListT::kMove) override
 
bool Next (T * *data, const JListT::Action move=JListT::kMove) override
 
void SkipPrev (const JSize count=1) override
 
void SkipNext (const JSize count=1) override
 
bool SetPrev (const T * &data, const JListT::Action move=JListT::kMove) override
 
bool SetNext (const T * &data, const JListT::Action move=JListT::kMove) override
 
bool RemovePrev (const JSize count=1) override
 
bool RemoveNext (const JSize count=1) override
 
bool Insert (const T * &data) override
 
- Public Member Functions inherited from JListIterator< T >
 JListIterator (const JList< T > &theList, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
 JListIterator (JList< T > *theList, const JListT::Position start=JListT::kStartAtBeginning, const JIndex index=0)
 
virtual ~JListIterator ()
 
const JList< T > * GetList () const
 
bool GetList (JList< T > **obj) const
 
bool Prev (std::function< bool(const T &)> match, T *item)
 
bool Next (std::function< bool(const T &)> match, T *item)
 
virtual void MoveTo (const JListT::Position newPosition, const JIndex index)
 
bool AtBeginning () const
 
bool AtEnd () const
 
JIndex GetPrevItemIndex () const
 
JIndex GetNextItemIndex () const
 
bool GetPrevItemIndex (JIndex *i) const
 
bool GetNextItemIndex (JIndex *i) const
 
operator* () const
 
JListIterator< T > & operator++ ()
 
bool operator== (const JListIterator< T > &it) const
 

Additional Inherited Members

- Protected Member Functions inherited from JArrayIterator< T * >
void ListChanged (const JBroadcaster::Message &message) override
 
- Protected Member Functions inherited from JListIterator< T >
 JListIterator (const JListIterator< T > &source)
 
JCursorPosition GetCursor () const
 
void SetCursor (const JCursorPosition pos)
 

Constructor & Destructor Documentation

◆ JPtrArrayIterator() [1/2]

template<class T >
JPtrArrayIterator< T >::JPtrArrayIterator ( const JPtrArray< T > &  theArray,
const JListT::Position  start = JListT::kStartAtBeginning,
const JIndex  index = 0 
)

Provides a consistent interface for iterating over a JPtrArray.

Refer to JListIterator.tmpl for information about interators in general.

◆ JPtrArrayIterator() [2/2]

template<class T >
JPtrArrayIterator< T >::JPtrArrayIterator ( JPtrArray< T > *  theArray,
const JListT::Position  start = JListT::kStartAtBeginning,
const JIndex  index = 0 
)

Member Function Documentation

◆ DeleteNext()

template<class T >
bool JPtrArrayIterator< T >::DeleteNext ( )

Returns true if we have a non-const JPtrArray<T>* and there is a next item.

◆ DeleteNextAsArray()

template<class T >
bool JPtrArrayIterator< T >::DeleteNextAsArray ( )

Returns true if we have a non-const JPtrArray<T>* and there is a next item.

◆ DeletePrev()

template<class T >
bool JPtrArrayIterator< T >::DeletePrev ( )

Returns true if we have a non-const JPtrArray<T>* and there is a previous item.

◆ DeletePrevAsArray()

template<class T >
bool JPtrArrayIterator< T >::DeletePrevAsArray ( )

Returns true if we have a non-const JPtrArray<T>* and there is a previous item.

◆ SetNext()

template<class T >
bool JPtrArrayIterator< T >::SetNext ( T *  dataPtr,
const JPtrArrayT::SetAction  action,
const JListT::Action  move = JListT::kMove 
)

Returns true if we have a non-const JPtrArray<T>* and there is a next item.

◆ SetPrev()

template<class T >
bool JPtrArrayIterator< T >::SetPrev ( T *  dataPtr,
const JPtrArrayT::SetAction  action,
const JListT::Action  move = JListT::kMove 
)

Returns true if we have a non-const JPtrArray<T>* and there is a previous item.


The documentation for this class was generated from the following files: