LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
The class misc::set is wrapper around std::set. More...
#include <set.hh>
Public Types | |
typedefs | |
typedef std::set< K, C, A > | set_type |
typedef set_type::iterator | iterator |
typedef set_type::const_iterator | const_iterator |
typedef set_type::reverse_iterator | reverse_iterator |
typedef set_type::const_reverse_iterator | const_reverse_iterator |
typedef set_type::size_type | size_type |
typedef set_type::const_reference | const_reference |
Public Member Functions | |
constructor(s)/destructor. | |
set () | |
template<typename Iter > | |
set (Iter first, Iter last) | |
set (const std::list< K > l) | |
~set () | |
Element vs. set. | |
bool | has (const K &k) const |
Is k part of this set? | |
set | operator+ (const K &data) const |
Return the addition of data into this. data must not yet be part of this. | |
set & | operator+= (const K &data) |
Insert data in this. data must not yet be part of this. | |
set | operator- (const K &data) const |
Return the removal of data into this. data must be part of this. | |
set & | operator-= (const K &data) |
Remove data from this. data must be part of this. | |
Set vs. set. | |
set | operator+ (const set &s) const |
Union with another set s. | |
set & | operator+= (const set &s) |
In place union with another set s. | |
set | operator- (const set &s) const |
Subtraction with another set s. | |
set & | operator-= (const set &s) |
In place subtraction with another set s. | |
set | operator| (const set &s) const |
Union with another set s. | |
set & | operator|= (const set &s) |
In place union with another set s. | |
set | operator& (const set &s) const |
Intersection with another set s. | |
set & | operator&= (const set &s) |
In place intersection with another set s. |
Public Attributes | |
K | keys |
STL member. |
The class misc::set is wrapper around std::set.
Because Doxygen doesn't handle template parameters names mix we keep the shorter version, so K for Key, C for Compare and A for Allocator.
typedef set_type::const_iterator misc::set< K, C, A >::const_iterator |
typedef set_type::const_reference misc::set< K, C, A >::const_reference |
typedef set_type::const_reverse_iterator misc::set< K, C, A >::const_reverse_iterator |
typedef set_type::iterator misc::set< K, C, A >::iterator |
typedef set_type::reverse_iterator misc::set< K, C, A >::reverse_iterator |
typedef std::set<K, C, A> misc::set< K, C, A >::set_type |
typedef set_type::size_type misc::set< K, C, A >::size_type |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
Intersection with another set s.
References misc::set_intersection().
|
inline |
In place intersection with another set s.
|
inline |
Return the addition of data into this. data must not yet be part of this.
References precondition.
|
inline |
Union with another set s.
References misc::set_union().
|
inline |
Insert data in this. data must not yet be part of this.
References precondition.
|
inline |
In place union with another set s.
|
inline |
Return the removal of data into this. data must be part of this.
References precondition.
|
inline |
Subtraction with another set s.
References misc::set_difference().
|
inline |
Remove data from this. data must be part of this.
References precondition.
|
inline |
In place subtraction with another set s.
|
inline |
Union with another set s.
|
inline |
In place union with another set s.
|
inherited |
STL member.