MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Diagnostics_information_item Class Reference

#include <sql_get_diagnostics.h>

Inheritance diagram for Diagnostics_information_item:
Collaboration diagram for Diagnostics_information_item:

Public Member Functions

bool set_value (THD *thd, Item **value)

Protected Member Functions

 Diagnostics_information_item (Item *target)
virtual ~Diagnostics_information_item ()

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

A diagnostics information item. Used to associate a specific diagnostics information item to a target variable.

Definition at line 136 of file sql_get_diagnostics.h.

Constructor & Destructor Documentation

Diagnostics_information_item::Diagnostics_information_item ( Item target)
inlineprotected

Constructor, used to represent a diagnostics information item.

Parameters
targetA target that gets the value of this item.

Definition at line 156 of file sql_get_diagnostics.h.

virtual Diagnostics_information_item::~Diagnostics_information_item ( )
inlineprotectedvirtual

Diagnostics_information_item objects are allocated in thd->mem_root. Do not rely on the destructor for any cleanup.

Definition at line 164 of file sql_get_diagnostics.h.

Member Function Documentation

bool Diagnostics_information_item::set_value ( THD *  thd,
Item **  value 
)

Set a value for this item.

Parameters
thdThe current thread.
valueThe obtained value.
Return values
falseon success.
trueon error.

Definition at line 101 of file sql_get_diagnostics.cc.


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