Public Types | Public Member Functions | Private Attributes

mln::p_indexed_psite< S > Class Template Reference

Psite class for indexed site sets such as p_array. More...

#include <p_array.hh>

Inheritance diagram for mln::p_indexed_psite< S >:
Inheritance graph

List of all members.

Public Types

typedef Pseudo_Site< void > category
typedef S::element element
typedef p_indexed_psite< S > exact_t
typedef mln::metal::unqualif
< q_site_ >::ret 
site
typedef S target
typedef S target_t

Public Member Functions

void change_index (int i)
void change_target (const S &newtarget)
void dec_index ()
bool has_target () const
void inc_index ()
const util::indexindex () const
bool is_valid () const
 operator int () const
 operator unsigned () const
 operator util::index () const
 p_indexed_psite (const S &s, int i)
 p_indexed_psite ()
const elementsubj_ ()
const S * target_ () const
const siteto_site () const
void update_ () const

Private Attributes

util::index i_
element p_
const S * s_

Detailed Description

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

Psite class for indexed site sets such as p_array.

.

Definition at line 183 of file p_array.hh.


Member Typedef Documentation

typedef Pseudo_Site<void> mln::Pseudo_Site< p_indexed_psite< S > >::category [inherited]

Reimplemented from mln::Site_Proxy< p_indexed_psite< S > >.

Definition at line 66 of file pseudo_site.hh.

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

Definition at line 188 of file p_array.hh.

typedef p_indexed_psite< S > mln::Object< p_indexed_psite< S > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef mln::metal::unqualif< q_site_ >::ret mln::internal::pseudo_site_base_< const S::element & , p_indexed_psite< S > >::site [inherited]

Definition at line 57 of file pseudo_site_base.hh.

template<typename S>
typedef S mln::p_indexed_psite< S >::target

Definition at line 192 of file p_array.hh.

template<typename S>
typedef S mln::p_indexed_psite< S >::target_t

Definition at line 194 of file p_array.hh.


Constructor & Destructor Documentation

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

Definition at line 508 of file p_array.hh.

template<typename S >
mln::p_indexed_psite< S >::p_indexed_psite ( const S &  s,
int  i 
) [inline]

Definition at line 516 of file p_array.hh.

References mln::p_indexed_psite< S >::update_().


Member Function Documentation

template<typename S >
void mln::p_indexed_psite< S >::change_index ( int  i  )  [inline]
template<typename S >
void mln::p_indexed_psite< S >::change_target ( const S &  newtarget  )  [inline]

Definition at line 561 of file p_array.hh.

References mln::p_indexed_psite< S >::i_, and mln::p_indexed_psite< S >::s_.

template<typename S >
void mln::p_indexed_psite< S >::dec_index (  )  [inline]
bool mln::Pseudo_Site< p_indexed_psite< S > >::has_target (  )  const [inherited]
template<typename S >
void mln::p_indexed_psite< S >::inc_index (  )  [inline]
template<typename S >
const util::index & mln::p_indexed_psite< S >::index (  )  const [inline]
template<typename S >
bool mln::p_indexed_psite< S >::is_valid (  )  const [inline]
template<typename S >
mln::p_indexed_psite< S >::operator int (  )  const [inline]

Definition at line 611 of file p_array.hh.

References mln::p_indexed_psite< S >::i_.

template<typename S >
mln::p_indexed_psite< S >::operator unsigned (  )  const [inline]

Definition at line 618 of file p_array.hh.

References mln::p_indexed_psite< S >::i_.

template<typename S >
mln::p_indexed_psite< S >::operator util::index (  )  const [inline]

Definition at line 604 of file p_array.hh.

References mln::p_indexed_psite< S >::i_.

template<typename S >
const S::element & mln::p_indexed_psite< S >::subj_ (  )  [inline]
template<typename S >
const S * mln::p_indexed_psite< S >::target_ (  )  const [inline]
const site& mln::internal::pseudo_site_base_< const S::element & , p_indexed_psite< S > >::to_site (  )  const [inherited]
template<typename S >
void mln::p_indexed_psite< S >::update_ (  )  const [inline]

Member Data Documentation

template<typename S>
util::index mln::p_indexed_psite< S >::i_ [private]
template<typename S>
element mln::p_indexed_psite< S >::p_ [mutable, private]
template<typename S>
const S* mln::p_indexed_psite< S >::s_ [private]