Regina Calculation Engine
|
A function object that creates a new object subclassed from Base, where the particular subclass is chosen according to the template argument to operator(). More...
#include <utilities/registryutils.h>
Public Types | |
typedef Base * | ReturnType |
Indicates the return type for a function object. More... | |
Public Member Functions | |
NewFunction1 (Arg arg) | |
Creates a new function object, whose bracket operator will create a new object by passing arg to its constructor. More... | |
template<typename Info > | |
Base * | operator() (Info) |
Creates a new object of the subclass Info::Class. More... | |
Public Attributes | |
size_t | arg_ |
The length of the new vector to create. More... | |
A function object that creates a new object subclassed from Base, where the particular subclass is chosen according to the template argument to operator().
The template argument to the bracket operator would typically be one of the registry helper classes, such as PacketInfo or NormalInfo.
The new object will be created using a single-argument constructor, where the argument is of type Arg.
This routine is intended for use with registry routines, such as the three-argument variants of forPacket() and forCoords().
|
inherited |
Indicates the return type for a function object.
|
inline |
Creates a new function object, whose bracket operator will create a new object by passing arg to its constructor.
arg | the argument to pass to the new object's class constructor. |
|
inline |
Creates a new object of the subclass Info::Class.
The object will be created using a single-argument constructor for Info::Class, and the argument to this constructor will be the same argument arg that was passed to this function object's NewFunction1 constructor.
size_t regina::NewFunction1< Base, Arg >::arg_ |
The length of the new vector to create.