Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mysqlpp::Null< Type, Behavior > Class Template Reference

Container class for holding SQL nulls. More...

#include <null.h>

Collaboration diagram for mysqlpp::Null< Type, Behavior >:

Collaboration graph
[legend]
List of all members.

Public Methods

 Null (const null_type &n)
 Gives Null the null value.


Detailed Description

template<class Type, class Behavior = NullisNull>
class mysqlpp::Null< Type, Behavior >

Container class for holding SQL nulls.

This template is necessary because there is nothing in the C++ type system with the same semantics as SQL's null. (No, NULL from stddef.h is not the same!)


Constructor & Destructor Documentation

template<class Type, class Behavior = NullisNull>
mysqlpp::Null< Type, Behavior >::Null const null_type   n [inline]
 

Gives Null the null value.

The global const null (not to be confused with C's NULL type) is of type null_type, so you can say something like:

      Null<Type> foo = null;


The documentation for this class was generated from the following file:
Generated on Thu May 5 05:31:30 2005 for MySQL++ by doxygen1.2.18