MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RecordPool< T, P > Class Template Reference
Collaboration diagram for RecordPool< T, P >:

Public Member Functions

void init (Uint32 type_id, const Pool_context &pc)
void wo_pool_init (Uint32 type_id, const Pool_context &pc)
void arena_pool_init (ArenaAllocator *, Uint32 type_id, const Pool_context &pc)
void getPtr (Ptr< T > &)
void getPtr (ConstPtr< T > &) const
T * getPtr (Uint32 i)
const T * getConstPtr (Uint32 i) const
void getPtr (Ptr< T > &, Uint32 i)
void getPtr (ConstPtr< T > &, Uint32 i) const
bool seize (Ptr< T > &)
bool seize (ArenaHead &, Ptr< T > &)
void release (Uint32 i)
void release (Ptr< T >)
 RecordPool (GroupPool &gp)
void getPtr (Ptr< T > &ptr)
bool seize (Ptr< T > &ptr)
void release (Ptr< T > &ptr)
void freeAllRecPages (bool force)

Public Attributes

SuperPoolm_superPool
SuperPool::RecInfo m_recInfo

Detailed Description

template<typename T, typename P>
class RecordPool< T, P >

Definition at line 164 of file Pool.hpp.

Member Function Documentation

template<typename T, typename P >
void RecordPool< T, P >::getPtr ( Ptr< T > &  ptr)
inline

Update p value for ptr according to i value

Definition at line 287 of file Pool.hpp.

Here is the caller graph for this function:

template<typename T, typename P >
T * RecordPool< T, P >::getPtr ( Uint32  i)
inline

Get pointer for i value

Definition at line 321 of file Pool.hpp.

template<typename T, typename P >
void RecordPool< T, P >::getPtr ( Ptr< T > &  ptr,
Uint32  i 
)
inline

Update p & i value for ptr according to i value

Definition at line 303 of file Pool.hpp.

template<typename T , typename P >
void RecordPool< T, P >::release ( Uint32  i)
inline

Return an object to pool

Definition at line 367 of file Pool.hpp.

template<typename T, typename P >
void RecordPool< T, P >::release ( Ptr< T >  ptr)
inline

Return an object to pool

Definition at line 378 of file Pool.hpp.

template<typename T, typename P >
bool RecordPool< T, P >::seize ( Ptr< T > &  ptr)
inline

Allocate an object from pool - update Ptr

Return i

Definition at line 337 of file Pool.hpp.

template<typename T, typename P >
bool RecordPool< T, P >::seize ( ArenaHead ah,
Ptr< T > &  ptr 
)
inline

Allocate object from arena - update Ptr

Definition at line 352 of file Pool.hpp.


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