ParametricTypeDecorator Class Reference

#include <parametric_type.h>

Detailed Description

Helper to add multiple ParametricType on top of a DataType.

Static Public Member Functions

static Result< DataTypeInstantiate (const DataType &type, const ParametricType &decoType)
 
template<typename TYPEDECORATOR1 , typename... TYPEDECORATOR>
static Result< DataTypeInstantiate (const DataType &type, TYPEDECORATOR1 decoType, TYPEDECORATOR... decoTypes)
 

Member Function Documentation

◆ Instantiate() [1/2]

static Result<DataType> Instantiate ( const DataType type,
const ParametricType &  decoType 
)
static

Create a DataType decorated with the requested ParametricType.

Parameters
[in]typeThe base type.
[in]decoTypeThe single decoration.
Returns
A decorated DataType for Christmas party.

◆ Instantiate() [2/2]

static Result<DataType> Instantiate ( const DataType type,
TYPEDECORATOR1  decoType,
TYPEDECORATOR...  decoTypes 
)
static

Create a DataType decorated with the requested ParametricType.

Template Parameters
TYPEDECORATOR1The first decoration type.
TYPEDECORATORRemaining decoration types to add.
Parameters
[in]typeThe base type.
[in]decoTypeThe single decoration.
[in]decoTypesThe remaining decorations to apply.
Returns
A decorated DataType for Christmas party.