Cambridge SMT System
range.hpp File Reference

Handles different type of integer ranges. More...

This graph shows which files directly or indirectly include this file:

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"
 

Detailed Description

Handles different type of integer ranges.

Date
8-8-2012
Author
Gonzalo Iglesias

Definition in file range.hpp.

Macro Definition Documentation

#define IntRangeFactory   RangeInitFactory<unsigned>

Definition at line 213 of file range.hpp.