libyui-ncurses  2.57.2
CyclicContainer< T > Class Template Reference

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

#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.

Definition at line 39 of file CyclicContainer.h.


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