Public Types | Public Member Functions | Protected Attributes | Private Types

mln::morpho::tree::data< I, S > Class Template Reference

#include <data.hh>

List of all members.

Public Types

typedef
mln::morpho::tree::depth1st_piter
< self_
depth1st_piter
typedef
mln::morpho::tree::dn_leaf_piter
< self_
dn_leaf_piter
typedef
mln::morpho::tree::dn_node_piter
< self_
dn_node_piter
typedef
mln::morpho::tree::dn_site_piter
< self_
dn_site_piter
typedef I function
 Associated type of the function f.
typedef up_leaf_piter leaf_piter
typedef p_array< typename
I::psite > 
leaves_t
 Leaf set associated type.
typedef up_node_piter node_piter
typedef p_array< typename
I::psite > 
nodes_t
 Node set associated type.
typedef mln::trait::ch_value
< I, typename I::psite >::ret 
parent_t
 Parent image associated type.
typedef I::psite psite
 Psite associated type.
typedef I::site site
typedef up_site_piter site_piter
typedef S sites_t
 Site set associated type.
typedef
mln::morpho::tree::up_leaf_piter
< self_
up_leaf_piter
typedef
mln::morpho::tree::up_node_piter
< self_
up_node_piter
typedef
mln::morpho::tree::up_site_piter
< self_
up_site_piter

Public Member Functions

template<typename N >
 data (const Image< I > &f, const Site_Set< S > &s, const Neighborhood< N > &nbh)
 Constructor.
I::rvalue f (const typename I::psite &p) const
const I & f () const
unsigned nroots () const

const I::psite & parent (const typename I::psite &p) const
 Parent-related materials.
const parent_tparent_image () const

const p_array< typename
I::psite > & 
children (const typename I::psite &p) const
 Child-related materials.
const mln::trait::ch_value< I,
nodes_t >::ret & 
children_image () const

const p_array< typename
I::psite > & 
nodes () const
 Nodes materials.

const p_array< typename
I::psite > & 
leaves () const
 Leaves materials.

const S & domain () const
 Sites materials.

bool is_valid () const
 Tests.
bool is_root (const typename I::psite &p) const
bool is_a_node (const typename I::psite &p) const
bool is_a_non_root_node (const typename I::psite &p) const
bool is_a_leaf (const typename I::psite &p) const

Protected Attributes

mln::trait::ch_value< I,
nodes_t >::ret 
children_
const functionf_
leaves_t leaves_
nodes_t nodes_
unsigned nroots_
mln::trait::ch_value< I,
typename I::psite >::ret 
parent_
const sites_ts_

Private Types

typedef data< I, S > self_

template<typename I, typename S>
class mln::morpho::tree::data< I, S >


Member Typedef Documentation

template<typename I , typename S >
typedef mln::morpho::tree::depth1st_piter<self_> mln::morpho::tree::data< I, S >::depth1st_piter
template<typename I , typename S >
typedef mln::morpho::tree::dn_leaf_piter<self_> mln::morpho::tree::data< I, S >::dn_leaf_piter
template<typename I , typename S >
typedef mln::morpho::tree::dn_node_piter<self_> mln::morpho::tree::data< I, S >::dn_node_piter
template<typename I , typename S >
typedef mln::morpho::tree::dn_site_piter<self_> mln::morpho::tree::data< I, S >::dn_site_piter
template<typename I , typename S >
typedef I mln::morpho::tree::data< I, S >::function

Associated type of the function f.

template<typename I , typename S >
typedef up_leaf_piter mln::morpho::tree::data< I, S >::leaf_piter
template<typename I , typename S >
typedef p_array<typename I ::psite> mln::morpho::tree::data< I, S >::leaves_t

Leaf set associated type.

template<typename I , typename S >
typedef up_node_piter mln::morpho::tree::data< I, S >::node_piter
template<typename I , typename S >
typedef p_array<typename I ::psite> mln::morpho::tree::data< I, S >::nodes_t

Node set associated type.

template<typename I , typename S >
typedef mln::trait::ch_value< I , typename I ::psite >::ret mln::morpho::tree::data< I, S >::parent_t

