Cambridge SMT System
ucam::util::InfiniteRange< NumberType > Class Template Reference

Implements a Range iterator that will never finish. More...

#include <range.hpp>

Inheritance diagram for ucam::util::InfiniteRange< NumberType >:
Collaboration diagram for ucam::util::InfiniteRange< NumberType >:

Public Member Functions

 InfiniteRange (const NumberType u=1)
 
void start (void)
 Empty implementation. More...
 
void next (void)
 Empty implementation. More...
 
bool done (void)
 Always return false. More...
 
NumberType get (void)
 Always returns sid_. More...
 
- Public Member Functions inherited from ucam::util::NumberRangeInterface< NumberType >
virtual ~NumberRangeInterface ()
 

Detailed Description

template<typename NumberType = uint>
class ucam::util::InfiniteRange< NumberType >

Implements a Range iterator that will never finish.

Definition at line 173 of file range.hpp.

Constructor & Destructor Documentation

template<typename NumberType = uint>
ucam::util::InfiniteRange< NumberType >::InfiniteRange ( const NumberType  u = 1)
inline

Definition at line 178 of file range.hpp.

Member Function Documentation

template<typename NumberType = uint>
bool ucam::util::InfiniteRange< NumberType >::done ( void  )
inlinevirtual

Always return false.

Implements ucam::util::NumberRangeInterface< NumberType >.

Definition at line 187 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType = uint>
NumberType ucam::util::InfiniteRange< NumberType >::get ( void  )
inlinevirtual

Always returns sid_.

Implements ucam::util::NumberRangeInterface< NumberType >.

Definition at line 191 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType = uint>
void ucam::util::InfiniteRange< NumberType >::next ( void  )
inlinevirtual

Empty implementation.

Implements ucam::util::NumberRangeInterface< NumberType >.

Definition at line 182 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType = uint>
void ucam::util::InfiniteRange< NumberType >::start ( void  )
inlinevirtual

Empty implementation.

Implements ucam::util::NumberRangeInterface< NumberType >.

Definition at line 180 of file range.hpp.


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