Cambridge SMT System
|
#include <range.hpp>
Public Member Functions | |
NumberRange (const std::vector< NumberType > &r) | |
Constructor. More... | |
NumberRange (const RegistryPO &rg, const std::string &rangekey=HifstConstants::kRange) | |
Constructor. More... | |
NumberRange (const std::string &range) | |
void | start (void) |
Empty implementation. More... | |
void | next (void) |
Increment index. More... | |
bool | done (void) |
Checks if reached the last element. More... | |
NumberType | get (void) |
Returns range value at position k_. More... | |
NumberType | operator() (void) |
Public Member Functions inherited from ucam::util::NumberRangeInterface< NumberType > | |
virtual | ~NumberRangeInterface () |
|
inline |
|
inline |
Constructor.
rg | pointer to RegistryPO objects allowing access to command-line/config file options |
|
inline |
|
inlinevirtual |
Checks if reached the last element.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 115 of file range.hpp.
|
inlinevirtual |
Returns range value at position k_.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 119 of file range.hpp.
|
inlinevirtual |
Increment index.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 111 of file range.hpp.
|
inline |
|
inlinevirtual |
Empty implementation.
Implements ucam::util::NumberRangeInterface< NumberType >.
Definition at line 107 of file range.hpp.