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."
16 template<
typename XValueType >
22 typedef std::integral_constant< std::size_t, 0 >
rank;
59 std::size_t
GetSize()
const {
return 1; };
75 void SetArray(
const XValueType& obj) { fData = obj; }
80 void ZeroArray() { std::memset(&fData, 0,
sizeof(XValueType)); }
Class MHO_ExtensibleElement.
Definition: MHO_ExtensibleElement.hh:60
XValueType fData
Definition: MHO_NDArrayWrapper_0.hh:83
void SetData(const XValueType &value)
Setter for data.
Definition: MHO_NDArrayWrapper_0.hh:38
MHO_NDArrayWrapper(const XValueType &data)
Definition: MHO_NDArrayWrapper_0.hh:26
MHO_NDArrayWrapper(const MHO_NDArrayWrapper &obj)
Definition: MHO_NDArrayWrapper_0.hh:28
void SetArray(const XValueType &obj)
Setter for array.
Definition: MHO_NDArrayWrapper_0.hh:75
std::size_t GetRank() const
Getter for rank.
Definition: MHO_NDArrayWrapper_0.hh:52
XValueType value_type
Definition: MHO_NDArrayWrapper_0.hh:21
XValueType GetData()
Getter for data.
Definition: MHO_NDArrayWrapper_0.hh:45
virtual ~MHO_NDArrayWrapper()
Definition: MHO_NDArrayWrapper_0.hh:30
MHO_NDArrayWrapper & operator=(const MHO_NDArrayWrapper &rhs)
Definition: MHO_NDArrayWrapper_0.hh:61
std::size_t GetSize() const
Getter for size.
Definition: MHO_NDArrayWrapper_0.hh:59
MHO_NDArrayWrapper()
Definition: MHO_NDArrayWrapper_0.hh:24
std::integral_constant< std::size_t, 0 > rank
Definition: MHO_NDArrayWrapper_0.hh:22
void ZeroArray()
Sets all elements in the array to zero.
Definition: MHO_NDArrayWrapper_0.hh:80
Class MHO_NDArrayWrapper.
Definition: MHO_NDArrayWrapper.hh:42
Definition: MHO_ChannelLabeler.hh:17