faif
Public Types | Public Member Functions | Static Public Member Functions | List of all members
faif::ValueNominal< Val > Class Template Reference

nominal attribute template (equality comparable) More...

#include <Value.hpp>

Collaboration diagram for faif::ValueNominal< Val >:
Collaboration graph

Public Types

typedef nominal_tag ValueTag
 the attribute trait More...
 
typedef Val Value
 
typedef DomainEnumerate< ValueNominal< Value > > DomainType
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((boost::EqualityComparable< Val >))
 
 BOOST_CONCEPT_ASSERT ((boost::DefaultConstructible< Val >))
 
 BOOST_CONCEPT_ASSERT ((boost::CopyConstructible< Val >))
 
 BOOST_CONCEPT_ASSERT ((boost::Assignable< Val >))
 
 ValueNominal ()
 c-tor. Create UNKNOWN Value More...
 
 ValueNominal (const Value &val, DomainType *d)
 c-tor More...
 
 ValueNominal (const ValueNominal &a)
 c-tor More...
 
ValueNominaloperator= (const ValueNominal &a)
 assign operator More...
 
 ~ValueNominal ()
 d-tor More...
 
Value & get ()
 accessor More...
 
const Value & get () const
 accessor More...
 
bool isUnknown () const
 accessor More...
 
const DomainTypegetDomain () const
 accessor - domain More...
 
bool operator== (const ValueNominal &v) const
 the equality comparison More...
 
bool operator!= (const ValueNominal &v) const
 the equality comparison More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 serialization using boost::serialization More...
 

Static Public Member Functions

static ValueNominalgetUnknown ()
 return the unknown value object More...
 

Detailed Description

template<typename Val>
class faif::ValueNominal< Val >

nominal attribute template (equality comparable)

Member Typedef Documentation

template<typename Val>
typedef nominal_tag faif::ValueNominal< Val >::ValueTag

the attribute trait

Constructor & Destructor Documentation

template<typename Val>
faif::ValueNominal< Val >::ValueNominal ( )
inline

c-tor. Create UNKNOWN Value

template<typename Val>
faif::ValueNominal< Val >::ValueNominal ( const Value &  val,
DomainType d 
)
inline

c-tor

template<typename Val>
faif::ValueNominal< Val >::ValueNominal ( const ValueNominal< Val > &  a)
inline

c-tor

template<typename Val>
faif::ValueNominal< Val >::~ValueNominal ( )
inline

d-tor

Member Function Documentation

template<typename Val>
ValueNominal& faif::ValueNominal< Val >::operator= ( const ValueNominal< Val > &  a)
inline

assign operator

template<typename Val>
Value& faif::ValueNominal< Val >::get ( )
inline

accessor

Referenced by faif::hapl::getName(), and faif::hapl::isSilent().

template<typename Val>
const Value& faif::ValueNominal< Val >::get ( ) const
inline

accessor

template<typename Val>
bool faif::ValueNominal< Val >::isUnknown ( ) const
inline

accessor

template<typename Val>
const DomainType* faif::ValueNominal< Val >::getDomain ( ) const
inline

accessor - domain

template<typename Val>
bool faif::ValueNominal< Val >::operator== ( const ValueNominal< Val > &  v) const
inline

the equality comparison

template<typename Val>
bool faif::ValueNominal< Val >::operator!= ( const ValueNominal< Val > &  v) const
inline

the equality comparison

template<typename Val>
static ValueNominal& faif::ValueNominal< Val >::getUnknown ( )
inlinestatic

return the unknown value object

template<typename Val>
template<class Archive >
void faif::ValueNominal< Val >::serialize ( Archive &  ar,
const unsigned  int 
)
inline

serialization using boost::serialization


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