fastcgi++
Public Member Functions | Private Member Functions | Private Attributes
ASql::Data::IndySetPtrBuilder< T > Class Template Reference

Wraps a Set object around a pointer to an individual object of type T. More...

#include <data.hpp>

Inheritance diagram for ASql::Data::IndySetPtrBuilder< T >:
ASql::Data::Set

List of all members.

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.

Detailed Description

template<class T>
class ASql::Data::IndySetPtrBuilder< T >

Wraps a Set object around a pointer to an individual object of type T.

Template Parameters:
Tobject type to create.

Definition at line 501 of file data.hpp.


Constructor & Destructor Documentation

template<class T>
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder ( )
inline

Default constructor set's the pointer to null.

Definition at line 513 of file data.hpp.

template<class T>
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder ( const T &  x)
inline

Set the pointer to the address of the object referenced to by x.

Definition at line 516 of file data.hpp.

template<class T>
ASql::Data::IndySetPtrBuilder< T >::IndySetPtrBuilder ( IndySetPtrBuilder< T > &  x)
inline

Definition at line 518 of file data.hpp.


Member Function Documentation

template<class T>
void ASql::Data::IndySetPtrBuilder< T >::clear ( )
inline

Set the pointer to null.

Definition at line 524 of file data.hpp.

template<class T>
virtual Index ASql::Data::IndySetPtrBuilder< T >::getSqlIndex ( const size_t  index) const
inlineprivatevirtual

Just returns an index to data.

Implements ASql::Data::Set.

Definition at line 510 of file data.hpp.

template<class T>
virtual size_t ASql::Data::IndySetPtrBuilder< T >::numberOfSqlElements ( ) const
inlineprivatevirtual

Returns 1 as it is an individual container.

Implements ASql::Data::Set.

Definition at line 507 of file data.hpp.

template<class T>
ASql::Data::IndySetPtrBuilder< T >::operator bool ( ) const
inline

Return true if the pointer is not null.

Definition at line 527 of file data.hpp.

template<class T>
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().


Member Data Documentation

template<class T>
const T* ASql::Data::IndySetPtrBuilder< T >::m_data
private

The documentation for this class was generated from the following file: