fastcgi++
|
Wraps a SetContainer object around a new auto-allocated STL container of type T. More...
#include <data.hpp>
Public Member Functions | |
void | init () const |
STLSetContainer () |
Public Attributes | |
T | data |
STL container object of type T that the SetContainer is wrapped around. This is your object. |
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 | |
SetPtrBuilder< typename T::value_type > | m_buffer |
T::iterator | m_itBuffer |
Wraps a SetContainer object around a new auto-allocated 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 577 of file data.hpp.
References ASql::Data::STLSetContainer< T >::data, and ASql::Data::STLSetContainer< T >::m_itBuffer.
|
inlineprivatevirtual |
Appends a row to the container and returns a reference to it.
Implements ASql::Data::SetContainer.
Definition at line 561 of file data.hpp.
References ASql::Data::STLSetContainer< T >::data, ASql::Data::STLSetContainer< 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 568 of file data.hpp.
References ASql::Data::STLSetContainer< T >::data, ASql::Data::STLSetContainer< T >::m_buffer, ASql::Data::STLSetContainer< 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 567 of file data.hpp.
References ASql::Data::STLSetContainer< T >::data.
T ASql::Data::STLSetContainer< T >::data |
STL container object of type T that the SetContainer is wrapped around. This is your object.
Definition at line 576 of file data.hpp.
Referenced by ASql::Data::STLSetContainer< T >::init(), ASql::Data::STLSetContainer< T >::manufacture(), ASql::Data::STLSetContainer< T >::pull(), and ASql::Data::STLSetContainer< T >::trim().
|
mutableprivate |
Definition at line 558 of file data.hpp.
Referenced by ASql::Data::STLSetContainer< T >::manufacture(), and ASql::Data::STLSetContainer< T >::pull().
|
mutableprivate |
Definition at line 559 of file data.hpp.
Referenced by ASql::Data::STLSetContainer< T >::init(), and ASql::Data::STLSetContainer< T >::pull().