Gorgon Game Engine
Iterator.h File Reference

contains base iterator which performs most common iterator related functions for a random access iterator. More...

Include dependency graph for Iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Iterator< I_, T_, D_ >
 Generic iterator interface. More...
 
class  ValueIterator< I_, T_, D_ >
 Generic iterator interface. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Containers
 This namespace contains containers that are missing from STL or specifically crafted for game or GUI development.
 

Functions

template<class C_ , class I_ >
void AddCopy (C_ &target, const I_ &begin, const I_ &end)
 This function copies the contents of the given iterator to the given iterator into the given container using Add method. More...
 
template<class C_ , class I_ >
void AddCopy (C_ &target, const I_ &it)
 This function copies the contents of the given iterator as long as it can be dereferenced to the given container using Add method. More...
 
template<class T_ , class I_ , class A_ >
void AddCopy (std::vector< T_, A_ > &target, const I_ &begin, const I_ &end)
 This function copies the contents of the given iterator as long as it can be dereferenced into the given vector using push_back method. More...
 
template<class T_ , class I_ , class A_ >
void AddCopy (std::vector< T_, A_ > &target, const I_ &it)
 This function copies the contents of the given iterator to the given iterator into the given vector using push_back method. More...
 
template<class I_ >
void Delete (const I_ &first, const I_ &end)
 This function works with collection iterators. More...
 
template<class I_ , class T_ >
I_ Find (const I_ &first, const I_ &end, const T_ &item)
 This function works with collection iterators. More...
 
template<class T_ >
std::ostream & operator<< (std::ostream &out, const std::vector< T_ > &vec)
 Allows streaming of vectors. More...
 
template<class I_ >
void Remove (const I_ &first, const I_ &end)
 This function works with collection iterators. More...
 

Detailed Description

contains base iterator which performs most common iterator related functions for a random access iterator.

Function Documentation

◆ operator<<()

std::ostream& std::operator<< ( std::ostream &  out,
const std::vector< T_ > &  vec 
)

Allows streaming of vectors.