https://mooseframework.inl.gov
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
Moose::SerialAccessRange< T > Class Template Reference

#include <SerialAccess.h>

Classes

class  iterator
 

Public Types

typedef SerialAccessValueTypeHelper< typename std::remove_const< T >::type >::value_type R
 Value type of the components of T. More...
 
typedef std::conditional< std::is_const_v< T >, const R, R >::type V
 Value type with the correct constness. More...
 

Public Member Functions

 SerialAccessRange (T &obj)
 
iterator begin () const
 
iterator end () const
 
Voperator[] (int i)
 

Private Attributes

iterator _begin
 
iterator _end
 

Detailed Description

template<typename T>
class Moose::SerialAccessRange< T >

Definition at line 99 of file SerialAccess.h.

Member Typedef Documentation

◆ R

template<typename T >
typedef SerialAccessValueTypeHelper<typename std::remove_const<T>::type>::value_type Moose::SerialAccessRange< T >::R

Value type of the components of T.

Definition at line 103 of file SerialAccess.h.

◆ V

template<typename T >
typedef std::conditional<std::is_const_v<T>, const R, R>::type Moose::SerialAccessRange< T >::V

Value type with the correct constness.

Definition at line 105 of file SerialAccess.h.

Constructor & Destructor Documentation

◆ SerialAccessRange()

template<typename T >
Moose::SerialAccessRange< T >::SerialAccessRange ( T &  obj)
inline

Definition at line 134 of file SerialAccess.h.

135  : _begin(SerialAccess<T>::data(obj)),
136  _end(SerialAccess<T>::data(obj) + SerialAccess<T>::size(obj))
137  {
138  }

Member Function Documentation

◆ begin()

template<typename T >
iterator Moose::SerialAccessRange< T >::begin ( ) const
inline

Definition at line 140 of file SerialAccess.h.

140 { return _begin; }

◆ end()

template<typename T >
iterator Moose::SerialAccessRange< T >::end ( ) const
inline

Definition at line 141 of file SerialAccess.h.

141 { return _end; }

◆ operator[]()

template<typename T >
V& Moose::SerialAccessRange< T >::operator[] ( int  i)
inline

Definition at line 143 of file SerialAccess.h.

143 { return *(&*_begin + i); }

Member Data Documentation

◆ _begin

template<typename T >
iterator Moose::SerialAccessRange< T >::_begin
private

◆ _end

template<typename T >
iterator Moose::SerialAccessRange< T >::_end
private

Definition at line 146 of file SerialAccess.h.

Referenced by Moose::SerialAccessRange< T >::end().


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