GCC Middle and Back End API Reference
owned_nullable_string Class Reference

Public Member Functions

 owned_nullable_string ()
 
 owned_nullable_string (const char *str)
 
 owned_nullable_string (const owned_nullable_string &other)
 
 owned_nullable_string (owned_nullable_string &&other)
 
 ~owned_nullable_string ()
 
void set (const char *str)
 
const char * get_str () const
 
char * xstrdup () const
 
bool operator< (const owned_nullable_string &other) const
 

Private Attributes

char * m_str
 

Constructor & Destructor Documentation

◆ owned_nullable_string() [1/4]

owned_nullable_string::owned_nullable_string ( )
inline

◆ owned_nullable_string() [2/4]

owned_nullable_string::owned_nullable_string ( const char * str)
inline

References m_str, and xstrdup().

◆ owned_nullable_string() [3/4]

owned_nullable_string::owned_nullable_string ( const owned_nullable_string & other)
inline

◆ owned_nullable_string() [4/4]

owned_nullable_string::owned_nullable_string ( owned_nullable_string && other)
inline

References m_str, and owned_nullable_string().

◆ ~owned_nullable_string()

owned_nullable_string::~owned_nullable_string ( )
inline

References free(), and m_str.

Member Function Documentation

◆ get_str()

const char * owned_nullable_string::get_str ( ) const
inline

References m_str.

◆ operator<()

bool owned_nullable_string::operator< ( const owned_nullable_string & other) const
inline

References m_str, and owned_nullable_string().

◆ set()

void owned_nullable_string::set ( const char * str)
inline

References free(), m_str, and xstrdup().

◆ xstrdup()

char * owned_nullable_string::xstrdup ( ) const
inline

Field Documentation

◆ m_str


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