The RooStringView is a wrapper around a C-style string that can also be constructed from a std::string
or a TString.
As such, it serves as a drop-in replacement for const char*
in public RooFit interfaces, keeping the possibility to pass a C-style string without copying but also accepting a std::string
.
Definition at line 27 of file RooStringView.h.
Public Member Functions | |
RooStringView (const char *str) | |
RooStringView (std::string &&str) | |
RooStringView (std::string const &str) | |
RooStringView (TString const &str) | |
const char * | c_str () const |
operator const char * () | |
Private Attributes | |
const char * | _cstr |
std::shared_ptr< std::string > | _strp |
#include <RooStringView.h>
|
inline |
Definition at line 29 of file RooStringView.h.
|
inline |
Definition at line 30 of file RooStringView.h.
|
inline |
Definition at line 31 of file RooStringView.h.
|
inline |
Definition at line 33 of file RooStringView.h.
|
inline |
Definition at line 34 of file RooStringView.h.
|
inline |
Definition at line 35 of file RooStringView.h.
|
private |
Definition at line 40 of file RooStringView.h.
|
private |
Definition at line 39 of file RooStringView.h.