18 #ifndef OHMMS_NEW_PARTICLEATTRIB_PEPE_H 19 #define OHMMS_NEW_PARTICLEATTRIB_PEPE_H 32 template<
class T,
typename Alloc = std::allocator<T>>
74 bool get(std::ostream& os)
const override 82 bool put(std::istream& is)
override 89 bool put(xmlNodePtr cur)
override {
return true; }
95 template<
class T,
unsigned D>
101 template<
class T,
unsigned D>
104 return &(a[0][0]) + D * a.size();
111 #endif // OHMMS_PARTICLEATTRIB_PEPE_H
helper functions for EinsplineSetBuilder
PosUnit InUnit
The unit type.
ParticleAttrib & operator=(const RHS &rhs)
assignment operator to enable PETE
Attaches a unit to a Vector for IO.
bool put(xmlNodePtr cur) override
read from an xmlNode
bool put(std::istream &is) override
Specialized to read the unit.
An OhmmsElementBase with extra members to keep track the object/type.
Matrix< T1, C1 > & assign(Matrix< T1, C1 > &lhs, const RHS &rhs)
T * get_last_address(ParticleAttrib< TinyVector< T, D >> &a)
ParticleAttrib(std::initializer_list< T > ts)
OhmmsObject * makeClone() const override
void reset() override
reset member data
Declaraton of Vector<T,Alloc> Manage memory through Alloc directly and allow referencing an existing ...
Declaration of OhmmsObject.
PosUnit
enum class to assist copy and unit conversion operations on position vectors
ParticleAttrib & operator=(const ParticleAttrib &rhs)=default
ParticleAttrib(T *ref, size_t n)
constructor with an initialized ref
T * get_first_address(ParticleAttrib< TinyVector< T, D >> &a)
ParticleAttrib(size_t n=0)
constructor with size n