FTXUI  5.0.0
C++ functional terminal UI.
Ref< T > Class Template Reference

An adapter. Own or reference an mutable object. More...

Public Member Functions

 Ref ()=default
 
 Ref (T t)
 
 Ref (T *t)
 
 ~Ref ()=default
 
Refoperator= (Ref &&) noexcept=default
 
 Ref (const Ref< T > &)=default
 
 Ref (Ref< T > &&) noexcept=default
 
Ref< T > & operator= (const Ref< T > &)=default
 
T & operator() ()
 
T & operator* ()
 
T * operator-> ()
 
const T & operator() () const
 
const T & operator* () const
 
const T * operator-> () const
 

Detailed Description

template<typename T>
class ftxui::Ref< T >

An adapter. Own or reference an mutable object.

Definition at line 46 of file ref.hpp.

Constructor & Destructor Documentation

◆ Ref() [1/5]

Ref ( )
default

◆ Ref() [2/5]

Ref ( t)
inline

Definition at line 49 of file ref.hpp.

◆ Ref() [3/5]

Ref ( T *  t)
inline

Definition at line 50 of file ref.hpp.

◆ ~Ref()

~Ref ( )
default

◆ Ref() [4/5]

Ref ( const Ref< T > &  )
default

◆ Ref() [5/5]

Ref ( Ref< T > &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

Ref& operator= ( Ref< T > &&  )
defaultnoexcept

◆ operator=() [2/2]

Ref<T>& operator= ( const Ref< T > &  )
default

◆ operator()() [1/2]

T& operator() ( )
inline

Definition at line 60 of file ref.hpp.

◆ operator*() [1/2]

T& operator* ( )
inline

Definition at line 61 of file ref.hpp.

◆ operator->() [1/2]

T* operator-> ( )
inline

Definition at line 62 of file ref.hpp.

◆ operator()() [2/2]

const T& operator() ( ) const
inline

Definition at line 63 of file ref.hpp.

◆ operator*() [2/2]

const T& operator* ( ) const
inline

Definition at line 64 of file ref.hpp.

◆ operator->() [2/2]

const T* operator-> ( ) const
inline

Definition at line 65 of file ref.hpp.


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