WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
BaseIterator< ItemType > Class Template Reference

Simple forward iterator over a collection of pointers. More...

#include <BaseIterator.h>

Public Member Functions

 BaseIterator ()
 
virtual ~BaseIterator ()
 
void begin ()
 Reset the iterator to the first element.
 
bool end ()
 Check whether the iterator has reached the end.
 
void operator++ (int)
 Advance the iterator (postfix).
 
int size ()
 Return the number of items.
 

Protected Attributes

std::vector< ItemType * > m_items
 Stored item pointers.
 
std::vector< ItemType * >::iterator m_internalIt
 Current position.
 

Detailed Description

template<class ItemType>
class BaseIterator< ItemType >

Simple forward iterator over a collection of pointers.

Template Parameters
ItemTypeThe pointed-to element type.

Definition at line 8 of file BaseIterator.h.

Constructor & Destructor Documentation

◆ BaseIterator()

template<class ItemType >
BaseIterator< ItemType >::BaseIterator ( )

Definition at line 32 of file BaseIterator.h.

◆ ~BaseIterator()

template<class ItemType >
BaseIterator< ItemType >::~BaseIterator ( )
virtual

Definition at line 38 of file BaseIterator.h.

Member Function Documentation

◆ begin()

template<class ItemType >
void BaseIterator< ItemType >::begin ( )

Reset the iterator to the first element.

Definition at line 43 of file BaseIterator.h.

◆ end()

template<class ItemType >
bool BaseIterator< ItemType >::end ( )

Check whether the iterator has reached the end.

Definition at line 49 of file BaseIterator.h.

◆ operator++()

template<class ItemType >
void BaseIterator< ItemType >::operator++ ( int  )

Advance the iterator (postfix).

Definition at line 55 of file BaseIterator.h.

◆ size()

template<class ItemType >
int BaseIterator< ItemType >::size ( )
inline

Return the number of items.

Definition at line 24 of file BaseIterator.h.

Member Data Documentation

◆ m_internalIt

template<class ItemType >
std::vector<ItemType*>::iterator BaseIterator< ItemType >::m_internalIt
protected

Current position.

Definition at line 28 of file BaseIterator.h.

◆ m_items

template<class ItemType >
std::vector<ItemType*> BaseIterator< ItemType >::m_items
protected

Stored item pointers.

Definition at line 27 of file BaseIterator.h.


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