Cambridge SMT System
|
Handles different type of integer ranges. More...
Go to the source code of this file.
Classes | |
class | ucam::util::NumberRangeInterface< NumberType > |
Interface for an arbitrary range of numbers. More... | |
class | ucam::util::NumberRange< 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. More... | |
class | ucam::util::InfiniteRange< NumberType > |
Implements a Range iterator that will never finish. More... | |
Namespaces | |
HifstConstants | |
ucam | |
ucam::util | |
Macros | |
#define | IntRangeFactory RangeInitFactory<unsigned> |
Typedefs | |
typedef boost::scoped_ptr< NumberRangeInterface< unsigned > > | ucam::util::IntRangePtr |
Functions | |
template<typename NumberType > | |
void | ucam::util::getRange (const std::string &range, std::vector< NumberType > &x) |
Generates ranges from a compact string parameter such as 1,3:5,10. More... | |
template<typename NumberType > | |
NumberRangeInterface< NumberType > * | ucam::util::RangeInitFactory (const RegistryPO &rg, const std::string &option=HifstConstants::kRangeInfinite) |
Variables | |
const std::string | HifstConstants::kRange = "range" |
const std::string | HifstConstants::kRangeOne = "one" |
const std::string | HifstConstants::kRangeInfinite = "infinite" |