Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Util::const_char_ptr Class Reference

Non-owning reference to 'const char*' Main-purpose: avoid overloads of type f(char*, str&), f(str&, char*), f(char*, char*), ... More...

#include <const_char_ptr.h>

Public Member Functions

 const_char_ptr () noexcept
 
 const_char_ptr (std::nullptr_t)
 
 const_char_ptr (const char *const data) noexcept
 
 const_char_ptr (const Glib::ustring &str) noexcept
 
 const_char_ptr (const std::string &str) noexcept
 
 const_char_ptr (const ptr_shared &shared)
 
const char * data () const noexcept
 

Private Attributes

const char *const m_data = nullptr
 

Detailed Description

Non-owning reference to 'const char*' Main-purpose: avoid overloads of type f(char*, str&), f(str&, char*), f(char*, char*), ...

Definition at line 26 of file const_char_ptr.h.

Constructor & Destructor Documentation

◆ const_char_ptr() [1/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( )
inlinenoexcept

Definition at line 28 of file const_char_ptr.h.

◆ const_char_ptr() [2/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( std::nullptr_t  )
inline

Definition at line 29 of file const_char_ptr.h.

◆ const_char_ptr() [3/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( const char *const  data)
inlinenoexcept

Definition at line 30 of file const_char_ptr.h.

◆ const_char_ptr() [4/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( const Glib::ustring &  str)
inlinenoexcept

Definition at line 31 of file const_char_ptr.h.

◆ const_char_ptr() [5/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( const std::string &  str)
inlinenoexcept

Definition at line 32 of file const_char_ptr.h.

◆ const_char_ptr() [6/6]

Inkscape::Util::const_char_ptr::const_char_ptr ( const ptr_shared shared)
inline

Definition at line 33 of file const_char_ptr.h.

Member Function Documentation

◆ data()

Member Data Documentation

◆ m_data

const char* const Inkscape::Util::const_char_ptr::m_data = nullptr
private

Definition at line 37 of file const_char_ptr.h.

Referenced by data().


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