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

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

+ Inheritance diagram for StringRef:

Public Member Functions

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

Detailed Description

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

Definition at line 76 of file ref.hpp.

Constructor & Destructor Documentation

◆ StringRef() [1/2]

StringRef ( const wchar_t *  ref)
inline

Definition at line 80 of file ref.hpp.

◆ StringRef() [2/2]

StringRef ( const char *  ref)
inline

Definition at line 81 of file ref.hpp.

Member Function Documentation

◆ operator()() [1/2]

std::string & operator() ( )
inlineinherited

Definition at line 54 of file ref.hpp.

◆ operator()() [2/2]

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

Definition at line 57 of file ref.hpp.

◆ operator*() [1/2]

std::string & operator* ( )
inlineinherited

Definition at line 55 of file ref.hpp.

◆ operator*() [2/2]

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

Definition at line 58 of file ref.hpp.

◆ operator->() [1/2]

std::string * operator-> ( )
inlineinherited

Definition at line 56 of file ref.hpp.

◆ operator->() [2/2]

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

Definition at line 59 of file ref.hpp.


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