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

Classes

struct  ConstDataBufferIterator
struct  DataBufferIterator
struct  Head
struct  HeadPOD
struct  Segment

Public Types

typedef Pool DataBufferPool
typedef DataBufferIterator Iterator

Public Member Functions

 DataBuffer2 (DataBufferPool &)
bool seize (Uint32 n)
void release ()
Uint32 getSize () const
bool isEmpty () const
void print (FILE *) const
bool first (DataBufferIterator &)
bool next (DataBufferIterator &)
bool next (DataBufferIterator &, Uint32 hops)
bool nextPool (DataBufferIterator &)
bool position (DataBufferIterator &it, Uint32 pos)
bool first (ConstDataBufferIterator &) const
bool next (ConstDataBufferIterator &) const
bool next (ConstDataBufferIterator &, Uint32 hops) const
bool nextPool (ConstDataBufferIterator &) const
bool importable (const DataBufferIterator, Uint32 len)
bool import (const DataBufferIterator &, const Uint32 *src, Uint32 len)
bool append (const Uint32 *src, Uint32 len)

Static Public Member Functions

static Uint32 getSegmentSize ()
static void createRecordInfo (Record_info &ri, Uint32 type_id)

Protected Attributes

Head head
DataBufferPoolthePool

Detailed Description

template<Uint32 sz, typename Pool>
class DataBuffer2< sz, Pool >

Definition at line 28 of file DataBuffer2.hpp.

Constructor & Destructor Documentation

template<Uint32 sz, typename Pool >
DataBuffer2< sz, Pool >::DataBuffer2 ( DataBufferPool p)
inline

Constructor

Definition at line 322 of file DataBuffer2.hpp.

Member Function Documentation

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::append ( const Uint32 *  src,
Uint32  len 
)
inline

Increases size with appends len words

Returns
true if success, false otherwise.

Definition at line 271 of file DataBuffer2.hpp.

Here is the call graph for this function:

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::first ( DataBufferIterator it)
inline

Iterator hops Number of words to jump forward

Note
DataBuffer::next returns false if applied to last word.

Definition at line 441 of file DataBuffer2.hpp.

Here is the caller graph for this function:

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::first ( ConstDataBufferIterator it) const
inline

Iterator

Definition at line 474 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
Uint32 DataBuffer2< sz, Pool >::getSegmentSize ( )
inlinestatic

Get segment size in words (template argument)

Definition at line 434 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
Uint32 DataBuffer2< sz, Pool >::getSize ( ) const
inline

Get size of databuffer, in words

Definition at line 563 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::import ( const DataBufferIterator it,
const Uint32 *  src,
Uint32  len 
)
inline

Stores len no of words starting at location src in databuffer at position given in iterator.

Returns
true if success, false otherwise.
Note
Iterator is not advanced.

Definition at line 234 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::importable ( const DataBufferIterator  it,
Uint32  len 
)
inline

Returns true if it is possible to store len no of words at position given in iterator.

Definition at line 213 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::isEmpty ( ) const
inline

Check if buffer is empty

Definition at line 570 of file DataBuffer2.hpp.

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::position ( DataBufferIterator it,
Uint32  pos 
)
inline

Set iterator to position

Definition at line 219 of file DataBuffer2.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<Uint32 sz, typename Pool >
bool DataBuffer2< sz, Pool >::seize ( Uint32  n)
inline

Seize n words, Release

Definition at line 328 of file DataBuffer2.hpp.

Here is the caller graph for this function:


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