mln::p_set_of< S > Class Template Reference

p_set_of is a set of site sets. More...

#include <p_set_of.hh>

Inheritance diagram for mln::p_set_of< S >:

Inheritance graph

List of all members.

Public Types

typedef p_double_piter< self_,
mln_bkd_eiter(set_), typename
S::bkd_piter > 
bkd_piter
 Backward Site_Iterator associated type.
typedef Site_Set< void > category
typedef S element
 Element associated type.
typedef E exact_t
typedef p_double_piter< self_,
mln_fwd_eiter(set_), typename
S::fwd_piter > 
fwd_piter
 Forward Site_Iterator associated type.
typedef S i_element
 Insertion element associated type.
typedef fwd_piter piter
 Site_Iterator associated type.
typedef p_double_psite< self_,
element
psite
 Psite associated type.
typedef subject< P >::ret site
 Site associated type.

Public Member Functions

void clear ()
 Clear this set.
bool has (const psite &p) const
 Test if p belongs to this point set.
void insert (const S &s)
 Insert a site set s.
bool is_empty () const
 Test if the site set is empty.
bool is_valid () const
 Test if this set of runs is valid.
std::size_t memory_size () const
 Return the size of this site set in memory.
unsigned nelements () const
 Give the number of elements (site sets) of this composite.
const S & operator[] (unsigned i) const
 Return the i-th site set.
 p_set_of ()
 Constructor without arguments.
const util::set< S > & set_1_ () const
template<typename I>
const S & set_2_ (const I &it) const
const util::set< S > & set_hook_ () const
 Hook to the set of runs.

Protected Member Functions

void update_nsites_ (const T &)

Protected Attributes

util::set< S > s_
 Set of site sets.

Private Types

typedef p_set_of< S > self_
typedef util::set< S > set_

Related Functions

(Note that these are not member functions.)

