ROSE  0.11.96.11
Command line value augmenter factories

Description

Factories for creating instances of Sawyer::CommandLine::ValueAugmenter subclasses.

A factory function is a more terse and convenient way of calling the instance allocating constructors for the various subclasses of ValueAugmenter, and they sometimes alleviate the user from having to supply 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:

ValueAugmenter::Ptr a1 = Sum::instance<int>();
ValueAugmenter::Ptr a2 = sum<int>();

Factories

Collaboration diagram for Command line value augmenter factories:
template<typename T >
Sum< T >::Ptr Sawyer::CommandLine::sum ()
 Factory for value agumenter. More...
 

Function Documentation

◆ sum()

template<typename T >
Sum<T>::Ptr Sawyer::CommandLine::sum ( )

Factory for value agumenter.

A factory function is a more terse and convenient way of calling the instance allocating constructors for ValueAugmenter subclasses and often alleviates the user from having to specify template arguments.

See also

Definition at line 1981 of file util/Sawyer/CommandLine.h.

References Sawyer::CommandLine::Sum< T >::instance().

Referenced by Sawyer::Container::Trace< T, IndexTag >::burstiness(), and Sawyer::CommandLine::Sum< T >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:
Sawyer::CommandLine::ValueAugmenter::Ptr
SharedPointer< ValueAugmenter > Ptr
Reference counting pointer for this class.
Definition: util/Sawyer/CommandLine.h:1899