MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Array< T > Class Template Reference

#include <Array.hpp>

Public Member Functions

 Array (ArrayPool< T > &thePool)
bool seize (Uint32 i)
void release ()
Uint32 getSize () const
bool empty () const
void getPtr (Ptr< T > &, Uint32 i) const
void getPtr (Ptr< T > &) const
T * getPtr (Uint32 i) const

Detailed Description

template<class T>
class Array< T >

Template class used for implementing an array of object retreived from a pool

Definition at line 32 of file Array.hpp.

Member Function Documentation

template<class T>
bool Array< T >::empty ( ) const
inline

empty

Definition at line 55 of file Array.hpp.

template<class T>
void Array< T >::getPtr ( Ptr< T > &  p,
Uint32  i 
) const
inline

Update i & p value according to i

Definition at line 124 of file Array.hpp.

template<class T>
void Array< T >::getPtr ( Ptr< T > &  ptr) const
inline

Update p value for ptr according to i value

Definition at line 140 of file Array.hpp.

template<class T>
T * Array< T >::getPtr ( Uint32  i) const
inline

Get pointer for i value

Definition at line 155 of file Array.hpp.

template<class T >
Uint32 Array< T >::getSize ( ) const
inline

Return current size of array

Definition at line 117 of file Array.hpp.

Here is the caller graph for this function:

template<class T >
void Array< T >::release ( )
inline

Release all object from array

Definition at line 105 of file Array.hpp.

template<class T >
bool Array< T >::seize ( Uint32  i)
inline

Allocate an n objects from pool These can now be addressed with 0 <= ptr.i < n

Definition at line 89 of file Array.hpp.


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