#include <item_cmpfunc.h>
Inheritance diagram for cmp_item:


Public Member Functions | |
| cmp_item () | |
| virtual | ~cmp_item () |
| virtual void | store_value (Item *item)=0 |
| virtual int | cmp (Item *item)=0 |
| virtual int | compare (cmp_item *item)=0 |
| virtual cmp_item * | make_same ()=0 |
| virtual void | store_value_by_template (cmp_item *tmpl, Item *item) |
Static Public Member Functions | |
| static cmp_item * | get_comparator (Item_result type, CHARSET_INFO *cs) |
Public Attributes | |
| CHARSET_INFO * | cmp_charset |
Definition at line 775 of file item_cmpfunc.h.
| cmp_item::cmp_item | ( | ) | [inline] |
Definition at line 779 of file item_cmpfunc.h.
References cmp_charset, and my_charset_bin.
00779 { cmp_charset= &my_charset_bin; }
| virtual cmp_item::~cmp_item | ( | ) | [inline, virtual] |
| virtual int cmp_item::cmp | ( | Item * | item | ) | [pure virtual] |
Implemented in cmp_item_sort_string, cmp_item_int, cmp_item_real, cmp_item_decimal, cmp_item_row, and cmp_item_sort_string_in_static.
Referenced by Item_equal::val_int(), and Item_func_in::val_int().
Here is the caller graph for this function:

| virtual int cmp_item::compare | ( | cmp_item * | item | ) | [pure virtual] |
Implemented in cmp_item_sort_string, cmp_item_int, cmp_item_real, cmp_item_decimal, cmp_item_row, and cmp_item_sort_string_in_static.
| cmp_item * cmp_item::get_comparator | ( | Item_result | type, | |
| CHARSET_INFO * | cs | |||
| ) | [static] |
Definition at line 2249 of file item_cmpfunc.cc.
References DBUG_ASSERT, DECIMAL_RESULT, INT_RESULT, REAL_RESULT, ROW_RESULT, and STRING_RESULT.
Referenced by Item_equal::fix_length_and_dec(), Item_func_in::fix_length_and_dec(), and cmp_item_row::store_value().
02251 { 02252 switch (type) { 02253 case STRING_RESULT: 02254 return new cmp_item_sort_string(cs); 02255 case INT_RESULT: 02256 return new cmp_item_int; 02257 case REAL_RESULT: 02258 return new cmp_item_real; 02259 case ROW_RESULT: 02260 return new cmp_item_row; 02261 case DECIMAL_RESULT: 02262 return new cmp_item_decimal; 02263 default: 02264 DBUG_ASSERT(0); 02265 break; 02266 } 02267 return 0; // to satisfy compiler :) 02268 }
Here is the caller graph for this function:

| virtual cmp_item* cmp_item::make_same | ( | ) | [pure virtual] |
Implemented in cmp_item_sort_string, cmp_item_int, cmp_item_real, cmp_item_decimal, cmp_item_row, and cmp_item_sort_string_in_static.
Referenced by cmp_item_row::store_value_by_template().
Here is the caller graph for this function:

| virtual void cmp_item::store_value | ( | Item * | item | ) | [pure virtual] |
Implemented in cmp_item_sort_string, cmp_item_int, cmp_item_real, cmp_item_decimal, cmp_item_row, and cmp_item_sort_string_in_static.
Referenced by cmp_item_row::store_value(), store_value_by_template(), Item_equal::val_int(), and Item_func_in::val_int().
Here is the caller graph for this function:

Reimplemented in cmp_item_row.
Definition at line 787 of file item_cmpfunc.h.
References store_value().
Referenced by cmp_item_row::store_value_by_template().
00788 { 00789 store_value(item); 00790 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 778 of file item_cmpfunc.h.
Referenced by cmp_item_sort_string::cmp(), cmp_item(), cmp_item_string::cmp_item_string(), cmp_item_sort_string_in_static::compare(), cmp_item_sort_string::compare(), Item_equal::fix_length_and_dec(), Item_func_in::fix_length_and_dec(), cmp_item_sort_string_in_static::make_same(), and cmp_item_sort_string::make_same().
1.4.7

