TECA
The Toolkit for Extreme Climate Analysis
teca_variant_array_factory Struct Reference

Creates an instance of teca_variant_array_impl<T> where T is determined from the type code. More...

#include <teca_variant_array_impl.h>

Public Types

using allocator = teca_variant_array::allocator
 

Static Public Member Functions

static p_teca_variant_array New (unsigned int type_code, allocator alloc=allocator::malloc)
 

Detailed Description

Creates an instance of teca_variant_array_impl<T> where T is determined from the type code.

Member Function Documentation

◆ New()

static p_teca_variant_array teca_variant_array_factory::New ( unsigned int  type_code,
allocator  alloc = allocator::malloc 
)
inlinestatic

Construct a new variant array.

Parameters
[in]type_codethe type of array to construct
[in]allocthe allocator to use
Returns
a new variant array or a nullptr if the type_code was invalid.

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