SetDomainFunctor< DT, ST, T, UT, wildcard > Struct Template Reference

#include <Domain.h>

List of all members.


Detailed Description

template<class DT, class ST, class T, class UT, bool wildcard>
struct SetDomainFunctor< DT, ST, T, UT, wildcard >

SetDomainFunctor is a simple wrapper around the setDomain method in the DomainTraits class.

It is templated on the DomainTraits type, the domain storage type, the type of domain being copied into the domain, and a boolean indicating if the domain is a wildcard type or not. If it is a wildcard, the set operation is skipped, which can be used to save time. A specialization for wildcard == true is provided which just does nothing, instead of calling DT::setDomain.

When a wildcard is to be used to determine the final domain, a separate setWildcardDomain method is available which takes an extra user-supplied reference domain. This reference domain is used by the wildcard to calculate what the true domain should be.

Static Public Member Functions

static void setDomain (ST &domain, const T &newdom)
static void setWildcardDomain (ST &domain, const UT &, const T &newdom)


Member Function Documentation

template<class DT, class ST, class T, class UT, bool wildcard>
static void SetDomainFunctor< DT, ST, T, UT, wildcard >::setDomain ( ST &  domain,
const T &  newdom 
) [inline, static]

References setDomain().

template<class DT, class ST, class T, class UT, bool wildcard>
static void SetDomainFunctor< DT, ST, T, UT, wildcard >::setWildcardDomain ( ST &  domain,
const UT &  ,
const T &  newdom 
) [inline, static]

References setDomain().


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

Generated on Sun May 17 21:44:04 2009 for FreePOOMA by  doxygen 1.5.5