#include <graph_psite_base.hh>
Public Types | |
typedef Pseudo_Site< void > | category |
typedef E | exact_t |
typedef S::graph_element::id_t | id_t |
typedef mln::metal::unqualif < q_site_ >::ret | site |
typedef S | target |
Public Member Functions | |
const S::graph_element & | element () const |
Explicit conversion towards the graph element (vertex or edge). | |
bool | has_target () const |
void | invalidate () |
Invalidate this psite. | |
bool | is_valid () const |
Check whether it is valid. | |
operator const typename S::graph_element & () const | |
Conversion towards the graph element (vertex or edge). | |
operator typename S::graph_element::id_t () const | |
Convertion towards the graph element Id. | |
operator unsigned () const | |
Convertion towards the graph element Id. | |
const S::graph_element & | p_hook_ () const |
Return the underlying element. | |
const S::site & | subj_ () |
const site & | to_site () const |
void | change_target (const S &new_target) |
Setters. | |
void | update_id (unsigned elt_id) |
Update the underlying element's id. | |
const S::graph_t & | graph () const |
Return the graph associated to the target of this psite. | |
id_t | id () const |
Return the id of the graph element designated by this psite. | |
const S & | site_set () const |
Return the site set (the target). | |
const S * | target_ () const |
Getters. | |
Protected Member Functions | |
graph_psite_base (const S &, unsigned id) | |
t A site set. | |
graph_psite_base (const S &s) | |
t A site set. | |
graph_psite_base () | |
Constructors. | |
Protected Attributes | |
S::graph_element | elt_ |
const S * | s_ |
S::site | site_ |
Definition at line 48 of file graph_psite_base.hh.
typedef Pseudo_Site<void> mln::Pseudo_Site< E >::category [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
typedef S::graph_element::id_t mln::internal::graph_psite_base< S, E >::id_t |
Definition at line 60 of file graph_psite_base.hh.
typedef mln::metal::unqualif< q_site_ >::ret mln::internal::pseudo_site_base_< const S::site & , E >::site [inherited] |
Definition at line 57 of file pseudo_site_base.hh.
typedef S mln::internal::graph_psite_base< S, E >::target |
Definition at line 55 of file graph_psite_base.hh.
mln::internal::graph_psite_base< S, E >::graph_psite_base | ( | ) | [inline, protected] |
mln::internal::graph_psite_base< S, E >::graph_psite_base | ( | const S & | s | ) | [inline, protected] |
t
A site set.
Definition at line 207 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::change_target().
mln::internal::graph_psite_base< S, E >::graph_psite_base | ( | const S & | s, | |
unsigned | id | |||
) | [inline, protected] |
t
A site set.
id
The id of the element associated to this psite. Definition at line 214 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::change_target(), and mln::internal::graph_psite_base< S, E >::update_id().
void mln::internal::graph_psite_base< S, E >::change_target | ( | const S & | new_target | ) | [inline] |
Setters.
Change the targe site set.
Definition at line 240 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, mln::internal::local_change_graph(), mln::internal::graph_psite_base< S, E >::s_, and mln::internal::graph_psite_base< S, E >::site_.
Referenced by mln::internal::graph_psite_base< S, E >::graph_psite_base().
const S::graph_element & mln::internal::graph_psite_base< S, E >::element | ( | ) | const [inline] |
Explicit conversion towards the graph element (vertex or edge).
Definition at line 347 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_.
const S::graph_t & mln::internal::graph_psite_base< S, E >::graph | ( | ) | const [inline] |
Return the graph associated to the target of this psite.
Definition at line 276 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::s_.
bool mln::Pseudo_Site< E >::has_target | ( | ) | const [inline, inherited] |
graph_psite_base< S, E >::id_t mln::internal::graph_psite_base< S, E >::id | ( | ) | const [inline] |
Return the id of the graph element designated by this psite.
Definition at line 285 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_.
Referenced by mln::operator!=(), and mln::operator==().
void mln::internal::graph_psite_base< S, E >::invalidate | ( | ) | [inline] |
Invalidate this psite.
Definition at line 301 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, and mln::internal::graph_psite_base< S, E >::s_.
bool mln::internal::graph_psite_base< S, E >::is_valid | ( | ) | const [inline] |
Check whether it is valid.
Definition at line 293 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, and mln::internal::graph_psite_base< S, E >::s_.
Referenced by mln::internal::graph_psite_base< S, E >::operator typename S::graph_element::id_t(), and mln::internal::graph_psite_base< S, E >::operator unsigned().
mln::internal::graph_psite_base< S, E >::operator const typename S::graph_element & | ( | ) | const [inline] |
Conversion towards the graph element (vertex or edge).
Definition at line 338 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_.
mln::internal::graph_psite_base< S, E >::operator typename S::graph_element::id_t | ( | ) | const [inline] |
Convertion towards the graph element Id.
Definition at line 330 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, and mln::internal::graph_psite_base< S, E >::is_valid().
mln::internal::graph_psite_base< S, E >::operator unsigned | ( | ) | const [inline] |
Convertion towards the graph element Id.
Definition at line 322 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, and mln::internal::graph_psite_base< S, E >::is_valid().
const S::graph_element & mln::internal::graph_psite_base< S, E >::p_hook_ | ( | ) | const [inline] |
Return the underlying element.
Definition at line 360 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_.
const S & mln::internal::graph_psite_base< S, E >::site_set | ( | ) | const [inline] |
Return the site set (the target).
Definition at line 267 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::s_.
const S::site & mln::internal::graph_psite_base< S, E >::subj_ | ( | ) | [inline] |
Definition at line 310 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::site_.
const S * mln::internal::graph_psite_base< S, E >::target_ | ( | ) | const [inline] |
Getters.
Return the target (the site set).
Definition at line 259 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::s_.
Referenced by mln::operator!=(), and mln::operator==().
const site& mln::internal::pseudo_site_base_< const S::site & , E >::to_site | ( | ) | const [inherited] |
void mln::internal::graph_psite_base< S, E >::update_id | ( | unsigned | elt_id | ) | [inline] |
Update the underlying element's id.
This element can be an edge, a vertex...
Definition at line 249 of file graph_psite_base.hh.
References mln::internal::graph_psite_base< S, E >::elt_, mln::internal::graph_psite_base< S, E >::s_, and mln::internal::graph_psite_base< S, E >::site_.
Referenced by mln::internal::graph_psite_base< S, E >::graph_psite_base().
S::graph_element mln::internal::graph_psite_base< S, E >::elt_ [protected] |
Definition at line 124 of file graph_psite_base.hh.
Referenced by mln::internal::graph_psite_base< S, E >::change_target(), mln::p_edges_psite< G, F >::e(), mln::internal::graph_psite_base< S, E >::element(), mln::internal::graph_psite_base< S, E >::id(), mln::internal::graph_psite_base< S, E >::invalidate(), mln::internal::graph_psite_base< S, E >::is_valid(), mln::internal::graph_psite_base< S, E >::operator const typename S::graph_element &(), mln::internal::graph_psite_base< S, E >::operator typename S::graph_element::id_t(), mln::internal::graph_psite_base< S, E >::operator unsigned(), mln::internal::graph_psite_base< S, E >::p_hook_(), mln::internal::graph_psite_base< S, E >::update_id(), mln::p_vertices_psite< G, F >::v(), mln::p_edges_psite< G, F >::v1(), and mln::p_edges_psite< G, F >::v2().
const S* mln::internal::graph_psite_base< S, E >::s_ [protected] |
Definition at line 122 of file graph_psite_base.hh.
Referenced by mln::internal::graph_psite_base< S, E >::change_target(), mln::internal::graph_psite_base< S, E >::graph(), mln::internal::graph_psite_base< S, E >::invalidate(), mln::internal::graph_psite_base< S, E >::is_valid(), mln::internal::graph_psite_base< S, E >::site_set(), mln::internal::graph_psite_base< S, E >::target_(), and mln::internal::graph_psite_base< S, E >::update_id().
S ::site mln::internal::graph_psite_base< S, E >::site_ [protected] |
Definition at line 123 of file graph_psite_base.hh.
Referenced by mln::internal::graph_psite_base< S, E >::change_target(), mln::internal::graph_psite_base< S, E >::subj_(), and mln::internal::graph_psite_base< S, E >::update_id().