Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

pqxxobject::field_proxy< T > Class Template Reference

Database field template proxy class. More...

#include <field_proxy.h>

Inheritance diagram for pqxxobject::field_proxy< T >:

pqxxobject::field_proxy_readonly< T > pqxxobject::field_proxy_writeonly< T > List of all members.

Public Types

typedef T::value_type value_type

Public Member Functions

 field_proxy (T &value)
 The constructor.

 field_proxy (const field_proxy &rhs)
 The copy constructor.

 ~field_proxy ()
 The destructor (non-virtual).

field_proxy< T > & operator= (const value_type &rhs)
 Overloaded assignment operator.

 operator value_type () const
 Conversion operator.

bool is_null () const
 Check if the contained value is NULL.

bool is_not_null () const
 Check if the contained value is not NULL.


Private Attributes

T & m_value
 The contained value.


Detailed Description

template<typename T>
class pqxxobject::field_proxy< T >

Database field template proxy class.

This class is a proxy for a field class. That is, it represents a field class, and forwards a subset of the field operations to the referenced field. It is used to limit access to the field.

Definition at line 58 of file field_proxy.h.


Member Typedef Documentation

template<typename T>
typedef T::value_type pqxxobject::field_proxy< T >::value_type
 

Reimplemented in pqxxobject::field_proxy_readonly< T >, and pqxxobject::field_proxy_writeonly< T >.

Definition at line 61 of file field_proxy.h.


Constructor & Destructor Documentation

template<typename T>
pqxxobject::field_proxy< T >::field_proxy T &  value  )  [inline, explicit]
 

The constructor.

Definition at line 64 of file field_proxy.h.

template<typename T>
pqxxobject::field_proxy< T >::field_proxy const field_proxy< T > &  rhs  )  [inline]
 

The copy constructor.

Definition at line 70 of file field_proxy.h.

template<typename T>
pqxxobject::field_proxy< T >::~field_proxy  )  [inline]
 

The destructor (non-virtual).

Definition at line 76 of file field_proxy.h.


Member Function Documentation

template<typename T>
bool pqxxobject::field_proxy< T >::is_not_null  )  const [inline]
 

Check if the contained value is not NULL.

Returns:
true if not NULL, otherwise false.

Definition at line 105 of file field_proxy.h.

template<typename T>
bool pqxxobject::field_proxy< T >::is_null  )  const [inline]
 

Check if the contained value is NULL.

Returns:
true if NULL, otherwise false.

Definition at line 96 of file field_proxy.h.

template<typename T>
pqxxobject::field_proxy< T >::operator value_type  )  const [inline]
 

Conversion operator.

Reimplemented in pqxxobject::field_proxy_writeonly< T >.

Definition at line 87 of file field_proxy.h.

template<typename T>
field_proxy<T>& pqxxobject::field_proxy< T >::operator= const value_type rhs  )  [inline]
 

Overloaded assignment operator.

Reimplemented in pqxxobject::field_proxy_readonly< T >.

Definition at line 80 of file field_proxy.h.


Member Data Documentation

template<typename T>
T& pqxxobject::field_proxy< T >::m_value [private]
 

The contained value.

Definition at line 112 of file field_proxy.h.


The documentation for this class was generated from the following file:
Generated on Sat May 22 18:34:01 2004 for pqxxobject API Reference by doxygen 1.3.6-20040222