Fermat
Public Types | Public Methods | Static Public Methods | Public Members | Static Public Members | List of all members
cugar::register_array< Iterator, 5 > Struct Template Reference

Detailed description

template<typename Iterator>
struct cugar::register_array< Iterator, 5 >

A statically sized array using registers as backing storage

Template Parameters
Iteratorthe base iterator type

#include <register_array.h>

Public Types

typedef iterator_traits< Iterator >::reference reference_type
 

Public Methods

CUGAR_FORCEINLINE CUGAR_HOST_DEVICE register_array ()
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE register_array (const Iterator &it)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference_type operator[] (const uint32 i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE operator Iterator () const
 

Static Public Methods

CUGAR_FORCEINLINE static CUGAR_HOST_DEVICE reference select (const Iterator &it, const uint32 i)
 

Public Members

Iterator r
 

Static Public Members

static const uint32 DIM = 5
 

Constructor & Destructor Documentation

◆ register_array() [1/2]

template<typename Iterator >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE cugar::register_array< Iterator, 5 >::register_array ( )
inline

constructor

◆ register_array() [2/2]

template<typename Iterator >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE cugar::register_array< Iterator, 5 >::register_array ( const Iterator &  it)
inline

constructor

Member Function Documentation

◆ operator Iterator()

template<typename Iterator >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE cugar::register_array< Iterator, 5 >::operator Iterator ( ) const
inline

automatic conversion to iterator

◆ operator[]()

template<typename Iterator >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference_type cugar::register_array< Iterator, 5 >::operator[] ( const uint32  i) const
inline

indexing operator

◆ select()

template<typename Iterator >
CUGAR_FORCEINLINE static CUGAR_HOST_DEVICE reference cugar::register_array< Iterator, 5 >::select ( const Iterator &  it,
const uint32  i 
)
inlinestatic

indexing operator


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