Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Types | Protected Member Functions
concepts::BaseSet< F > Class Template Reference

Set with operations and output operator. More...

#include <set.hh>

Inheritance diagram for concepts::BaseSet< F >:
Inheritance graph
[legend]
Collaboration diagram for concepts::BaseSet< F >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BaseSet ()
 Standard Constructor.
 BaseSet (const std::string &str)
 Constructor, set is defined by a string.
template<class G >
 BaseSet (const G &set)
 Constructor, which uses the constructor of the base class std::set.
 BaseSet (const concepts::Array< F > &a)
 Constructor, set is defined by an array.
bool exist (F val) const
 Returns true, if a value is in the set.
bool isempty () const
 Returns true, if set is empty.
Set< F > operator&& (const Set< F > &set) const
Set< F > operator&& (Set< F > &set) const
Set< F > operator() (const Set< uint > &set) const
 Returns subset with indices set.
template<class G , class H , class I , class J >
Set< G > operator() (G(H::*fun)(I) const, J i) const
 Returns element wise application of a member function, e.g.
template<class G , class H >
Set< G > operator() (G(H::*fun)() const) const
 Returns element wise application of a member function, e.g.
template<class G , class H >
Set< G * > operator() (G &(H::*fun)() const) const
 Returns element wise application of a member function, e.g.
Set< F > operator- (Set< F > &set) const
Set< F > operator- (const Set< F > &set) const
Set< uint > operator== (const F val) const
 Returns the indices of elements with are equal to val.
BaseSet< F > & operator|= (const Set< F > &set)
Set< F > operator|| (Set< F > &set) const
Set< F > operator|| (const Set< F > &set) const
virtual ~BaseSet ()

Protected Types

typedef std::set< F >
::const_iterator 
const_iterator_
typedef std::insert_iterator
< std::set< F > > 
insert_iterator_

Protected Member Functions

virtual void difference_ (const_iterator_ first, const_iterator_ last, insert_iterator_ i) const
 Insert the set difference of this set with that between iterator first and second into i.
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
virtual void intersection_ (const_iterator_ first, const_iterator_ last, insert_iterator_ i) const
 Insert the set intersection of this set with that between iterator first and second into i.
virtual void union_ (const_iterator_ first, const_iterator_ last, insert_iterator_ i) const
 Insert the set union of this set with that between iterator first and second into i.

Detailed Description

template<class F>
class concepts::BaseSet< F >

Set with operations and output operator.

Author:
Kersten Schmidt, 2005

Definition at line 51 of file set.hh.


Member Typedef Documentation

template<class F>
typedef std::set<F>::const_iterator concepts::BaseSet< F >::const_iterator_ [protected]

Definition at line 109 of file set.hh.

template<class F>
typedef std::insert_iterator<std::set<F> > concepts::BaseSet< F >::insert_iterator_ [protected]

Definition at line 110 of file set.hh.


Constructor & Destructor Documentation

template<class F>
concepts::BaseSet< F >::BaseSet ( ) [inline]

Standard Constructor.

Definition at line 54 of file set.hh.

template<class F >
concepts::BaseSet< F >::BaseSet ( const std::string &  str)

Constructor, set is defined by a string.

The values in the string str are separated by spaces. The definition of a int set could be done with "0 1 3 8 7".

Definition at line 140 of file set.hh.

template<class F>
concepts::BaseSet< F >::BaseSet ( const concepts::Array< F > &  a)

Constructor, set is defined by an array.

Definition at line 149 of file set.hh.

Here is the call graph for this function:

template<class F>
template<class G >
concepts::BaseSet< F >::BaseSet ( const G &  set) [inline]

Constructor, which uses the constructor of the base class std::set.

Definition at line 67 of file set.hh.

template<class F>
virtual concepts::BaseSet< F >::~BaseSet ( ) [inline, virtual]

Definition at line 68 of file set.hh.


Member Function Documentation

template<class F >
void concepts::BaseSet< F >::difference_ ( const_iterator_  first,
const_iterator_  last,
insert_iterator_  i 
) const [protected, virtual]

Insert the set difference of this set with that between iterator first and second into i.

Reimplemented in concepts::Set< IndexRange >.

Definition at line 230 of file set.hh.

template<class F>
bool concepts::BaseSet< F >::exist ( val) const [inline]

Returns true, if a value is in the set.

Definition at line 283 of file set.hh.

template<class F >
std::ostream & concepts::BaseSet< F >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in concepts::Set< IndexRange >.

Definition at line 288 of file set.hh.

Here is the call graph for this function:

template<class F >
void concepts::BaseSet< F >::intersection_ ( const_iterator_  first,
const_iterator_  last,
insert_iterator_  i 
) const [protected, virtual]

Insert the set intersection of this set with that between iterator first and second into i.

Reimplemented in concepts::Set< IndexRange >.

Definition at line 218 of file set.hh.

template<class F>
bool concepts::BaseSet< F >::isempty ( ) const [inline]

Returns true, if set is empty.

Definition at line 105 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator&& ( Set< F > &  set) const [inline]

Definition at line 210 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator&& ( const Set< F > &  set) const [inline]

Definition at line 203 of file set.hh.

template<class F >
template<class G , class H >
Set< G * > concepts::BaseSet< F >::operator() ( G &(H::*)() const  fun) const [inline]

Returns element wise application of a member function, e.g.

Connector1::key()

Definition at line 168 of file set.hh.

template<class F >
Set< F > concepts::BaseSet< F >::operator() ( const Set< uint > &  set) const [inline]

Returns subset with indices set.

Definition at line 258 of file set.hh.

template<class F >
template<class G , class H , class I , class J >
Set< G > concepts::BaseSet< F >::operator() ( G(H::*)(I) const  fun,
i 
) const [inline]

Returns element wise application of a member function, e.g.

Connector1::vertex(uint i)

Definition at line 179 of file set.hh.

template<class F >
template<class G , class H >
Set< G > concepts::BaseSet< F >::operator() ( G(H::*)() const  fun) const [inline]

Returns element wise application of a member function, e.g.

Key::key()

Definition at line 157 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator- ( const Set< F > &  set) const [inline]

Definition at line 235 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator- ( Set< F > &  set) const [inline]

Definition at line 242 of file set.hh.

template<class F>
Set< uint > concepts::BaseSet< F >::operator== ( const F  val) const [inline]

Returns the indices of elements with are equal to val.

Definition at line 249 of file set.hh.

template<class F>
BaseSet< F > & concepts::BaseSet< F >::operator|= ( const Set< F > &  set) [inline]

Reimplemented in concepts::Set< IndexRange >.

Definition at line 275 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator|| ( const Set< F > &  set) const [inline]

Definition at line 189 of file set.hh.

template<class F>
Set< F > concepts::BaseSet< F >::operator|| ( Set< F > &  set) const [inline]

Definition at line 196 of file set.hh.

template<class F >
void concepts::BaseSet< F >::union_ ( const_iterator_  first,
const_iterator_  last,
insert_iterator_  i 
) const [protected, virtual]

Insert the set union of this set with that between iterator first and second into i.

Reimplemented in concepts::Set< IndexRange >.

Definition at line 224 of file set.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)