PDI 1.1.0

Data exchange made easy

PDI::Datatype_template Class Referenceabstract
Inheritance diagram for PDI::Datatype_template:
PDI::Datatype PDI::Array_datatype PDI::Pointer_datatype PDI::Record_datatype PDI::Scalar_datatype

Public Member Functions

virtual ~Datatype_template ()
 Destroys the template. More...
 
virtual Datatype_template_uptr clone () const =0
 Creates a new datatype as an exact copy of this one. More...
 
virtual Datatype_uptr evaluate (Context &ctx) const =0
 Creates a new datatype by resolving the value of all metadata references. More...
 

Static Public Member Functions

static void load_basic_datatypes (Context &ctx)
 Adds to the context the basic Array, Record, C and Fortran datatypes. More...
 

Constructor & Destructor Documentation

◆ ~Datatype_template()

virtual PDI::Datatype_template::~Datatype_template ( )
virtual

Destroys the template.

Member Function Documentation

◆ clone()

virtual Datatype_template_uptr PDI::Datatype_template::clone ( ) const
pure virtual

Creates a new datatype as an exact copy of this one.

Returns
the dense type that is produced

Implemented in PDI::Array_datatype, PDI::Record_datatype, PDI::Pointer_datatype, and PDI::Scalar_datatype.

◆ evaluate()

virtual Datatype_uptr PDI::Datatype_template::evaluate ( Context ctx) const
pure virtual

Creates a new datatype by resolving the value of all metadata references.

Parameters
ctxthe context in which to evaluate this template
Returns
the evaluated type that is produced

Implemented in PDI::Array_datatype, PDI::Record_datatype, PDI::Pointer_datatype, and PDI::Scalar_datatype.

◆ load_basic_datatypes()

static void PDI::Datatype_template::load_basic_datatypes ( Context ctx)
static

Adds to the context the basic Array, Record, C and Fortran datatypes.

Parameters
[in,out]ctxthe context where to add the datatypes

The documentation for this class was generated from the following file: