1 #ifndef MHO_NDArrayWrapper_0_HH__
2 #define MHO_NDArrayWrapper_0_HH__
5 #ifndef MHO_NDArrayWrapper_HH__
6 #error "Do not include MHO_NDArrayWrapper_0.hh directly; use MHO_NDArrayWrapper.hh instead."
15 template<
typename XValueType >
21 typedef std::integral_constant< std::size_t, 0 >
rank;
58 std::size_t
GetSize()
const {
return 1; };
74 void SetArray(
const XValueType& obj) { fData = obj; }
79 void ZeroArray() { std::memset(&fData, 0,
sizeof(XValueType)); }
Class MHO_ExtensibleElement.
Definition: MHO_ExtensibleElement.hh:60
XValueType fData
Definition: MHO_NDArrayWrapper_0.hh:82
void SetData(const XValueType &value)
Setter for data.
Definition: MHO_NDArrayWrapper_0.hh:37
MHO_NDArrayWrapper(const XValueType &data)
Definition: MHO_NDArrayWrapper_0.hh:25
MHO_NDArrayWrapper(const MHO_NDArrayWrapper &obj)
Definition: MHO_NDArrayWrapper_0.hh:27
void SetArray(const XValueType &obj)
Setter for array.
Definition: MHO_NDArrayWrapper_0.hh:74
std::size_t GetRank() const
Getter for rank.
Definition: MHO_NDArrayWrapper_0.hh:51
XValueType value_type
Definition: MHO_NDArrayWrapper_0.hh:20
XValueType GetData()
Getter for data.
Definition: MHO_NDArrayWrapper_0.hh:44
virtual ~MHO_NDArrayWrapper()
Definition: MHO_NDArrayWrapper_0.hh:29
MHO_NDArrayWrapper & operator=(const MHO_NDArrayWrapper &rhs)
Definition: MHO_NDArrayWrapper_0.hh:60
std::size_t GetSize() const
Getter for size.
Definition: MHO_NDArrayWrapper_0.hh:58
MHO_NDArrayWrapper()
Definition: MHO_NDArrayWrapper_0.hh:23
std::integral_constant< std::size_t, 0 > rank
Definition: MHO_NDArrayWrapper_0.hh:21
void ZeroArray()
Sets all elements in the array to zero.
Definition: MHO_NDArrayWrapper_0.hh:79
Class MHO_NDArrayWrapper.
Definition: MHO_NDArrayWrapper.hh:42
Definition: MHO_AdhocFlagging.hh:18