NGen
Loading...
Searching...
No Matches
models::bmi::helper Namespace Reference

Functions

template<typename TO , typename FROM >
static std::vector< TO > make_vector (const FROM *data, const size_t &count)
 make a vector of type
 

Function Documentation

◆ make_vector()

template<typename TO , typename FROM >
static std::vector< TO > models::bmi::helper::make_vector ( const FROM * data,
const size_t & count )
inlinestatic

make a vector of type

Template Parameters
TOof size
Parameters
count.Copy elements of
Template Parameters
FROMtype in data into the vector.

This function relies on the std library to cast data approriately during the construction of the vector.

Template Parameters
TOdata type to cast elements of the data pointer to
FROMdata type of the pointer data is extracted from
Parameters
datapointer to
countnumber of
Template Parameters
FROMtype elements
Parameters
countnumber of elements in the
datapointer
Returns
std::vector<TO> vector filled with
Parameters
countnumber of elements extracted from
data

Referenced by models::bmi::GetValue().