Public Member Functions | Static Public Attributes | Private Attributes | List of all members
PLMD::mdMemoryView< N, STRIDE > Class Template Reference

#include <Pbc.h>

Public Member Functions

 mdMemoryView (double *p, size_t s)
 
MemoryView< STRIDE > operator[] (size_t i)
 
size_t size () const
 

Static Public Attributes

static constexpr size_t extent = N
 
static constexpr size_t stride = STRIDE
 

Private Attributes

double * ptr_
 
size_t size_
 

Constructor & Destructor Documentation

◆ mdMemoryView()

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
PLMD::mdMemoryView< N, STRIDE >::mdMemoryView ( double *  p,
size_t  s 
)
inline

Member Function Documentation

◆ operator[]()

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
MemoryView<STRIDE> PLMD::mdMemoryView< N, STRIDE >::operator[] ( size_t  i)
inline

◆ size()

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
size_t PLMD::mdMemoryView< N, STRIDE >::size ( ) const
inline

Member Data Documentation

◆ extent

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
constexpr size_t PLMD::mdMemoryView< N, STRIDE >::extent = N
staticconstexpr

◆ ptr_

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
double* PLMD::mdMemoryView< N, STRIDE >::ptr_
private

◆ size_

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
size_t PLMD::mdMemoryView< N, STRIDE >::size_
private

◆ stride

template<std::size_t N = helpers::dynamic_extent, std::size_t STRIDE = 3>
constexpr size_t PLMD::mdMemoryView< N, STRIDE >::stride = STRIDE
staticconstexpr

The documentation for this class was generated from the following file: