DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Diades::Utils::RangesEnumeration< T > Class Template Reference

#include <Enumerators.hh>

Public Types

using Value = T
 

Public Member Functions

 RangesEnumeration ()=default
 
 RangesEnumeration (RangesEnumeration const &other)=default
 
RangesEnumerationoperator= (RangesEnumeration const &other)=default
 
 RangesEnumeration (RangesEnumeration &&other)=default
 
RangesEnumerationoperator= (RangesEnumeration &&other)=default
 
virtual ~RangesEnumeration ()=default
 
void setup (std::vector< T > &&start, const std::vector< T > &&end)
 
 RangesEnumeration (const std::vector< T > &start, const std::vector< T > &end)
 
size_t count () const
 
const std::vector< T > & current () const
 
void start ()
 
bool hasNext ()
 
bool empty () const
 
bool completed () const
 

Private Member Functions

void checkEmpty ()
 

Private Attributes

std::vector< T > _start
 
std::vector< T > _end
 
std::vector< T > _current
 
bool _completed
 
bool _empty
 
size_t _counter
 

Detailed Description

template<typename T>
class Diades::Utils::RangesEnumeration< T >

Definition at line 20 of file Enumerators.hh.

Member Typedef Documentation

◆ Value

template<typename T>
using Diades::Utils::RangesEnumeration< T >::Value = T

Definition at line 23 of file Enumerators.hh.

Constructor & Destructor Documentation

◆ RangesEnumeration() [1/4]

template<typename T>
Diades::Utils::RangesEnumeration< T >::RangesEnumeration ( )
default

◆ RangesEnumeration() [2/4]

template<typename T>
Diades::Utils::RangesEnumeration< T >::RangesEnumeration ( RangesEnumeration< T > const &  other)
default

Copy constructor (default)

Parameters
other

◆ RangesEnumeration() [3/4]

template<typename T>
Diades::Utils::RangesEnumeration< T >::RangesEnumeration ( RangesEnumeration< T > &&  other)
default

Move constructor (default)

Parameters
other

◆ ~RangesEnumeration()

template<typename T>
virtual Diades::Utils::RangesEnumeration< T >::~RangesEnumeration ( )
virtualdefault

◆ RangesEnumeration() [4/4]

template<typename T>
Diades::Utils::RangesEnumeration< T >::RangesEnumeration ( const std::vector< T > &  start,
const std::vector< T > &  end 
)
inline

Definition at line 91 of file Enumerators.hh.

Member Function Documentation

◆ checkEmpty()

template<typename T>
void Diades::Utils::RangesEnumeration< T >::checkEmpty ( )
inlineprivate

◆ completed()

template<typename T>
bool Diades::Utils::RangesEnumeration< T >::completed ( ) const
inline

◆ count()

template<typename T>
size_t Diades::Utils::RangesEnumeration< T >::count ( ) const
inline
Returns
the current number of enumerations

Definition at line 101 of file Enumerators.hh.

◆ current()

template<typename T>
const std::vector<T>& Diades::Utils::RangesEnumeration< T >::current ( ) const
inline

◆ empty()

template<typename T>
bool Diades::Utils::RangesEnumeration< T >::empty ( ) const
inline

◆ hasNext()

template<typename T>
bool Diades::Utils::RangesEnumeration< T >::hasNext ( )
inline

◆ operator=() [1/2]

template<typename T>
RangesEnumeration& Diades::Utils::RangesEnumeration< T >::operator= ( RangesEnumeration< T > const &  other)
default

Assignement (default)

Parameters
other
Returns
the current RangesEnumeration

Referenced by Diades::Utils::RangesEnumeration< InitialStateIterator >::checkEmpty().

◆ operator=() [2/2]

template<typename T>
RangesEnumeration& Diades::Utils::RangesEnumeration< T >::operator= ( RangesEnumeration< T > &&  other)
default

Move assignement (default)

Parameters
other
Returns
the current RangesEnumeration

◆ setup()

template<typename T>
void Diades::Utils::RangesEnumeration< T >::setup ( std::vector< T > &&  start,
const std::vector< T > &&  end 
)
inline

◆ start()

template<typename T>
void Diades::Utils::RangesEnumeration< T >::start ( )
inline

Member Data Documentation

◆ _completed

template<typename T>
bool Diades::Utils::RangesEnumeration< T >::_completed
private

◆ _counter

template<typename T>
size_t Diades::Utils::RangesEnumeration< T >::_counter
private

◆ _current

template<typename T>
std::vector<T> Diades::Utils::RangesEnumeration< T >::_current
private

◆ _empty

template<typename T>
bool Diades::Utils::RangesEnumeration< T >::_empty
private

◆ _end

template<typename T>
std::vector<T> Diades::Utils::RangesEnumeration< T >::_end
private

◆ _start

template<typename T>
std::vector<T> Diades::Utils::RangesEnumeration< T >::_start
private

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