$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::internal::graph_psite_base< S, E > Class Template Reference

#include <mln/core/internal/graph_psite_base.hh>

Public Member Functions

const S::graph_element & element () const
bool has_target () const
void invalidate ()
bool is_valid () const
 operator const typename S::graph_element & () const
 operator typename S::graph_element::id_t () const
 operator unsigned () const
const S::graph_element & p_hook_ () const
const S::site & subj_ ()
const siteto_site () const
void change_target (const S &new_target)
void update_id (unsigned elt_id)
const S * target_ () const
const S & site_set () const
const S::graph_t & graph () const
id_t id () const

Protected Member Functions

 graph_psite_base ()
 graph_psite_base (const S &s)
 graph_psite_base (const S &, unsigned id)

Protected Attributes

S::graph_element elt_
const S * s_
S::site site_

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

Detailed Description

template<typename S, typename E>
class mln::internal::graph_psite_base< S, E >

Definition at line 48 of file graph_psite_base.hh.

Constructor & Destructor Documentation

template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::graph_psite_base ( )
protected

Constructors.

template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::graph_psite_base ( const S &  s)
protected

t A site set.

See Also
p_vertices, p_edges.
template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::graph_psite_base ( const S &  ,
unsigned  id 
)
protected

t A site set.

See Also
p_vertices, p_edges. id The id of the element associated to this psite.

Member Function Documentation

template<typename S, typename E>
void mln::internal::graph_psite_base< S, E >::change_target ( const S &  new_target)

Setters.

Change the targe site set.

template<typename S, typename E>
const S::graph_element& mln::internal::graph_psite_base< S, E >::element ( ) const

Explicit conversion towards the graph element (vertex or edge).

template<typename S, typename E>
const S::graph_t& mln::internal::graph_psite_base< S, E >::graph ( ) const

Return the graph associated to the target of this psite.

template<typename E>
bool mln::Pseudo_Site< E >::has_target ( ) const
inherited
template<typename S, typename E>
id_t mln::internal::graph_psite_base< S, E >::id ( ) const

Return the id of the graph element designated by this psite.

template<typename S, typename E>
void mln::internal::graph_psite_base< S, E >::invalidate ( )

Invalidate this psite.

template<typename S, typename E>
bool mln::internal::graph_psite_base< S, E >::is_valid ( ) const

Check whether it is valid.

template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::operator const typename S::graph_element & ( ) const

Conversion towards the graph element (vertex or edge).

template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::operator typename S::graph_element::id_t ( ) const

Convertion towards the graph element Id.

template<typename S, typename E>
mln::internal::graph_psite_base< S, E >::operator unsigned ( ) const

Convertion towards the graph element Id.

template<typename S, typename E>
const S::graph_element& mln::internal::graph_psite_base< S, E >::p_hook_ ( ) const

INTERNAL_API Return the underlying element.

template<typename S, typename E>
const S& mln::internal::graph_psite_base< S, E >::site_set ( ) const

Return the site set (the target).

template<typename S, typename E>
const S ::site& mln::internal::graph_psite_base< S, E >::subj_ ( )
template<typename S, typename E>
const S* mln::internal::graph_psite_base< S, E >::target_ ( ) const

Getters.

Return the target (the site set).

const site& mln::internal::pseudo_site_base_< const S::site & , E >::to_site ( ) const
inherited
template<typename S, typename E>
void mln::internal::graph_psite_base< S, E >::update_id ( unsigned  elt_id)

Update the underlying element's id.

This element can be an edge, a vertex...

Member Data Documentation

template<typename S, typename E>
S::graph_element mln::internal::graph_psite_base< S, E >::elt_
protected

Definition at line 126 of file graph_psite_base.hh.

template<typename S, typename E>
const S* mln::internal::graph_psite_base< S, E >::s_
protected

Definition at line 124 of file graph_psite_base.hh.

template<typename S, typename E>
S ::site mln::internal::graph_psite_base< S, E >::site_
protected

Definition at line 125 of file graph_psite_base.hh.

Member Typedef Documentation

template<typename E>
typedef Pseudo_Site<void> mln::Pseudo_Site< E >::category
inherited

Definition at line 69 of file pseudo_site.hh.

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

Definition at line 105 of file object.hh.

template<typename S, typename E>
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 59 of file pseudo_site_base.hh.

template<typename S, typename E>
typedef S mln::internal::graph_psite_base< S, E >::target

Definition at line 55 of file graph_psite_base.hh.