My Project
|
#include <sql_prepare.h>
Public Member Functions | |
operator List< Ed_row > & () | |
unsigned int | size () const |
Ed_result_set (List< Ed_row > *rows_arg, size_t column_count, MEM_ROOT *mem_root_arg) | |
~Ed_result_set () | |
size_t | get_field_count () const |
Static Public Member Functions | |
static void | operator delete (void *ptr, size_t size) throw () |
Friends | |
class | Ed_connection |
Ed_result_set -- a container with result set rows.
Ed_result_set::Ed_result_set | ( | List< Ed_row > * | rows_arg, |
size_t | column_count_arg, | ||
MEM_ROOT * | mem_root_arg | ||
) |
Initialize an instance of Ed_result_set.
Instances of the class, as well as all result set rows, are always allocated in the memory root passed over as the second argument. In the constructor, we take over ownership of the memory root. It will be freed when the class is destroyed.
sic: Ed_result_est is not designed to be allocated on stack.
Ed_result_set::~Ed_result_set | ( | ) | [inline] |
We don't call member destructors, they all are POD types.
void Ed_result_set::operator delete | ( | void * | ptr, |
size_t | size | ||
) | throw () [static] |
Use operator delete to free memory of Ed_result_set. Accessing members of a class after the class has been destroyed is a violation of the C++ standard but is commonly used in the server code.
Reimplemented from Sql_alloc.