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

dbSet< T > Class Template Reference

#include <set.h>

List of all members.

Public Member Functions

 dbSet (set_t elements=0)
 dbSet (T elem)
 dbSet (dbSet< T > const &s)
 dbSet (T from, T till)
bool operator== (dbSet< T > const &s) const
bool operator!= (dbSet< T > const &s) const
bool operator== (T elem) const
bool operator!= (T elem) const
bool operator<= (dbSet< T > const &s) const
bool operator>= (dbSet< T > const &s) const
bool operator< (dbSet< T > const &s) const
bool operator> (dbSet< T > const &s) const
dbSet< T > operator+ (dbSet< T > const &s) const
dbSet< T > operator+ (T elem) const
dbSet< T > operator- (dbSet< T > const &s) const
dbSet< T > operator- (T elem) const
dbSet< T > operator * (dbSet< T > const &s) const
dbSet< T > operator * (T elem) const
bool has (T elem) const
bool empty ()
dbSet< T > operator+= (T elem)
dbSet< T > operator-= (T elem)
dbSet< T > operator= (dbSet< T > const &s)
dbSet< T > operator= (T elem)
dbSet< T > operator, (dbSet< T > const &s)
dbSet< T > operator, (T elem)
dbQueryExpression operator== (char const *field)
dbQueryExpression operator!= (char const *field)
dbQueryExpression operator<= (char const *field)
dbQueryExpression operator>= (char const *field)
dbQueryExpression operator< (char const *field)
dbQueryExpression operator> (char const *field)
dbQueryExpression has (char const *field)
 CLASS_DESCRIPTOR (dbSet< T >,(FIELD(bits), METHOD(empty)))

Protected Types

typedef db_int8 set_t

Protected Attributes

set_t bits


Detailed Description

template<class T>
class dbSet< T >

Small set implementation. Number of elements in the set should not be greater than 64. Template class is used to allow static type checking for different sets. Template parameter is intended to be enum.


Member Function Documentation

template<class T>
dbQueryExpression dbSet< T >::has char const *  field  )  [inline]
 

Generate query expression to check if field is in set

Parameters:
field name of the field of integer type
Returns:
query expression checing if table field is in this set

template<class T>
dbQueryExpression dbSet< T >::operator!= char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set

template<class T>
dbSet<T> dbSet< T >::operator, elem  )  [inline]
 

Add element to the set

template<class T>
dbSet<T> dbSet< T >::operator, dbSet< T > const &  s  )  [inline]
 

Join two sets

template<class T>
dbQueryExpression dbSet< T >::operator< char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set

template<class T>
dbQueryExpression dbSet< T >::operator<= char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set

template<class T>
dbQueryExpression dbSet< T >::operator== char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set

template<class T>
dbQueryExpression dbSet< T >::operator> char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set

template<class T>
dbQueryExpression dbSet< T >::operator>= char const *  field  )  [inline]
 

Generate query expression to compare two sets

Parameters:
field name of the field of dbSet type
Returns:
query expression comparing the table field with this set


The documentation for this class was generated from the following file:
Generated on Thu Feb 12 18:46:28 2004 for GigaBASE by doxygen 1.3.5