Nektar++
Static Public Member Functions | List of all members
Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type > Class Template Reference

#include <ArrayPolicies.hpp>

Static Public Member Functions

static void Initialize (ObjectType *data, size_t itemsToCreate)
 
static void Initialize (ObjectType *data, size_t itemsToCreate, const ObjectType &initValue)
 
static void Initialize (ObjectType *data, size_t itemsToCreate, const ObjectType *initValue)
 

Detailed Description

template<typename ObjectType>
class Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type >

Definition at line 53 of file ArrayPolicies.hpp.

Member Function Documentation

◆ Initialize() [1/3]

template<typename ObjectType >
static void Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type >::Initialize ( ObjectType *  data,
size_t  itemsToCreate 
)
inlinestatic

Definition at line 58 of file ArrayPolicies.hpp.

60 {
61 }

◆ Initialize() [2/3]

template<typename ObjectType >
static void Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type >::Initialize ( ObjectType *  data,
size_t  itemsToCreate,
const ObjectType &  initValue 
)
inlinestatic

Definition at line 63 of file ArrayPolicies.hpp.

65 {
66 std::fill_n(data, itemsToCreate, initValue);
67 }

◆ Initialize() [3/3]

template<typename ObjectType >
static void Nektar::ArrayInitializationPolicy< ObjectType, typename std::enable_if< std::is_fundamental< ObjectType >::value >::type >::Initialize ( ObjectType *  data,
size_t  itemsToCreate,
const ObjectType *  initValue 
)
inlinestatic

Definition at line 69 of file ArrayPolicies.hpp.

71 {
72 std::copy(initValue, initValue + itemsToCreate, data);
73 }
def copy(self)
Definition: pycml.py:2663

References CellMLToNektar.pycml::copy().