libyui-ncurses
Loading...
Searching...
No Matches
CyclicContainer< T > Class Template Reference

#include <CyclicContainer.h>

Public Types

using Iterator = typename std::vector< T * >::iterator
 
using ReverseIterator = std::reverse_iterator< Iterator >
 

Public Member Functions

Iterator begin ()
 
Iterator end ()
 
void clear ()
 
void add (T *element)
 
void setCurrent (Iterator element)
 
Iterator current ()
 
Iterator next ()
 
Iterator previous ()
 

Detailed Description

template<class T>
class CyclicContainer< T >

Container class that allows cyclic navigation between its elements by moving to the next/previous element.

Note
This class holds pointers, but it does not own the pointers.

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