faif
|
forward declaration More...
#include <Value.hpp>
Public Types | |
typedef Val::ValueTag | ValueTag |
typedef Val | Value |
typedef const Val * | ValueId |
typedef Val * | ValueIdSerialize |
typedef ValueNominalString * | AttrIddSerialize |
typedef std::list< Val > | Container |
typedef Container::iterator | iterator |
typedef Container::const_iterator | const_iterator |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((ValueConcept< Val >)) | |
DomainEnumerate (const std::string &id="") | |
DomainEnumerate (const DomainEnumerate &d) | |
copy c-tor (transform the parent pointers) More... | |
DomainEnumerate & | operator= (const DomainEnumerate &) |
assignment (transform the parent pointers) More... | |
std::string | getId () const |
accessor More... | |
int | getSize () const |
accessor More... | |
bool | operator== (const DomainEnumerate &d) const |
bool | operator!= (const DomainEnumerate &d) const |
iterator | begin () |
accessor More... | |
iterator | end () |
accessor More... | |
const_iterator | begin () const |
accessor More... | |
const_iterator | end () const |
accessor More... | |
ValueId | insert (const typename Val::Value &value) |
search for value equal to given, if found return the value identifier, otherwise insert new into collection and return the inserted value identifier More... | |
ValueId | find (const typename Val::Value &value) const |
return the first iterator to attribute equal to given More... | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
serialization using boost::serialization More... | |
Static Public Member Functions | |
static ValueId | getValueId (const_iterator it) |
return the value id for given value iterator More... | |
static ValueId | getUnknownId () |
return the value id for unknown value More... | |
forward declaration
the domain of nominal attributes.
Finite set of unique equally comparable values. No erase/remove operations on this set is available.
faif::DomainEnumerate< Val >::DomainEnumerate | ( | const DomainEnumerate< Val > & | d | ) |
copy c-tor (transform the parent pointers)
copy c-tor (transform the parent pointers
DomainEnumerate< Val > & faif::DomainEnumerate< Val >::operator= | ( | const DomainEnumerate< Val > & | d | ) |
assignment (transform the parent pointers)
assignment (transform the parent pointers
|
inline |
accessor
Referenced by faif::DomainEnumerate< Val >::find(), and faif::DomainEnumerate< Val >::serialize().
|
inlinestatic |
return the value id for given value iterator
Referenced by faif::DomainEnumerate< Val >::find(), and faif::DomainEnumerate< Val >::insert().
|
inlinestatic |
return the value id for unknown value
|
inline |
accessor
|
inline |
the domain equality operator (the id is compared, not all attributes)
|
inline |
the domain not equality operator (the id is compared, not all attributes)
|
inline |
accessor
|
inline |
accessor
|
inline |
accessor
|
inline |
accessor
DomainEnumerate< Val >::ValueId faif::DomainEnumerate< Val >::insert | ( | const typename Val::Value & | value | ) |
search for value equal to given, if found return the value identifier, otherwise insert new into collection and return the inserted value identifier
search for attribute equal to given. If found return the iterator, otherwise insert new into collection and return the inserted attribute
References faif::DomainEnumerate< Val >::getValueId().
Referenced by faif::hapl::createLocus(), and faif::DomainEnumerate< Val >::serialize().
DomainEnumerate< Val >::ValueId faif::DomainEnumerate< Val >::find | ( | const typename Val::Value & | value | ) | const |
return the first iterator to attribute equal to given
return the first iterator to attribute equal to given
NotFoundException |
References faif::DomainEnumerate< Val >::getId(), and faif::DomainEnumerate< Val >::getValueId().
|
inline |
serialization using boost::serialization
References faif::DomainEnumerate< Val >::getId(), and faif::DomainEnumerate< Val >::insert().