FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
ConstStringRef Class Reference

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

#include <ref.hpp>

+ Inheritance diagram for ConstStringRef:

Public Member Functions

 ConstStringRef (const std::wstring *ref)
 
 ConstStringRef (const std::wstring ref)
 
 ConstStringRef (std::wstring_view ref)
 
 ConstStringRef (const wchar_t *ref)
 
 ConstStringRef (const char *ref)
 
 ConstStringRef (std::string_view 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 110 of file ref.hpp.

Constructor & Destructor Documentation

◆ ConstStringRef() [1/6]

ConstStringRef ( const std::wstring * ref)
inline

Definition at line 115 of file ref.hpp.

◆ ConstStringRef() [2/6]

ConstStringRef ( const std::wstring ref)
inline

Definition at line 119 of file ref.hpp.

◆ ConstStringRef() [3/6]

ConstStringRef ( std::wstring_view ref)
inline

Definition at line 121 of file ref.hpp.

◆ ConstStringRef() [4/6]

ConstStringRef ( const wchar_t * ref)
inline

Definition at line 123 of file ref.hpp.

◆ ConstStringRef() [5/6]

ConstStringRef ( const char * ref)
inline

Definition at line 125 of file ref.hpp.

◆ ConstStringRef() [6/6]

ConstStringRef ( std::string_view ref)
inline

Definition at line 127 of file ref.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 37 of file ref.hpp.

◆ operator*()

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

Definition at line 38 of file ref.hpp.

◆ operator->()

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

Definition at line 39 of file ref.hpp.


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