MySQL 9.3.0
Source Code Documentation
mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived > Class Template Reference

Iterator wrapper, for serializing arrays of structures to string. More...

#include <utils_sqlstring.h>

Public Member Functions

 CustomContainerIterator (const Iterator &it)
 
 CustomContainerIterator (const CustomContainerIterator &other)
 
 CustomContainerIterator (Iterator &&it)
 
virtual ~CustomContainerIterator ()=default
 
CustomContainerIteratoroperator= (CustomContainerIterator &&other)
 
CustomContainerIteratoroperator= (const CustomContainerIterator &other)
 
Derived & operator++ ()
 
bool operator!= (const CustomContainerIterator &other) const
 

Static Public Member Functions

static std::pair< Derived, Derived > from_iterators (Iterator begin, Iterator end)
 
template<typename Container >
static std::pair< Derived, Derived > from_container (Container &c)
 

Protected Attributes

Iterator it_
 

Detailed Description

template<typename Iterator, typename Derived>
class mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >

Iterator wrapper, for serializing arrays of structures to string.

This class forwards some operators that are defined in Iterator class, still the class that derives from CustomContainerIterator, must define operator* to change the structure to string or other simple type.

Constructor & Destructor Documentation

◆ CustomContainerIterator() [1/3]

template<typename Iterator , typename Derived >
mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::CustomContainerIterator ( const Iterator &  it)
inline

◆ CustomContainerIterator() [2/3]

template<typename Iterator , typename Derived >
mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::CustomContainerIterator ( const CustomContainerIterator< Iterator, Derived > &  other)
inline

◆ CustomContainerIterator() [3/3]

template<typename Iterator , typename Derived >
mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::CustomContainerIterator ( Iterator &&  it)
inline

◆ ~CustomContainerIterator()

template<typename Iterator , typename Derived >
virtual mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::~CustomContainerIterator ( )
virtualdefault

Member Function Documentation

◆ from_container()

template<typename Iterator , typename Derived >
template<typename Container >
std::pair< Derived, Derived > mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::from_container ( Container &  c)
static

◆ from_iterators()

template<typename Iterator , typename Derived >
std::pair< Derived, Derived > mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::from_iterators ( Iterator  begin,
Iterator  end 
)
static

◆ operator!=()

template<typename Iterator , typename Derived >
bool mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::operator!= ( const CustomContainerIterator< Iterator, Derived > &  other) const
inline

◆ operator++()

template<typename Iterator , typename Derived >
Derived & mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::operator++ ( )
inline

◆ operator=() [1/2]

template<typename Iterator , typename Derived >
CustomContainerIterator & mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::operator= ( const CustomContainerIterator< Iterator, Derived > &  other)
inline

◆ operator=() [2/2]

template<typename Iterator , typename Derived >
CustomContainerIterator & mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::operator= ( CustomContainerIterator< Iterator, Derived > &&  other)
inline

Member Data Documentation

◆ it_

template<typename Iterator , typename Derived >
Iterator mysqlrouter::sqlstring::CustomContainerIterator< Iterator, Derived >::it_
protected

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