MySQL 8.3.0
Source Code Documentation
PFS_buffer_container< T, U, V > Class Template Reference

#include <pfs_buffer_container.h>

Public Types

typedef T value_type
 
typedef U array_type
 
typedef V allocator_type
 
typedef PFS_buffer_const_iterator< T > const_iterator_type
 
typedef PFS_buffer_iterator< T, U, V > iterator_type
 
typedef PFS_buffer_processor< T > processor_type
 
typedef void(* function_type) (value_type *)
 

Public Member Functions

 PFS_buffer_container (allocator_type *allocator)
 
int init (size_t max_size)
 
void cleanup ()
 
size_t get_row_count () const
 
size_t get_row_size () const
 
size_t get_memory () const
 
value_typeallocate (pfs_dirty_state *dirty_state)
 
void deallocate (value_type *pfs)
 
iterator_type iterate ()
 
iterator_type iterate (uint index)
 
void apply (function_type fct)
 
void apply_all (function_type fct)
 
void apply (processor_type &proc)
 
void apply_all (processor_type &proc)
 
value_typeget (uint index)
 
value_typeget (uint index, bool *has_more)
 
value_typesanitize (value_type *unsafe)
 

Public Attributes

ulong m_lost
 

Private Member Functions

value_typescan_next (uint &index, uint *found_index)
 

Private Attributes

size_t m_max
 
array_type m_array
 
allocator_typem_allocator
 

Friends

class PFS_buffer_iterator< T, U, V >
 

Member Typedef Documentation

◆ allocator_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef V PFS_buffer_container< T, U, V >::allocator_type

◆ array_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef U PFS_buffer_container< T, U, V >::array_type

◆ const_iterator_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef PFS_buffer_const_iterator<T> PFS_buffer_container< T, U, V >::const_iterator_type

◆ function_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef void(* PFS_buffer_container< T, U, V >::function_type) (value_type *)

◆ iterator_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef PFS_buffer_iterator<T, U, V> PFS_buffer_container< T, U, V >::iterator_type

◆ processor_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef PFS_buffer_processor<T> PFS_buffer_container< T, U, V >::processor_type

◆ value_type

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
typedef T PFS_buffer_container< T, U, V >::value_type

Constructor & Destructor Documentation

◆ PFS_buffer_container()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
PFS_buffer_container< T, U, V >::PFS_buffer_container ( allocator_type allocator)
inlineexplicit

Member Function Documentation

◆ allocate()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
value_type * PFS_buffer_container< T, U, V >::allocate ( pfs_dirty_state dirty_state)
inline

◆ apply() [1/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::apply ( function_type  fct)
inline

◆ apply() [2/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::apply ( processor_type proc)
inline

◆ apply_all() [1/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::apply_all ( function_type  fct)
inline

◆ apply_all() [2/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::apply_all ( processor_type proc)
inline

◆ cleanup()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::cleanup ( void  )
inline

◆ deallocate()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
void PFS_buffer_container< T, U, V >::deallocate ( value_type pfs)
inline

◆ get() [1/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
value_type * PFS_buffer_container< T, U, V >::get ( uint  index)
inline

◆ get() [2/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
value_type * PFS_buffer_container< T, U, V >::get ( uint  index,
bool *  has_more 
)
inline

◆ get_memory()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
size_t PFS_buffer_container< T, U, V >::get_memory ( ) const
inline

◆ get_row_count()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
size_t PFS_buffer_container< T, U, V >::get_row_count ( ) const
inline

◆ get_row_size()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
size_t PFS_buffer_container< T, U, V >::get_row_size ( ) const
inline

◆ init()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
int PFS_buffer_container< T, U, V >::init ( size_t  max_size)
inline

◆ iterate() [1/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
iterator_type PFS_buffer_container< T, U, V >::iterate ( )
inline

◆ iterate() [2/2]

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
iterator_type PFS_buffer_container< T, U, V >::iterate ( uint  index)
inline

◆ sanitize()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
value_type * PFS_buffer_container< T, U, V >::sanitize ( value_type unsafe)
inline

◆ scan_next()

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
value_type * PFS_buffer_container< T, U, V >::scan_next ( uint &  index,
uint *  found_index 
)
inlineprivate

Friends And Related Function Documentation

◆ PFS_buffer_iterator< T, U, V >

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
friend class PFS_buffer_iterator< T, U, V >
friend

Member Data Documentation

◆ m_allocator

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
allocator_type* PFS_buffer_container< T, U, V >::m_allocator
private

◆ m_array

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
array_type PFS_buffer_container< T, U, V >::m_array
private

◆ m_lost

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
ulong PFS_buffer_container< T, U, V >::m_lost

◆ m_max

template<class T , class U = PFS_buffer_default_array<T>, class V = PFS_buffer_default_allocator<T>>
size_t PFS_buffer_container< T, U, V >::m_max
private

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