Blueprint for instantiating/configuring an array filled with a constant. More...
#include <array_no_mem_check.hpp>
Public Types | |
typedef ecl::Array< Type, Size > | base_type |
Abstract representation of the class to be instantiated/configured. More... | |
Public Member Functions | |
void | apply (base_type &array) const |
ConstantArray (const Type &value=0) | |
Constructor that properly configures/initialises the blueprint. More... | |
base_type | instantiate () |
Instantiate a copy of the object that is blueprinted. More... | |
virtual | ~ConstantArray () |
Private Attributes | |
const Type & | val |
Blueprint for instantiating/configuring an array filled with a constant.
Implements the BluePrint concept for instantiating/configuring an array filled with a constant.
Definition at line 61 of file array_no_mem_check.hpp.
typedef ecl::Array<Type,Size> ecl::blueprints::ConstantArray< Type, Size >::base_type |
Abstract representation of the class to be instantiated/configured.
Definition at line 471 of file array_no_mem_check.hpp.
|
inline |
Constructor that properly configures/initialises the blueprint.
This constructor saves the input parameters to use when generating the instance later.
value | : the constant value to fill the array with (defaults to zero). |
Definition at line 480 of file array_no_mem_check.hpp.
|
inlinevirtual |
Definition at line 482 of file array_no_mem_check.hpp.
|
inline |
Fill all elements of an existing array with a constant value.
array | : the array to fill. |
Definition at line 504 of file array_no_mem_check.hpp.
|
inline |
Instantiate a copy of the object that is blueprinted.
Instantiates a new array configured with a constant value. Take care not to use this in assignment, as it will do a costly copy of the entire array. It is, however, fine to use when constructing as the copy constructor will simply use this copy for the constructing object.
Definition at line 494 of file array_no_mem_check.hpp.
|
private |
Definition at line 509 of file array_no_mem_check.hpp.