fastcgi++
|
Wraps a Set object around a pointer to an individual object of type T. More...
#include <data.hpp>
Public Member Functions | |
IndySetPtrBuilder () | |
Default constructor set's the pointer to null. | |
IndySetPtrBuilder (const T &x) | |
Set the pointer to the address of the object referenced to by x. | |
IndySetPtrBuilder (IndySetPtrBuilder &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 |
Returns 1 as it is an individual container. | |
virtual Index | getSqlIndex (const size_t index) const |
Just returns an index to data. | |
Private Attributes | |
const T * | m_data |
Object of type T that the Set is wrapped around. This is your object. |
Wraps a Set object around a pointer to an individual object of type T.
T | object type to create. |
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder | ( | ) | [inline] |
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder | ( | const T & | x | ) | [inline] |
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder | ( | IndySetPtrBuilder< T > & | x | ) | [inline] |
void ASql::Data::IndySetPtrBuilder< T >::clear | ( | ) | [inline] |
virtual Index ASql::Data::IndySetPtrBuilder< T >::getSqlIndex | ( | const size_t | index | ) | const [inline, private, virtual] |
virtual size_t ASql::Data::IndySetPtrBuilder< T >::numberOfSqlElements | ( | ) | const [inline, private, virtual] |
Returns 1 as it is an individual container.
Implements ASql::Data::Set.
ASql::Data::IndySetPtrBuilder< T >::operator bool | ( | ) | const [inline] |
void ASql::Data::IndySetPtrBuilder< T >::set | ( | const T & | data | ) | [inline] |
Set the pointer to the address of the object referenced to by x.
Definition at line 521 of file data.hpp.
Referenced by ASql::Data::IndySTLSetContainer< T >::manufacture(), and ASql::Data::IndySTLSetContainer< T >::pull().
const T* ASql::Data::IndySetPtrBuilder< T >::m_data [private] |
Object of type T that the Set is wrapped around. This is your object.
Definition at line 504 of file data.hpp.
Referenced by ASql::Data::IndySetPtrBuilder< typename T::value_type >::clear(), ASql::Data::IndySetPtrBuilder< typename T::value_type >::getSqlIndex(), ASql::Data::IndySetPtrBuilder< typename T::value_type >::operator bool(), and ASql::Data::IndySetPtrBuilder< typename T::value_type >::set().