SPH
Public Types | Public Member Functions | List of all members
ThreadLocal< Type >::LocalIterator< T > Class Template Reference

#include <ThreadLocal.h>

Inheritance diagram for ThreadLocal< Type >::LocalIterator< T >:
Iterator< T >

Public Types

using Return = std::conditional_t< std::is_const< T >::value, const Type &, Type & >
 
- Public Types inherited from Iterator< T >
using TCounter = ptrdiff_t
 
using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using difference_type = ptrdiff_t
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 LocalIterator (Iterator< T > iter)
 
INLINE Return operator* () const
 
- Public Member Functions inherited from Iterator< T >
 Iterator ()=default
 
 Iterator (T *data, const T *begin, const T *end)
 
 Iterator (std::nullptr_t)
 
INLINE const TValueoperator* () const
 
INLINE TValueoperator* ()
 
INLINE T * operator-> ()
 
INLINE const T * operator-> () const
 
INLINE operator bool () const
 
INLINE Iterator operator+ (const TCounter n) const
 
INLINE Iterator operator- (const TCounter n) const
 
INLINE void operator+= (const TCounter n)
 
INLINE void operator-= (const TCounter n)
 
INLINE Iteratoroperator++ ()
 
INLINE Iterator operator++ (int)
 
INLINE Iteratoroperator-- ()
 
INLINE Iterator operator-- (int)
 
INLINE difference_type operator- (const Iterator &iter) const
 
INLINE bool operator< (const Iterator &iter) const
 
INLINE bool operator> (const Iterator &iter) const
 
INLINE bool operator<= (const Iterator &iter) const
 
INLINE bool operator>= (const Iterator &iter) const
 
INLINE bool operator== (const Iterator &iter) const
 
INLINE bool operator!= (const Iterator &iter) const
 
INLINE operator Iterator< const T > () const
 

Additional Inherited Members

- Protected Types inherited from Iterator< T >
using TValue = typename UnwrapReferenceType< T >::Type
 
- Protected Member Functions inherited from Iterator< T >
 Iterator (T *data)
 
- Protected Attributes inherited from Iterator< T >
T * data
 

Detailed Description

template<typename Type>
template<typename T>
class ThreadLocal< Type >::LocalIterator< T >

Definition at line 132 of file ThreadLocal.h.

Member Typedef Documentation

◆ Return

template<typename Type >
template<typename T >
using ThreadLocal< Type >::LocalIterator< T >::Return = std::conditional_t<std::is_const<T>::value, const Type&, Type&>

Definition at line 137 of file ThreadLocal.h.

Constructor & Destructor Documentation

◆ LocalIterator()

template<typename Type >
template<typename T >
ThreadLocal< Type >::LocalIterator< T >::LocalIterator ( Iterator< T >  iter)
inline

Definition at line 134 of file ThreadLocal.h.

Member Function Documentation

◆ operator*()

template<typename Type >
template<typename T >
INLINE Return ThreadLocal< Type >::LocalIterator< T >::operator* ( ) const
inline

Definition at line 139 of file ThreadLocal.h.


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