fastcgi++
|
Wraps a Set object around a pointer to a dataset of type T. More...
#include <data.hpp>
Public Member Functions | |
SetPtrBuilder () | |
Default constructor set's the pointer to null. | |
SetPtrBuilder (const T &x) | |
Set the pointer to the address of the object referenced to by x. | |
SetPtrBuilder (SetPtrBuilder &x) | |
void | set (const T &data) |
Set the pointer to the address of the object referenced to by x. | |
void | clear () |
Set the pointer to null. | |
operator bool () const | |
Return true if the pointer is not null. |
Private Member Functions | |
virtual size_t | numberOfSqlElements () const |
Wrapper function for the numberOfSqlElements() function in the data object. | |
virtual Index | getSqlIndex (const size_t index) const |
Wrapper function for the getSqlIndex() function in the data object. |
Private Attributes | |
const T * | m_data |
Pointer to the dataset. |
Wraps a Set object around a pointer to a dataset of type T.
This has the one advantage over SetRefBuilder in that the dataset pointed to can be changed with destroying/rebuilding wrapper object.
T | object type to point to. Must have numberOfSqlElements() and getSqlIndex() function defined as per the instruction in Data::Set. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivatevirtual |
Wrapper function for the getSqlIndex() function in the data object.
Implements ASql::Data::Set.
|
inlineprivatevirtual |
Wrapper function for the numberOfSqlElements() function in the data object.
Implements ASql::Data::Set.
|
inline |
|
inline |
Set the pointer to the address of the object referenced to by x.
Definition at line 430 of file data.hpp.
Referenced by ASql::Data::STLSetContainer< T >::manufacture(), ASql::Data::STLSetRefContainer< T >::manufacture(), ASql::Data::STLSharedSetContainer< T >::manufacture(), ASql::Data::STLSetContainer< T >::pull(), ASql::Data::STLSetRefContainer< T >::pull(), and ASql::Data::STLSharedSetContainer< T >::pull().
|
private |
Pointer to the dataset.
Definition at line 413 of file data.hpp.
Referenced by ASql::Data::SetPtrBuilder< typename T::value_type >::clear(), ASql::Data::SetPtrBuilder< typename T::value_type >::getSqlIndex(), ASql::Data::SetPtrBuilder< typename T::value_type >::numberOfSqlElements(), ASql::Data::SetPtrBuilder< typename T::value_type >::operator bool(), and ASql::Data::SetPtrBuilder< typename T::value_type >::set().