Nui
Public Member Functions | Protected Attributes | List of all members
Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT > Class Template Reference

#include <observed_value.hpp>

Public Member Functions

 PointerWrapper (ObservedContainer< ContainerT > *owner, std::size_t pos, T *ptr) noexcept
 
 operator T& ()
 
T & operator* ()
 
T const & operator* () const
 
T * operator-> ()
 
T const * operator-> () const
 
T & get ()
 
T const & getReadonly ()
 
void operator= (T *ptr)
 

Protected Attributes

ObservedContainer< ContainerT > * owner_
 
std::size_t pos_
 
T * ptr_
 

Constructor & Destructor Documentation

◆ PointerWrapper()

template<typename T , typename ContainerT >
Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::PointerWrapper ( ObservedContainer< ContainerT > *  owner,
std::size_t  pos,
T *  ptr 
)
inlinenoexcept

Member Function Documentation

◆ get()

template<typename T , typename ContainerT >
T& Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::get ( )
inline

◆ getReadonly()

template<typename T , typename ContainerT >
T const& Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::getReadonly ( )
inline

◆ operator T&()

template<typename T , typename ContainerT >
Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator T& ( )
inline

◆ operator*() [1/2]

template<typename T , typename ContainerT >
T& Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator* ( )
inline

◆ operator*() [2/2]

template<typename T , typename ContainerT >
T const& Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator* ( ) const
inline

◆ operator->() [1/2]

template<typename T , typename ContainerT >
T* Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator-> ( )
inline

◆ operator->() [2/2]

template<typename T , typename ContainerT >
T const* Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator-> ( ) const
inline

◆ operator=()

template<typename T , typename ContainerT >
void Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::operator= ( T *  ptr)
inline

Member Data Documentation

◆ owner_

template<typename T , typename ContainerT >
ObservedContainer<ContainerT>* Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::owner_
protected

◆ pos_

template<typename T , typename ContainerT >
std::size_t Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::pos_
protected

◆ ptr_

template<typename T , typename ContainerT >
T* Nui::ContainerWrapUtility::PointerWrapper< T, ContainerT >::ptr_
protected

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