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

#include <share.h>

Public Member Functions

 ptr_shared ()
 
 ptr_shared (ptr_shared const &other)=default
 
 operator char const * () const
 
 operator bool () const
 
char const * pointer () const
 
char const & operator[] (int i) const
 
ptr_shared operator+ (int i) const
 
ptr_shared operator- (int i) const
 
ptr_sharedoperator+= (int i)
 
ptr_sharedoperator-= (int i)
 
std::ptrdiff_t operator- (ptr_shared const &other)
 
ptr_sharedoperator= (ptr_shared const &other)=default
 
bool operator== (ptr_shared const &other) const
 
bool operator!= (ptr_shared const &other) const
 
bool operator> (ptr_shared const &other) const
 
bool operator< (ptr_shared const &other) const
 

Private Member Functions

 ptr_shared (char const *string)
 

Static Private Member Functions

static ptr_shared share_unsafe (char const *string)
 

Private Attributes

char const * _string
 

Friends

ptr_shared share_unsafe (char const *string)
 

Detailed Description

Definition at line 24 of file share.h.

Constructor & Destructor Documentation

◆ ptr_shared() [1/3]

Inkscape::Util::ptr_shared::ptr_shared ( )
inline

Definition at line 27 of file share.h.

Referenced by share_unsafe().

◆ ptr_shared() [2/3]

Inkscape::Util::ptr_shared::ptr_shared ( ptr_shared const &  other)
default

◆ ptr_shared() [3/3]

Inkscape::Util::ptr_shared::ptr_shared ( char const *  string)
inlineprivate

Definition at line 76 of file share.h.

Member Function Documentation

◆ operator bool()

Inkscape::Util::ptr_shared::operator bool ( ) const
inline

Definition at line 31 of file share.h.

References _string.

◆ operator char const *()

Inkscape::Util::ptr_shared::operator char const * ( ) const
inline

Definition at line 30 of file share.h.

References _string.

◆ operator!=()

bool Inkscape::Util::ptr_shared::operator!= ( ptr_shared const &  other) const
inline

Definition at line 63 of file share.h.

References _string.

◆ operator+()

ptr_shared Inkscape::Util::ptr_shared::operator+ ( int  i) const
inline

Definition at line 36 of file share.h.

References _string, and share_unsafe.

◆ operator+=()

ptr_shared & Inkscape::Util::ptr_shared::operator+= ( int  i)
inline

Definition at line 46 of file share.h.

References _string.

◆ operator-() [1/2]

ptr_shared Inkscape::Util::ptr_shared::operator- ( int  i) const
inline

Definition at line 39 of file share.h.

References _string, and share_unsafe.

◆ operator-() [2/2]

std::ptrdiff_t Inkscape::Util::ptr_shared::operator- ( ptr_shared const &  other)
inline

Definition at line 54 of file share.h.

References _string.

◆ operator-=()

ptr_shared & Inkscape::Util::ptr_shared::operator-= ( int  i)
inline

Definition at line 50 of file share.h.

References _string.

◆ operator<()

bool Inkscape::Util::ptr_shared::operator< ( ptr_shared const &  other) const
inline

Definition at line 69 of file share.h.

References _string.

◆ operator=()

ptr_shared & Inkscape::Util::ptr_shared::operator= ( ptr_shared const &  other)
default

◆ operator==()

bool Inkscape::Util::ptr_shared::operator== ( ptr_shared const &  other) const
inline

Definition at line 60 of file share.h.

References _string.

◆ operator>()

bool Inkscape::Util::ptr_shared::operator> ( ptr_shared const &  other) const
inline

Definition at line 66 of file share.h.

References _string.

◆ operator[]()

char const & Inkscape::Util::ptr_shared::operator[] ( int  i) const
inline

Definition at line 34 of file share.h.

References _string.

◆ pointer()

char const * Inkscape::Util::ptr_shared::pointer ( ) const
inline

◆ share_unsafe()

static ptr_shared Inkscape::Util::ptr_shared::share_unsafe ( char const *  string)
inlinestaticprivate

Definition at line 77 of file share.h.

References ptr_shared().

Friends And Related Symbol Documentation

◆ share_unsafe

ptr_shared share_unsafe ( char const *  string)
friend

Definition at line 90 of file share.h.

Referenced by operator+(), and operator-().

Member Data Documentation

◆ _string

char const* Inkscape::Util::ptr_shared::_string
private

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