LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
misc::set< K, C, A > Class Template Reference

The class misc::set is wrapper around std::set. More...

#include <set.hh>

Inheritance diagram for misc::set< K, C, A >:
Collaboration diagram for misc::set< K, C, A >:

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.
setoperator+= (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.
setoperator-= (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.
setoperator+= (const set &s)
 In place union with another set s.
set operator- (const set &s) const
 Subtraction with another set s.
setoperator-= (const set &s)
 In place subtraction with another set s.
set operator| (const set &s) const
 Union with another set s.
setoperator|= (const set &s)
 In place union with another set s.
set operator& (const set &s) const
 Intersection with another set s.
setoperator&= (const set &s)
 In place intersection with another set s.

Public Attributes

keys
 STL member.

Detailed Description

template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
class misc::set< K, C, A >

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.

Member Typedef Documentation

template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::const_iterator misc::set< K, C, A >::const_iterator
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::const_reference misc::set< K, C, A >::const_reference
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::const_reverse_iterator misc::set< K, C, A >::const_reverse_iterator
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::iterator misc::set< K, C, A >::iterator
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::reverse_iterator misc::set< K, C, A >::reverse_iterator
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef std::set<K, C, A> misc::set< K, C, A >::set_type
template<typename K, typename C = std::less<K>, typename A = std::allocator<K>>
typedef set_type::size_type misc::set< K, C, A >::size_type

Constructor & Destructor Documentation

template<class K , class C , class A >
misc::set< K, C, A >::set ( )
inlineexplicit
template<class K , class C , class A >
template<typename Iter >
misc::set< K, C, A >::set ( Iter  first,
Iter  last 
)
inlineexplicit
template<class K, class C , class A >
misc::set< K, C, A >::set ( const std::list< K >  l)
inlineexplicit
template<class K , class C , class A >
misc::set< K, C, A >::~set ( )
inline

Member Function Documentation

template<class K, class C , class A >
bool misc::set< K, C, A >::has ( const K &  k) const
inline

Is k part of this set?

References misc::find().

Referenced by misc::operator%().

template<class K , class C , class A >
set< K, C, A > misc::set< K, C, A >::operator& ( const set< K, C, A > &  s) const
inline

Intersection with another set s.

References misc::set_intersection().

template<class K , class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator&= ( const set< K, C, A > &  s)
inline

In place intersection with another set s.

template<class K, class C , class A >
set< K, C, A > misc::set< K, C, A >::operator+ ( const K &  data) const
inline

Return the addition of data into this. data must not yet be part of this.

References precondition.

template<class K, class C , class A >
set< K, C, A > misc::set< K, C, A >::operator+ ( const set< K, C, A > &  s) const
inline

Union with another set s.

References misc::set_union().

template<class K, class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator+= ( const K &  data)
inline

Insert data in this. data must not yet be part of this.

References precondition.

template<class K, class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator+= ( const set< K, C, A > &  s)
inline

In place union with another set s.

template<class K, class C , class A >
set< K, C, A > misc::set< K, C, A >::operator- ( const K &  data) const
inline

Return the removal of data into this. data must be part of this.

References precondition.

template<class K, class C , class A >
set< K, C, A > misc::set< K, C, A >::operator- ( const set< K, C, A > &  s) const
inline

Subtraction with another set s.

References misc::set_difference().

template<class K, class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator-= ( const K &  data)
inline

Remove data from this. data must be part of this.

References precondition.

template<class K, class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator-= ( const set< K, C, A > &  s)
inline

In place subtraction with another set s.

template<class K , class C , class A >
set< K, C, A > misc::set< K, C, A >::operator| ( const set< K, C, A > &  s) const
inline

Union with another set s.

template<class K , class C , class A >
set< K, C, A > & misc::set< K, C, A >::operator|= ( const set< K, C, A > &  s)
inline

In place union with another set s.

Member Data Documentation

template<typename K>
K std::set< K >::keys
inherited

STL member.


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