Loading...
Searching...
No Matches
gamssymboliter.h
1
26#ifndef GAMSSYMBOLITER_H
27#define GAMSSYMBOLITER_H
28
29#include "gamslib_global.h"
30
31namespace gams {
32
33template <class T>
34
37class LIBSPEC GAMSSymbolIter
38{
39public:
40
44 GAMSSymbolIter(T& symbol, int pos);
45
48
52 bool operator==(const GAMSSymbolIter<T>& other) const;
53
57 bool operator!=(const GAMSSymbolIter<T>& other) const;
58
61 typename T::RecordType& operator*();
62
66
67private:
68 T& mSymbol;
69 typename T::RecordType* mSymRecord;
70 int mPos;
71 void* mSymIterPtr;
72};
73
74} // namespace gams
75
76#endif // GAMSSYMBOLITER_H
bool operator==(const GAMSSymbolIter< T > &other) const
T::RecordType & operator*()
GAMSSymbolIter< T > & operator++()
~GAMSSymbolIter()
Destructor.
bool operator!=(const GAMSSymbolIter< T > &other) const
GAMSSymbolIter(T &symbol, int pos)
Definition: gams.h:91