mln::p_mutable_array_of< S > Class Template Reference
[Basic types]

p_mutable_array_of is a mutable array of site sets. More...

#include <p_mutable_array_of.hh>

Inherits site_set_base_< S::site, p_mutable_array_of< S > >.

List of all members.

Public Types

typedef p_double_piter< self_,
mln_bkd_eiter(array_),
typename S::bkd_piter > 
bkd_piter
 Backward Site_Iterator associated type.
typedef S element
 Element associated type.
typedef p_double_piter< self_,
mln_fwd_eiter(array_),
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.

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_valid () const
 Test this set validity so returns always true.
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.
S & operator[] (unsigned i)
 Return the i-th site set (mutable version).
const S & operator[] (unsigned i) const
 Return the i-th site set (const version).
 p_mutable_array_of ()
 Constructor without arguments.
void reserve (unsigned n)
 Reserve memory for n elements.


Detailed Description

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

p_mutable_array_of is a mutable array of site sets.

Parameter S is the type of the contained site sets.


Member Typedef Documentation

template<typename S >
typedef p_double_piter<self_, mln_bkd_eiter(array_), typename S ::bkd_piter> mln::p_mutable_array_of< S >::bkd_piter

Backward Site_Iterator associated type.

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

Element associated type.

template<typename S >
typedef p_double_piter<self_, mln_fwd_eiter(array_), typename S ::fwd_piter> mln::p_mutable_array_of< S >::fwd_piter

Forward Site_Iterator associated type.

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

Insertion element associated type.

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

Site_Iterator associated type.

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

Psite associated type.


Constructor & Destructor Documentation

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

Constructor without arguments.


Member Function Documentation

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

Clear this set.

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

Test if p belongs to this point set.

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

Insert a site set s.

Precondition:
s is valid.

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

Test this set validity so returns always true.

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

Return the size of this site set in memory.

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

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

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

Return the i-th site set (mutable version).

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

Return the i-th site set (const version).

template<typename S >
void mln::p_mutable_array_of< S >::reserve ( unsigned  n  )  [inline]

Reserve memory for n elements.


Generated on Tue Jul 14 16:32:31 2009 for Milena (Olena) by  doxygen 1.5.9