FreePOOMA  2.4.1
Static Public Member Functions
SetDomainFunctor< DT, ST, T, UT, wildcard > Struct Template Reference

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

#include <Domain.h>

List of all members.

Static Public Member Functions

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

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.


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]
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]

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