ROSE
0.11.96.11
|
Factories for creating instances of Sawyer::CommandLine::ValueParser subclasses.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for the various subclasses of ValueParser, and they sometimes alleviate the user from having to specify template arguments. They take the same arguments as the instance
method(s) and have the same name as the class they return, except their initial letter is lower case. These two calls are equivalent:
Most parser factories come in three varieties:
std::vector
then parsed values are pushed onto the back of the the vector.The integerParser factory is an example for all three of these varieties:
template<typename T > | |
AnyParser< T >::Ptr | Sawyer::CommandLine::anyParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
AnyParser< T >::Ptr | Sawyer::CommandLine::anyParser () |
Factory for value parsers. More... | |
template<typename T > | |
IntegerParser< T >::Ptr | Sawyer::CommandLine::integerParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
IntegerParser< T >::Ptr | Sawyer::CommandLine::integerParser () |
Factory for value parsers. More... | |
template<typename T > | |
NonNegativeIntegerParser< T >::Ptr | Sawyer::CommandLine::nonNegativeIntegerParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
NonNegativeIntegerParser< T >::Ptr | Sawyer::CommandLine::nonNegativeIntegerParser () |
Factory for value parsers. More... | |
template<typename T > | |
PositiveIntegerParser< T >::Ptr | Sawyer::CommandLine::positiveIntegerParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
PositiveIntegerParser< T >::Ptr | Sawyer::CommandLine::positiveIntegerParser () |
Factory for value parsers. More... | |
template<typename T > | |
RealNumberParser< T >::Ptr | Sawyer::CommandLine::realNumberParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
RealNumberParser< T >::Ptr | Sawyer::CommandLine::realNumberParser () |
Factory for value parsers. More... | |
template<typename T > | |
BooleanParser< T >::Ptr | Sawyer::CommandLine::booleanParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
BooleanParser< T >::Ptr | Sawyer::CommandLine::booleanParser () |
Factory for value parsers. More... | |
template<typename T > | |
EnumParser< T >::Ptr | Sawyer::CommandLine::enumParser (T &storage) |
Factory for value parsers. More... | |
template<typename T > | |
EnumParser< T >::Ptr | Sawyer::CommandLine::enumParser (std::vector< T > &storage) |
Factory for value parsers. More... | |
template<typename T > | |
EnumParser< T >::Ptr | Sawyer::CommandLine::enumParser (Optional< T > &storage) |
Factory for value parsers. More... | |
template<typename T > | |
EnumParser< T >::Ptr | Sawyer::CommandLine::enumParser (BitFlags< T > &storage) |
Factory for value parsers. More... | |
template<typename T > | |
EnumParser< T >::Ptr | Sawyer::CommandLine::enumParser () |
Factory for value parsers. More... | |
StringSetParser::Ptr | Sawyer::CommandLine::stringSetParser (std::string &storage) |
Factory for value parsers. More... | |
StringSetParser::Ptr | Sawyer::CommandLine::stringSetParser () |
Factory for value parsers. More... | |
ListParser::Ptr | Sawyer::CommandLine::listParser (const ValueParser::Ptr &, const std::string &sepRe="[,;:]\\s*") |
Factory for value parsers. More... | |
AnyParser<T>::Ptr Sawyer::CommandLine::anyParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1430 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::AnyParser< T >::instance().
Referenced by Sawyer::CommandLine::Switch::intrinsicValue().
AnyParser< std::string >::Ptr Sawyer::CommandLine::anyParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1434 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::AnyParser< T >::instance().
IntegerParser<T>::Ptr Sawyer::CommandLine::integerParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1440 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::IntegerParser< T >::instance().
IntegerParser< int >::Ptr Sawyer::CommandLine::integerParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1444 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::IntegerParser< T >::instance().
NonNegativeIntegerParser<T>::Ptr Sawyer::CommandLine::nonNegativeIntegerParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1450 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::NonNegativeIntegerParser< T >::instance().
NonNegativeIntegerParser< unsigned >::Ptr Sawyer::CommandLine::nonNegativeIntegerParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1454 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::NonNegativeIntegerParser< T >::instance().
PositiveIntegerParser<T>::Ptr Sawyer::CommandLine::positiveIntegerParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1460 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::PositiveIntegerParser< T >::instance().
PositiveIntegerParser< unsigned >::Ptr Sawyer::CommandLine::positiveIntegerParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1464 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::PositiveIntegerParser< T >::instance().
RealNumberParser<T>::Ptr Sawyer::CommandLine::realNumberParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1470 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::RealNumberParser< T >::instance().
RealNumberParser< double >::Ptr Sawyer::CommandLine::realNumberParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1474 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::RealNumberParser< T >::instance().
BooleanParser<T>::Ptr Sawyer::CommandLine::booleanParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1480 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::BooleanParser< T >::instance().
BooleanParser< bool >::Ptr Sawyer::CommandLine::booleanParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1484 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::BooleanParser< T >::instance().
EnumParser<T>::Ptr Sawyer::CommandLine::enumParser | ( | T & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1490 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::EnumParser< T >::instance().
EnumParser<T>::Ptr Sawyer::CommandLine::enumParser | ( | std::vector< T > & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1494 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::EnumParser< T >::instance().
EnumParser<T>::Ptr Sawyer::CommandLine::enumParser | ( | Optional< T > & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1498 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::EnumParser< T >::instance().
EnumParser<T>::Ptr Sawyer::CommandLine::enumParser | ( | BitFlags< T > & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1502 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::EnumParser< T >::instance().
EnumParser<T>::Ptr Sawyer::CommandLine::enumParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
Definition at line 1506 of file util/Sawyer/CommandLine.h.
References Sawyer::CommandLine::EnumParser< T >::instance().
StringSetParser::Ptr Sawyer::CommandLine::stringSetParser | ( | std::string & | storage | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
StringSetParser::Ptr Sawyer::CommandLine::stringSetParser | ( | ) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.
ListParser::Ptr Sawyer::CommandLine::listParser | ( | const ValueParser::Ptr & | , |
const std::string & | sepRe = "[,;:]\\s*" |
||
) |
Factory for value parsers.
A factory function is a more terse and convenient way of calling the instance
allocating constructors for ValueParser subclasses and often alleviates the user from having to specify template arguments. Most parser factories come in two varieties, and some in three varieties.