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

forward declaration More...

#include <Value.hpp>

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

Public Types

typedef Val::ValueTag ValueTag
 
typedef Val Value
 
typedef const Val * ValueId
 
typedef Val * ValueIdSerialize
 
typedef ValueNominalStringAttrIddSerialize
 
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...
 
DomainEnumerateoperator= (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...
 

Detailed Description

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

forward declaration

the domain of nominal attributes.

Finite set of unique equally comparable values. No erase/remove operations on this set is available.

Constructor & Destructor Documentation

template<typename Val >
faif::DomainEnumerate< Val >::DomainEnumerate ( const DomainEnumerate< Val > &  d)

copy c-tor (transform the parent pointers)

copy c-tor (transform the parent pointers

Member Function Documentation

template<typename Val >
DomainEnumerate< Val > & faif::DomainEnumerate< Val >::operator= ( const DomainEnumerate< Val > &  d)

assignment (transform the parent pointers)

assignment (transform the parent pointers

template<typename Val>
std::string faif::DomainEnumerate< Val >::getId ( ) const
inline
template<typename Val>
static ValueId faif::DomainEnumerate< Val >::getValueId ( const_iterator  it)
inlinestatic

return the value id for given value iterator

Referenced by faif::DomainEnumerate< Val >::find(), and faif::DomainEnumerate< Val >::insert().

template<typename Val>
static ValueId faif::DomainEnumerate< Val >::getUnknownId ( )
inlinestatic

return the value id for unknown value

template<typename Val>
int faif::DomainEnumerate< Val >::getSize ( ) const
inline

accessor

template<typename Val>
bool faif::DomainEnumerate< Val >::operator== ( const DomainEnumerate< Val > &  d) const
inline

the domain equality operator (the id is compared, not all attributes)

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

the domain not equality operator (the id is compared, not all attributes)

template<typename Val>
iterator faif::DomainEnumerate< Val >::begin ( )
inline

accessor

template<typename Val>
iterator faif::DomainEnumerate< Val >::end ( )
inline

accessor

template<typename Val>
const_iterator faif::DomainEnumerate< Val >::begin ( ) const
inline

accessor

template<typename Val>
const_iterator faif::DomainEnumerate< Val >::end ( ) const
inline

accessor

template<typename Val>
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().

template<typename Val>
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

Exceptions
NotFoundException

References faif::DomainEnumerate< Val >::getId(), and faif::DomainEnumerate< Val >::getValueId().

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

serialization using boost::serialization

References faif::DomainEnumerate< Val >::getId(), and faif::DomainEnumerate< Val >::insert().


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