MySQL 8.0.30
Source Code Documentation
Cached_item_int Class Reference

#include <item.h>

Inheritance diagram for Cached_item_int:
[legend]

Public Member Functions

 Cached_item_int (Item *item_par)
 
bool cmp () override
 Compare the value associated with the item with the stored value. More...
 
- Public Member Functions inherited from Cached_item
virtual ~Cached_item ()=default
 
Itemget_item ()
 
Item ** get_item_ptr ()
 

Private Attributes

longlong value {0}
 

Additional Inherited Members

- Public Attributes inherited from Cached_item
bool null_value {true}
 
- Protected Member Functions inherited from Cached_item
 Cached_item (Item *i)
 
- Protected Attributes inherited from Cached_item
Itemitem
 The item whose value to cache. More...
 

Constructor & Destructor Documentation

◆ Cached_item_int()

Cached_item_int::Cached_item_int ( Item item_par)
inlineexplicit

Member Function Documentation

◆ cmp()

bool Cached_item_int::cmp ( )
overridevirtual

Compare the value associated with the item with the stored value.

If they are different, update the stored value with item's value and return true.

Returns
true if item's value and stored value are different. Notice that first call is to establish an initial value and return value should be ignored.

Implements Cached_item.

Member Data Documentation

◆ value

longlong Cached_item_int::value {0}
private

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