26#ifndef dftefeMemoryStorage_h
27#define dftefeMemoryStorage_h
36 template <
typename ValueType, dftefe::utils::MemorySpace memorySpace>
199 data() const noexcept;
270 const
MemoryStorage<ValueType, memorySpaceSrc> &srcMemoryStorage);
319 copyTo(ValueType *dst) const;
415 copyTo(std::vector<ValueType> &dst) const;
447 copyTo(std::vector<ValueType> &dst,
465 copyFrom(const std::vector<ValueType> &src);
491 copyFrom(const std::vector<ValueType> &src,
518 template <typename ValueType, utils::
MemorySpace memorySpaceDst>
525#include "MemoryStorage.t.cpp"
Definition: MemoryStorage.h:38
const ValueType & const_reference
Definition: MemoryStorage.h:58
const ValueType * const_iterator
Definition: MemoryStorage.h:60
ValueType * data() noexcept
Return the raw pointer to the Vector.
Definition: MemoryStorage.t.cpp:198
size_type d_size
Definition: MemoryStorage.h:499
void resize(size_type size, ValueType initVal=ValueType())
Deallocates and then resizes Vector with new size and initial value arguments.
Definition: MemoryStorage.t.cpp:52
ValueType * iterator
Definition: MemoryStorage.h:59
iterator begin()
Return iterator pointing to the beginning of point data.
Definition: MemoryStorage.t.cpp:117
MemoryStorage & operator=(const MemoryStorage &rhs)
Copy assignment operator.
Definition: MemoryStorage.t.cpp:145
ValueType * pointer
Definition: MemoryStorage.h:56
void setValue(const ValueType val)
Set all the entries to a given value.
Definition: MemoryStorage.t.cpp:92
iterator end()
Return iterator pointing to the end of Vector data.
Definition: MemoryStorage.t.cpp:131
ValueType & reference
Definition: MemoryStorage.h:57
ValueType * d_data
Definition: MemoryStorage.h:498
size_type size() const
Returns the dimension of the Vector.
Definition: MemoryStorage.t.cpp:110
ValueType value_type
A class template to provide an interface that can act similar to STL vectors but with different Memor...
Definition: MemoryStorage.h:55
~MemoryStorage()
Destructor.
Definition: MemoryStorage.t.cpp:73
void copyFrom(const MemoryStorage< ValueType, memorySpaceSrc > &srcMemoryStorage)
Copies data from a MemoryStorage object in a different memory space. This provides a seamless interfa...
Definition: MemoryStorage.t.cpp:250
void copyTo(MemoryStorage< ValueType, memorySpaceDst > &dstMemoryStorage) const
Copies the data to a MemoryStorage object in a different memory space. This provides a seamless inter...
Definition: MemoryStorage.t.cpp:212
MemorySpace
Definition: MemorySpaceType.h:37
MemoryStorage< ValueType, memorySpaceDst > memoryStorageFromSTL(const std::vector< ValueType > &src)
Create a MemoryStorage object from an input C++ STL vector.
Definition: MemoryStorage.t.cpp:409
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8