Loading...
Searching...
No Matches
PLMD::secondarystructure::flexibleMemory< T > Class Template Reference

This is a sort of compact std::vector<std::vector<T>> More...

Inheritance diagram for PLMD::secondarystructure::flexibleMemory< T >:

Public Member Functions

 flexibleMemory ()
 
 flexibleMemory (const flexibleMemory &m)
 
 ~flexibleMemory ()=default
 
void extend (const std::vector< T > &v)
 
constexpr View< const T > get (size_t i) const
 
flexibleMemoryoperator= (const flexibleMemory &m)
 
void removeFromACCDevice () const
 
constexpr size_t size () const
 
void toACCDevice () const
 

Private Member Functions

void update ()
 

Private Attributes

T * d
 
std::vector< T > data {}
 Stores the data.
 
std::vector< size_t > sizes {}
 Stores the boundaries.
 
size_t * sz
 

Detailed Description

template<typename T>
class PLMD::secondarystructure::flexibleMemory< T >

This is a sort of compact std::vector<std::vector<T>>

Constructor & Destructor Documentation

◆ flexibleMemory() [1/2]

template<typename T>
PLMD::secondarystructure::flexibleMemory< T >::flexibleMemory ( )
inline

◆ ~flexibleMemory()

template<typename T>
PLMD::secondarystructure::flexibleMemory< T >::~flexibleMemory ( )
default

◆ flexibleMemory() [2/2]

template<typename T>
PLMD::secondarystructure::flexibleMemory< T >::flexibleMemory ( const flexibleMemory< T > & m)
inline

Member Function Documentation

◆ extend()

template<typename T>
void PLMD::secondarystructure::flexibleMemory< T >::extend ( const std::vector< T > & v)
inline

◆ get()

template<typename T>
View< const T > PLMD::secondarystructure::flexibleMemory< T >::get ( size_t i) const
inlineconstexpr

◆ operator=()

template<typename T>
flexibleMemory & PLMD::secondarystructure::flexibleMemory< T >::operator= ( const flexibleMemory< T > & m)
inline

◆ removeFromACCDevice()

template<typename T>
void PLMD::secondarystructure::flexibleMemory< T >::removeFromACCDevice ( ) const
inline

◆ size()

template<typename T>
size_t PLMD::secondarystructure::flexibleMemory< T >::size ( ) const
inlineconstexpr

◆ toACCDevice()

template<typename T>
void PLMD::secondarystructure::flexibleMemory< T >::toACCDevice ( ) const
inline

◆ update()

template<typename T>
void PLMD::secondarystructure::flexibleMemory< T >::update ( )
inlineprivate

Member Data Documentation

◆ d

template<typename T>
T* PLMD::secondarystructure::flexibleMemory< T >::d
private

◆ data

template<typename T>
std::vector<T> PLMD::secondarystructure::flexibleMemory< T >::data {}
private

Stores the data.

◆ sizes

template<typename T>
std::vector<size_t> PLMD::secondarystructure::flexibleMemory< T >::sizes {}
private

Stores the boundaries.

◆ sz

template<typename T>
size_t* PLMD::secondarystructure::flexibleMemory< T >::sz
private

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