MySQL 8.4.2
Source Code Documentation
Cached_item_real Class Reference

#include <item.h>

Inheritance diagram for Cached_item_real:
[legend]

Public Member Functions

 Cached_item_real (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 () const
 
Item ** get_item_ptr ()
 

Private Attributes

double value {0.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_real()

Cached_item_real::Cached_item_real ( Item item_par)
inlineexplicit

Member Function Documentation

◆ cmp()

bool Cached_item_real::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

double Cached_item_real::value {0.0}
private

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