MySQL 5.6.14 Source Code Document
|
#include <sql_array.h>
Public Member Functions | |
Bounds_checked_array (Element_type *el, size_t size) | |
void | reset () |
void | reset (Element_type *array, size_t size) |
void | resize (size_t new_size) |
Element_type & | operator[] (size_t n) |
const Element_type & | operator[] (size_t n) const |
size_t | element_size () const |
size_t | size () const |
bool | is_null () const |
void | pop_front () |
Element_type * | array () const |
bool | operator== (const Bounds_checked_array< Element_type > &rhs) const |
bool | operator!= (const Bounds_checked_array< Element_type > &rhs) const |
A wrapper class which provides array bounds checking. We do not own the array, we simply have a pointer to the first element, and a length.
Element_type | The type of the elements of the container. |
Definition at line 33 of file sql_array.h.
|
inline |
Set a new bound on the array. Does not resize the underlying array, so the new size must be smaller than or equal to the current size.
Definition at line 55 of file sql_array.h.