template<typename Sl, typename Sr>
p_set< typename Sl::site > diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Set theoretic difference of lhs and rhs.
template<typename Sl, typename Sr>
p_set< typename Sl::site > inter (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Intersection between a couple of point sets.
template<typename Sl, typename Sr>
bool operator< (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Strict inclusion test between site sets lhs and rhs.
template<typename S>
std::ostream & operator<< (std::ostream &ostr, const Site_Set< S > &set)
 Print a site set set into the output stream ostr.
template<typename Sl, typename Sr>
bool operator<= (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Inclusion test between site sets lhs and rhs.
template<typename Sl, typename Sr>
bool operator== (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Equality test between site sets lhs and rhs.
template<typename Sl, typename Sr>
p_set< typename Sl::site > sym_diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Set theoretic symmetrical difference of lhs and rhs.
template<typename Sl, typename Sr>
p_set< typename Sl::site > uni (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs)
 Union of a couple of point sets.
template<typename S>
p_set< typename S::site > unique (const Site_Set< S > &s)
 Give the unique set of s.


Detailed Description

template<typename S>
class mln::p_set_of< S >

p_set_of is a set of site sets.

Parameter S is the type of the contained site sets.

Definition at line 71 of file p_set_of.hh.


Member Typedef Documentation

template<typename S>
typedef p_double_piter<self_, mln_bkd_eiter(set_), typename S ::bkd_piter> mln::p_set_of< S >::bkd_piter

Backward Site_Iterator associated type.

Definition at line 95 of file p_set_of.hh.

template<typename E>
typedef Site_Set<void> mln::Site_Set< E >::category [inherited]

Reimplemented from mln::Object< E >.

Definition at line 67 of file mln/core/concept/site_set.hh.

template<typename S>
typedef S mln::p_set_of< S >::element

Element associated type.

Definition at line 81 of file p_set_of.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.hh.

template<typename S>
typedef p_double_piter<self_, mln_fwd_eiter(set_), typename S ::fwd_piter> mln::p_set_of< S >::fwd_piter

Forward Site_Iterator associated type.

Definition at line 90 of file p_set_of.hh.

template<typename S>
typedef S mln::p_set_of< S >::i_element

Insertion element associated type.

Definition at line 113 of file p_set_of.hh.

template<typename S>
typedef fwd_piter mln::p_set_of< S >::piter

Site_Iterator associated type.

Definition at line 98 of file p_set_of.hh.

template<typename S>
typedef p_double_psite<self_, element> mln::p_set_of< S >::psite

Psite associated type.

Definition at line 85 of file p_set_of.hh.

template<typename S>
typedef p_set_of<S> mln::p_set_of< S >::self_ [private]

Definition at line 76 of file p_set_of.hh.

template<typename S>
typedef util::set<S> mln::p_set_of< S >::set_ [private]

Definition at line 77 of file p_set_of.hh.

template<typename P, typename E>
typedef subject<P>::ret mln::internal::site_set_base_< P, E >::site [inherited]

Site associated type.

Reimplemented in mln::p_centered< W >.

Definition at line 55 of file site_set_base.hh.


Constructor & Destructor Documentation

template<typename S>
mln::p_set_of< S >::p_set_of (  )  [inline]

Constructor without arguments.

Definition at line 160 of file p_set_of.hh.


Member Function Documentation

template<typename S>
void mln::p_set_of< S >::clear (  )  [inline]

template<typename S>
bool mln::p_set_of< S >::has ( const psite p  )  const [inline]

template<typename S>
void mln::p_set_of< S >::insert ( const S &  s  )  [inline]

template<typename P, typename E>
bool mln::internal::site_set_base_< P, E >::is_empty (  )  const [inline, inherited]

template<typename S>
bool mln::p_set_of< S >::is_valid (  )  const [inline]

Test if this set of runs is valid.

Definition at line 175 of file p_set_of.hh.

template<typename S>
std::size_t mln::p_set_of< S >::memory_size (  )  const [inline]

Return the size of this site set in memory.

Definition at line 220 of file p_set_of.hh.

References mln::util::set< T >::memory_size(), and mln::p_set_of< S >::s_.

template<typename S>
unsigned mln::p_set_of< S >::nelements (  )  const [inline]

Give the number of elements (site sets) of this composite.

Definition at line 203 of file p_set_of.hh.

References mln::util::set< T >::nelements(), and mln::p_set_of< S >::s_.

template<typename S>
const S & mln::p_set_of< S >::operator[] ( unsigned  i  )  const [inline]

Return the i-th site set.

Definition at line 194 of file p_set_of.hh.

References mln::util::set< T >::nelements(), and mln::p_set_of< S >::s_.

template<typename S>
const util::set< S > & mln::p_set_of< S >::set_1_ (  )  const [inline]

Definition at line 236 of file p_set_of.hh.

References mln::p_set_of< S >::s_.

template<typename S>
template<typename I>
const S & mln::p_set_of< S >::set_2_ ( const I &  it  )  const [inline]

Definition at line 245 of file p_set_of.hh.

template<typename S>
const util::set< S > & mln::p_set_of< S >::set_hook_ (  )  const [inline]

Hook to the set of runs.

Definition at line 228 of file p_set_of.hh.

References mln::p_set_of< S >::s_.

void mln::internal::site_set_impl__nsites< mln_trait_site_set_nsites(S) , S >::update_nsites_ ( const T &   )  [inline, protected, inherited]


Friends And Related Function Documentation

template<typename Sl, typename Sr>
p_set< typename Sl::site > diff ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Set theoretic difference of lhs and rhs.

Definition at line 66 of file set/diff.hh.

template<typename Sl, typename Sr>
p_set< typename Sl::site > inter ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Intersection between a couple of point sets.

Definition at line 62 of file set/inter.hh.

template<typename Sl, typename Sr>
bool operator< ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Strict inclusion test between site sets lhs and rhs.

Parameters:
[in] lhs A site set (strictly included?).
[in] rhs Another site set (includer?).

Definition at line 479 of file operators.hh.

template<typename S>
std::ostream & operator<< ( std::ostream &  ostr,
const Site_Set< S > &  set 
) [related, inherited]

Print a site set set into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] set A site set.
Returns:
The modified output stream ostr.

Definition at line 505 of file operators.hh.

template<typename Sl, typename Sr>
bool operator<= ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Inclusion test between site sets lhs and rhs.

Parameters:
[in] lhs A site set (included?).
[in] rhs Another site set (includer?).

Definition at line 491 of file operators.hh.

template<typename Sl, typename Sr>
bool operator== ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Equality test between site sets lhs and rhs.

Parameters:
[in] lhs A site set.
[in] rhs Another site set.

Definition at line 467 of file operators.hh.

template<typename Sl, typename Sr>
p_set< typename Sl::site > sym_diff ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Set theoretic symmetrical difference of lhs and rhs.

Definition at line 65 of file sym_diff.hh.

template<typename Sl, typename Sr>
p_set< typename Sl::site > uni ( const Site_Set< Sl > &  lhs,
const Site_Set< Sr > &  rhs 
) [related, inherited]

Union of a couple of point sets.

Definition at line 61 of file uni.hh.

template<typename S>
p_set< typename S::site > unique ( const Site_Set< S > &  s  )  [related, inherited]

Give the unique set of s.

Definition at line 61 of file unique.hh.


Member Data Documentation

template<typename S>
util::set<S> mln::p_set_of< S >::s_ [protected]


Generated on Sun Apr 25 01:56:44 2010 for Milena (Olena) by  doxygen 1.5.6