AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ ArrayParameter()

template<typename SDS_T >
drama::ArrayParameter< SDS_T >::ArrayParameter ( std::weak_ptr< Task task,
const std::string &  name,
unsigned  nElements,
const SDS_T  initVal 
)
inline

Construct a parameter of a given name which is an array of scalar items.

All entries will be initialized to the specified value.

Parameters
taskThe DRAMA Task we are part of. This is passed by pointer, but Parameter is not taking ownership of the subject object, which must continue to exist until the Parameter object is destroyed.
nameThe name of the parameter.
nElementsThe number of elements for in the array.
initValThe initial values for the array items. The array is filled with this value to ensure that at no time are the values undefined.

References drama::sds::Id::CreateChildArray(), drama::sds::Id::CreateFromSdsIdType(), drama::CreateRunDramaTask(), and drama::ArrayParameter< SDS_T >::Fill().