Parent image associated type.

template<typename I , typename S >
typedef I ::psite mln::morpho::tree::data< I, S >::psite

Psite associated type.

template<typename I , typename S >
typedef data<I, S> mln::morpho::tree::data< I, S >::self_ [private]
template<typename I , typename S >
typedef I ::site mln::morpho::tree::data< I, S >::site
template<typename I , typename S >
typedef up_site_piter mln::morpho::tree::data< I, S >::site_piter
template<typename I , typename S >
typedef S mln::morpho::tree::data< I, S >::sites_t

Site set associated type.

template<typename I , typename S >
typedef mln::morpho::tree::up_leaf_piter<self_> mln::morpho::tree::data< I, S >::up_leaf_piter
template<typename I , typename S >
typedef mln::morpho::tree::up_node_piter<self_> mln::morpho::tree::data< I, S >::up_node_piter
template<typename I , typename S >
typedef mln::morpho::tree::up_site_piter<self_> mln::morpho::tree::data< I, S >::up_site_piter

Constructor & Destructor Documentation

template<typename I , typename S >
template<typename N >
mln::morpho::tree::data< I, S >::data ( const Image< I > &  f,
const Site_Set< S > &  s,
const Neighborhood< N > &  nbh 
) [inline]

Member Function Documentation

template<typename I , typename S >
const p_array< typename I::psite > & mln::morpho::tree::data< I, S >::children ( const typename I::psite &  p  )  const [inline]

Child-related materials.

References mln::morpho::tree::data< I, S >::children_.

template<typename I , typename S >
const mln::trait::ch_value< I, p_array< typename I::psite > >::ret & mln::morpho::tree::data< I, S >::children_image (  )  const [inline]
template<typename I , typename S >
const S & mln::morpho::tree::data< I, S >::domain (  )  const [inline]

Sites materials.

References mln::morpho::tree::data< I, S >::s_.

template<typename I , typename S >
I::rvalue mln::morpho::tree::data< I, S >::f ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
const I & mln::morpho::tree::data< I, S >::f (  )  const [inline]
template<typename I , typename S >
bool mln::morpho::tree::data< I, S >::is_a_leaf ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
bool mln::morpho::tree::data< I, S >::is_a_node ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
bool mln::morpho::tree::data< I, S >::is_a_non_root_node ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
bool mln::morpho::tree::data< I, S >::is_root ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
bool mln::morpho::tree::data< I, S >::is_valid (  )  const [inline]
template<typename I , typename S >
const p_array< typename I::psite > & mln::morpho::tree::data< I, S >::leaves (  )  const [inline]
template<typename I , typename S >
const p_array< typename I::psite > & mln::morpho::tree::data< I, S >::nodes (  )  const [inline]
template<typename I , typename S >
unsigned mln::morpho::tree::data< I, S >::nroots (  )  const [inline]
template<typename I , typename S >
const I::psite & mln::morpho::tree::data< I, S >::parent ( const typename I::psite &  p  )  const [inline]
template<typename I , typename S >
const mln::trait::ch_value< I, typename I::psite >::ret & mln::morpho::tree::data< I, S >::parent_image (  )  const [inline]

Member Data Documentation

template<typename I , typename S >
mln::trait::ch_value< I , nodes_t >::ret mln::morpho::tree::data< I, S >::children_ [protected]
template<typename I , typename S >
const function& mln::morpho::tree::data< I, S >::f_ [protected]
template<typename I , typename S >
leaves_t mln::morpho::tree::data< I, S >::leaves_ [protected]
template<typename I , typename S >
nodes_t mln::morpho::tree::data< I, S >::nodes_ [protected]
template<typename I , typename S >
unsigned mln::morpho::tree::data< I, S >::nroots_ [protected]
template<typename I , typename S >
mln::trait::ch_value< I , typename I ::psite >::ret mln::morpho::tree::data< I, S >::parent_ [protected]
template<typename I , typename S >
const sites_t& mln::morpho::tree::data< I, S >::s_ [protected]