NimbleSM
NimbleSM is a solid mechanics simulation code for dynamic systems
Loading...
Searching...
No Matches
nimble::quanta::indexer_t< T * > Struct Template Reference

#include <nimble.quanta.h>

Public Member Functions

constexpr indexer_t (T *const ptr)
 
 indexer_t (const indexer_t &)=default
 
template<class int_t>
T & operator() (int_t &&index) const
 
constexpr indexer_t (T *&list)
 
constexpr indexer_t (const indexer_t &)=default
 
auto operator() (int_t &&index) const -> decltype(list[index])
 

Public Attributes

T *const ptr
 
T *& list
 

Constructor & Destructor Documentation

◆ indexer_t() [1/4]

template<class T>
nimble::quanta::indexer_t< T * >::indexer_t ( T *const ptr)
inlineconstexpr
99: ptr(ptr) {}
T *const ptr
Definition nimble.quanta.h:98

◆ indexer_t() [2/4]

template<class T>
nimble::quanta::indexer_t< T * >::indexer_t ( const indexer_t< T * > & )
default

◆ indexer_t() [3/4]

nimble::quanta::indexer_t< T * >::indexer_t ( T * & list)
inlineconstexpr
85: list(list) {}
T *& list
Definition nimble.quanta.h:84

◆ indexer_t() [4/4]

nimble::quanta::indexer_t< T * >::indexer_t ( const indexer_t< T * > & )
constexprdefault

Member Function Documentation

◆ operator()() [1/2]

template<class T>
template<class int_t>
T & nimble::quanta::indexer_t< T * >::operator() ( int_t && index) const
inline
104 {
105 return ptr[index];
106 }
Definition nimble.quanta.h:83

◆ operator()() [2/2]

auto nimble::quanta::indexer_t< T * >::operator() ( int_t && index) const-> decltype(list[index])
inline
90 {
91 return list[index];
92 }

Member Data Documentation

◆ list

T *& nimble::quanta::indexer_t< T * >::list

◆ ptr

template<class T>
T* const nimble::quanta::indexer_t< T * >::ptr

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