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

#include <Pbc.h>

Public Member Functions

 MemoryView (double *p)
 
double & operator[] (size_t i)
 
const double & operator[] (size_t i) const
 
constexpr size_t size () const
 

Static Public Attributes

static constexpr size_t extent = N
 

Private Attributes

double * ptr_
 

Constructor & Destructor Documentation

◆ MemoryView()

template<std::size_t N = 3>
PLMD::MemoryView< N >::MemoryView ( double *  p)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<std::size_t N = 3>
double& PLMD::MemoryView< N >::operator[] ( size_t  i)
inline

◆ operator[]() [2/2]

template<std::size_t N = 3>
const double& PLMD::MemoryView< N >::operator[] ( size_t  i) const
inline

◆ size()

template<std::size_t N = 3>
constexpr size_t PLMD::MemoryView< N >::size ( ) const
inlineconstexpr

Member Data Documentation

◆ extent

template<std::size_t N = 3>
constexpr size_t PLMD::MemoryView< N >::extent = N
staticconstexpr

◆ ptr_

template<std::size_t N = 3>
double* PLMD::MemoryView< N >::ptr_
private

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