MySQL 9.1.0
Source Code Documentation
id_name_t Class Reference

SQL identifier name wrapper for pretty-printing. More...

#include <dict0mem.h>

Public Member Functions

 id_name_t ()
 Default constructor. More...
 
 id_name_t (const char *name)
 Constructor. More...
 
id_name_toperator= (const char *name)
 Assignment operator. More...
 
 operator const char * () const
 Implicit type conversion. More...
 
const char * operator() () const
 Explicit type conversion. More...
 

Private Attributes

const char * m_name
 The name in internal representation. More...
 

Detailed Description

SQL identifier name wrapper for pretty-printing.

Constructor & Destructor Documentation

◆ id_name_t() [1/2]

id_name_t::id_name_t ( )
inline

Default constructor.

◆ id_name_t() [2/2]

id_name_t::id_name_t ( const char *  name)
inlineexplicit

Constructor.

Parameters
[in]nameidentifier to assign

Member Function Documentation

◆ operator const char *()

id_name_t::operator const char * ( ) const
inline

Implicit type conversion.

Returns
the name

◆ operator()()

const char * id_name_t::operator() ( void  ) const
inline

Explicit type conversion.

Returns
the name

◆ operator=()

id_name_t & id_name_t::operator= ( const char *  name)
inline

Assignment operator.

Parameters
[in]nameidentifier to assign

Member Data Documentation

◆ m_name

const char* id_name_t::m_name
private

The name in internal representation.


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