aimstil  5.0.5
til::xsr::Integer_access< TCollection, TIndex > Class Template Reference

Integer access over a random-access container. More...

#include <cathier/accessors.h>

Public Types

typedef TIndex index_type
 
typedef TCollection::value_type value_type
 
typedef TCollection::reference reference
 
typedef TCollection::const_reference const_reference
 

Public Member Functions

 Integer_access (TCollection &data)
 
reference operator() (index_type i)
 
const_reference operator() (index_type i) const
 

Detailed Description

template<typename TCollection, typename TIndex = std::size_t>
class til::xsr::Integer_access< TCollection, TIndex >

Integer access over a random-access container.

Definition at line 28 of file accessors.h.

Member Typedef Documentation

◆ const_reference

template<typename TCollection , typename TIndex = std::size_t>
typedef TCollection::const_reference til::xsr::Integer_access< TCollection, TIndex >::const_reference

Definition at line 34 of file accessors.h.

◆ index_type

template<typename TCollection , typename TIndex = std::size_t>
typedef TIndex til::xsr::Integer_access< TCollection, TIndex >::index_type

Definition at line 31 of file accessors.h.

◆ reference

template<typename TCollection , typename TIndex = std::size_t>
typedef TCollection::reference til::xsr::Integer_access< TCollection, TIndex >::reference

Definition at line 33 of file accessors.h.

◆ value_type

template<typename TCollection , typename TIndex = std::size_t>
typedef TCollection::value_type til::xsr::Integer_access< TCollection, TIndex >::value_type

Definition at line 32 of file accessors.h.

Constructor & Destructor Documentation

◆ Integer_access()

template<typename TCollection , typename TIndex = std::size_t>
til::xsr::Integer_access< TCollection, TIndex >::Integer_access ( TCollection &  data)
inline

Definition at line 40 of file accessors.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename TCollection , typename TIndex = std::size_t>
reference til::xsr::Integer_access< TCollection, TIndex >::operator() ( index_type  i)
inline

Definition at line 43 of file accessors.h.

◆ operator()() [2/2]

template<typename TCollection , typename TIndex = std::size_t>
const_reference til::xsr::Integer_access< TCollection, TIndex >::operator() ( index_type  i) const
inline

Definition at line 44 of file accessors.h.


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