commonlib
vector_with_ids_iterator.h File Reference

VectorWithIdsIterator provides access to VectorWithIds elements and it's id numbers. More...

#include <vector>
#include "containers.h"

Go to the source code of this file.

Classes

class  VectorWithIds< T >
 
struct  VectorWithIdsIterators::UnderlyingTypes< T, ConstSwitch >
 
struct  VectorWithIdsIterators::UnderlyingTypes< T, ConstTypeSwitch::isConst >
 
struct  VectorWithIdsIterators::UnderlyingTypes< T, ConstTypeSwitch::isNonConst >
 
class  VectorWithIdsIterators::VectorWithIdsIterator< T, ConstSwitch >
 

Enumerations

enum  ConstTypeSwitch { isConst = 0, isNonConst = 1 }
 

Detailed Description

VectorWithIdsIterator provides access to VectorWithIds elements and it's id numbers.

Author
Luka Jerman
Date
09/08/2019
Version
1.0

DESCRIPTION

VectorWithIdsIterator is a forward iterator that provides a pointer type access to the elements stored in VectorWithIds container. It offers mutable or immutable access depending on the const type switch. It also has a function to access the id number of the pointed element.