Documentation of CSL
Public Types | Public Member Functions | Friends
counter< T > Class Template Reference

Public Types

using iterator = counter_iterator< T >
 
using const_iterator = counter_iterator< const T >
 

Public Member Functions

 counter (size_t t_max)
 
template<class Iterator >
 counter (Iterator iter, Iterator end)
 
template<class Iterable >
 counter (Iterable const &containor)
 
 counter (const counter &other)
 
counteroperator= (counter const &other)
 
 counter (counter &&other)=default
 
counteroperator= (counter &&other)=default
 
size_t size () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void restart ()
 
template<class Iterator >
void getCount (Iterator iter) const
 
template<class Iterator >
void setCount (Iterator iter)
 
void push_back (T max, T value)
 
counteroperator++ ()
 
counter operator++ (int)
 
T & operator[] (size_t pos)
 
operator[] (size_t pos) const
 
 operator bool () const
 

Friends

class counter_iterator< T >
 
std::ostream & operator<< (std::ostream &out, counter const &c)
 

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