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

Implements a Range iterator that only runs once. This is useful e.g. for fsttools that process a batch of files if range is specificied, and only one if not. More...

#include <range.hpp>

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

Public Member Functions

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

Detailed Description

template<typename NumberType>
class ucam::util::OneRange< NumberType >

Implements a Range iterator that only runs once. This is useful e.g. for fsttools that process a batch of files if range is specificied, and only one if not.

Definition at line 138 of file range.hpp.

Constructor & Destructor Documentation

template<typename NumberType>
ucam::util::OneRange< NumberType >::OneRange ( const NumberType  u = 0)
inline

Definition at line 144 of file range.hpp.

Member Function Documentation

template<typename NumberType>
bool ucam::util::OneRange< NumberType >::done ( void  )
inlinevirtual

return true.

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

Definition at line 155 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType>
NumberType ucam::util::OneRange< NumberType >::get ( void  )
inlinevirtual

Always returns sid_.

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

Definition at line 159 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType>
void ucam::util::OneRange< NumberType >::next ( void  )
inlinevirtual

Empty implementation.

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

Definition at line 150 of file range.hpp.

Here is the caller graph for this function:

template<typename NumberType>
void ucam::util::OneRange< NumberType >::start ( void  )
inlinevirtual

Empty implementation.

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

Definition at line 146 of file range.hpp.

Here is the caller graph for this function:


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