Cambridge SMT System
|
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>
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 () |
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.
|
inline |
|
inlinevirtual |
return true.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 155 of file range.hpp.
|
inlinevirtual |
Always returns sid_.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 159 of file range.hpp.
|
inlinevirtual |
Empty implementation.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 150 of file range.hpp.
|
inlinevirtual |
Empty implementation.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 146 of file range.hpp.