fastcgi++
|
Wraps a SetContainer object around a shared pointer to an STL container of type T. More...
#include <data.hpp>
Public Member Functions | |
STLSharedSetContainer (const boost::shared_ptr< T > &x) | |
STLSharedSetContainer () | |
void | init () const |
Public Attributes | |
boost::shared_ptr< T > | data |
Shared pointer to the STL container. |
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 shared pointer 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 |
|
inline |
|
inlinevirtual |
Implements ASql::Data::SetContainer.
Definition at line 686 of file data.hpp.
References ASql::Data::STLSharedSetContainer< T >::data, and ASql::Data::STLSharedSetContainer< T >::m_itBuffer.
|
inlineprivatevirtual |
Appends a row to the container and returns a reference to it.
Implements ASql::Data::SetContainer.
Definition at line 668 of file data.hpp.
References ASql::Data::STLSharedSetContainer< T >::data, ASql::Data::STLSharedSetContainer< 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 675 of file data.hpp.
References ASql::Data::STLSharedSetContainer< T >::data, ASql::Data::STLSharedSetContainer< T >::m_buffer, ASql::Data::STLSharedSetContainer< 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 674 of file data.hpp.
References ASql::Data::STLSharedSetContainer< T >::data.
boost::shared_ptr<T> ASql::Data::STLSharedSetContainer< T >::data |
Shared pointer to the STL container.
Definition at line 683 of file data.hpp.
Referenced by ASql::Data::STLSharedSetContainer< T >::init(), ASql::Data::STLSharedSetContainer< T >::manufacture(), ASql::Data::STLSharedSetContainer< T >::pull(), and ASql::Data::STLSharedSetContainer< T >::trim().
|
mutableprivate |
Definition at line 665 of file data.hpp.
Referenced by ASql::Data::STLSharedSetContainer< T >::manufacture(), and ASql::Data::STLSharedSetContainer< T >::pull().
|
mutableprivate |
Definition at line 666 of file data.hpp.
Referenced by ASql::Data::STLSharedSetContainer< T >::init(), and ASql::Data::STLSharedSetContainer< T >::pull().