My Project
Public Member Functions | Static Public Member Functions | Friends
Ed_result_set Class Reference

#include <sql_prepare.h>

Inheritance diagram for Ed_result_set:
Sql_alloc

List of all members.

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

Detailed Description

Ed_result_set -- a container with result set rows.

Todo:
Implement support for result set metadata and automatic type conversion.

Constructor & Destructor Documentation

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.

We don't call member destructors, they all are POD types.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines