fastcgi++
|
Wraps a SetContainer object around a reference to an STL container of type T. More...
#include <data.hpp>
Public Member Functions | |
void | init () const |
STLSetRefContainer (T &x) |
Private Member Functions | |
Set & | manufacture () |
Appends a row to the container and returns a reference to it. | |
void | trim () |
Pop a row off the end of the container. | |
const Set * | pull () const |
Get a row from the front and move on to the next row. |
Private Attributes | |
T & | data |
SetPtrBuilder< typename T::value_type > | m_buffer |
T::iterator | m_itBuffer |
Wraps a SetContainer object around a reference to an STL container of type T.
This class defines a basic container for types that can be wrapped by the Set class. It is intended for retrieving multi-row results from SQL queries. In order to function the passed container type must have the following member functions push_back(), back(), pop_back() and it's content type must be wrappable by Set as per the instructions there.
Container | type. Must be sequential. |
|
inline |
|
inlinevirtual |
Implements ASql::Data::SetContainer.
Definition at line 646 of file data.hpp.
References ASql::Data::STLSetRefContainer< T >::data, and ASql::Data::STLSetRefContainer< T >::m_itBuffer.
|
inlineprivatevirtual |
Appends a row to the container and returns a reference to it.
Implements ASql::Data::SetContainer.
Definition at line 632 of file data.hpp.
References ASql::Data::STLSetRefContainer< T >::data, ASql::Data::STLSetRefContainer< T >::m_buffer, and ASql::Data::SetPtrBuilder< T >::set().
|
inlineprivatevirtual |
Get a row from the front and move on to the next row.
Implements ASql::Data::SetContainer.
Definition at line 639 of file data.hpp.
References ASql::Data::STLSetRefContainer< T >::data, ASql::Data::STLSetRefContainer< T >::m_buffer, ASql::Data::STLSetRefContainer< T >::m_itBuffer, and ASql::Data::SetPtrBuilder< T >::set().
|
inlineprivatevirtual |
Pop a row off the end of the container.
Implements ASql::Data::SetContainer.
Definition at line 638 of file data.hpp.
References ASql::Data::STLSetRefContainer< T >::data.
|
private |
Definition at line 628 of file data.hpp.
Referenced by ASql::Data::STLSetRefContainer< T >::init(), ASql::Data::STLSetRefContainer< T >::manufacture(), ASql::Data::STLSetRefContainer< T >::pull(), and ASql::Data::STLSetRefContainer< T >::trim().
|
mutableprivate |
Definition at line 629 of file data.hpp.
Referenced by ASql::Data::STLSetRefContainer< T >::manufacture(), and ASql::Data::STLSetRefContainer< T >::pull().
|
mutableprivate |
Definition at line 630 of file data.hpp.
Referenced by ASql::Data::STLSetRefContainer< T >::init(), and ASql::Data::STLSetRefContainer< T >::pull().