pelib
2.0.0
|
#include <Set.hpp>
Public Types | |
typedef std::set< Value > | SetType |
typedef std::map< Key, SetType > | SetOfSetsType |
Public Member Functions | |
Set (const std::string name, const SetType values) | |
Set (const std::string name, const Key &key, const SetType values) | |
Set (const std::string name, const SetOfSetsType values) | |
Set (const Set< Value, Key > *set) | |
virtual Set * | clone () const |
virtual const SetType & | getValues () const |
virtual bool | exists (Value elem) const |
virtual size_t | getSize () const |
const SetOfSetsType & | getSubsets () const |
void | merge (const AlgebraData *ptr) |
bool | isOneSet () const |
Protected Attributes | |
SetOfSetsType | values |
bool | oneSet |
Mathematical Set
typedef std::map<Key, SetType> pelib::Set< Value, Key >::SetOfSetsType |
typedef std::set<Value> pelib::Set< Value, Key >::SetType |
pelib::Set< Value, Key >::Set | ( | const std::string | name, |
const SetType | values | ||
) | [inline] |
pelib::Set< Value, Key >::Set | ( | const std::string | name, |
const Key & | key, | ||
const SetType | values | ||
) | [inline] |
pelib::Set< Value, Key >::Set | ( | const std::string | name, |
const SetOfSetsType | values | ||
) | [inline] |
pelib::Set< Value, Key >::Set | ( | const Set< Value, Key > * | set | ) | [inline] |
virtual Set* pelib::Set< Value, Key >::clone | ( | ) | const [inline, virtual] |
Returns a pointer to a copy of the Set instance
Implements pelib::AlgebraData.
virtual bool pelib::Set< Value, Key >::exists | ( | Value | elem | ) | const [inline, virtual] |
virtual size_t pelib::Set< Value, Key >::getSize | ( | ) | const [inline, virtual] |
const SetOfSetsType& pelib::Set< Value, Key >::getSubsets | ( | ) | const [inline] |
virtual const SetType& pelib::Set< Value, Key >::getValues | ( | ) | const [inline, virtual] |
bool pelib::Set< Value, Key >::isOneSet | ( | ) | const [inline] |
void pelib::Set< Value, Key >::merge | ( | const AlgebraData * | ) | [inline, virtual] |
Merge data in this instance and instance given as argument, or replace it if merging is not possible
Implements pelib::AlgebraData.
bool pelib::Set< Value, Key >::oneSet [protected] |
SetOfSetsType pelib::Set< Value, Key >::values [protected] |