Skip to content
Snippets Groups Projects
Commit a9730d57 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Removed obsolete IIterator base class

parent ed9694b5
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ template<class TValue, class TContainer>
MaskedOutputDataIterator<TValue, TContainer>& MaskedOutputDataIterator<TValue, TContainer>::operator++()
{
base_t::operator ++();
while (!isSelected()) base_t::operator ++();
while (!isSelected()) base_t::operator++();
return *this;
}
......
......@@ -14,33 +14,16 @@
//! @author Scientific Computing Group at FRM II
//! @date Nov 12, 2012
//- -------------------------------------------------------------------
//! @class IIterator
//! @brief Basic iterator interface
//- -------------------------------------------------------------------
template <class TValue> class IIterator
{
public:
// construction/destruction
IIterator() {}
virtual ~IIterator() {}
virtual IIterator &operator++() { return *this; }
virtual TValue &operator*() const {
TValue *p_new = new TValue();
return *p_new;
}
};
//- -------------------------------------------------------------------
//! @class OutputDataIterator
//! @brief Definition of iterator for underlying OutputData container
//- -------------------------------------------------------------------
template <class TValue, class TContainer> class OutputDataIterator : public IIterator<TValue>
template <class TValue, class TContainer> class OutputDataIterator
{
public:
//! constructor
OutputDataIterator(TContainer *p_output_data, size_t start_at_index=0): IIterator<TValue>(),
m_current_index(start_at_index), mp_output_data(p_output_data) {}
OutputDataIterator(TContainer *p_output_data, size_t start_at_index=0)
: m_current_index(start_at_index), mp_output_data(p_output_data) {}
//! templated copy construction
template<class TValue2, class TContainer2> OutputDataIterator(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment