FTXUI  5.0.0
C++ functional terminal UI.
ConstStringRef Class Reference

An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation. More...

+ Inheritance diagram for ConstStringRef:

Public Member Functions

 ConstStringRef (const std::wstring *ref)
 
 ConstStringRef (const std::wstring ref)
 
 ConstStringRef (const wchar_t *ref)
 
 ConstStringRef (const char *ref)
 
const std::string & operator() () const
 
const std::string & operator* () const
 
const std::string * operator-> () const
 

Detailed Description

An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation.

Definition at line 86 of file ref.hpp.

Constructor & Destructor Documentation

◆ ConstStringRef() [1/4]

ConstStringRef ( const std::wstring *  ref)
inline

Definition at line 90 of file ref.hpp.

◆ ConstStringRef() [2/4]

ConstStringRef ( const std::wstring  ref)
inline

Definition at line 91 of file ref.hpp.

◆ ConstStringRef() [3/4]

ConstStringRef ( const wchar_t *  ref)
inline

Definition at line 92 of file ref.hpp.

◆ ConstStringRef() [4/4]

ConstStringRef ( const char *  ref)
inline

Definition at line 94 of file ref.hpp.

Member Function Documentation

◆ operator()()

const std::string & operator() ( ) const
inlineinherited

Definition at line 27 of file ref.hpp.

◆ operator*()

const std::string & operator* ( ) const
inlineinherited

Definition at line 28 of file ref.hpp.

◆ operator->()

const std::string * operator-> ( ) const
inlineinherited

Definition at line 29 of file ref.hpp.


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