DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::data_vector_base< T, Derived > Class Template Reference

CRTP base offering operator[] / at on top of a derived's data() and size() accessors. Used by both #host_device_vector_r1 and (implicitly) #host_device_vector_r0. More...

#include <Vector.hpp>

Inheritance diagram for DNDS::data_vector_base< T, Derived >:
[legend]

Public Member Functions

T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
const T & at (size_t i) const
 
T & at (size_t i)
 

Detailed Description

template<class T, class Derived>
class DNDS::data_vector_base< T, Derived >

CRTP base offering operator[] / at on top of a derived's data() and size() accessors. Used by both #host_device_vector_r1 and (implicitly) #host_device_vector_r0.

Definition at line 178 of file Vector.hpp.

Member Function Documentation

◆ at() [1/2]

template<class T , class Derived >
T & DNDS::data_vector_base< T, Derived >::at ( size_t  i)
inline

Definition at line 195 of file Vector.hpp.

Here is the call graph for this function:

◆ at() [2/2]

template<class T , class Derived >
const T & DNDS::data_vector_base< T, Derived >::at ( size_t  i) const
inline

Definition at line 188 of file Vector.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator[]() [1/2]

template<class T , class Derived >
T & DNDS::data_vector_base< T, Derived >::operator[] ( size_t  i)
inline

Definition at line 184 of file Vector.hpp.

Here is the caller graph for this function:

◆ operator[]() [2/2]

template<class T , class Derived >
const T & DNDS::data_vector_base< T, Derived >::operator[] ( size_t  i) const
inline

Definition at line 186 of file Vector.hpp.


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