#include <data.hh>
Public Types | |
typedef mln::trait::ch_value < I, nodes_t >::ret | children_t |
Children image associated type. | |
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 | |
data (const Image< I > &f, const parent_t &parent, const Site_Set< S > &s) | |
Special constructor where the parent computation has delegated to an external function. | |
template<typename N> | |
data (const Image< I > &f, const Site_Set< S > &s, const Neighborhood< N > &nbh) | |
Standard constructor. | |
unsigned | nroots () const |
children_t::rvalue | children (const typename I::psite &p) const |
Child-related materials. | |
const mln::trait::ch_value< I, nodes_t >::ret & | children_image () const |
const S & | domain () const |
Sites materials. | |
const I & | f () const |
I::rvalue | f (const typename I::psite &p) const |
Base function-related materials. | |
bool | is_a_leaf (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_root (const typename I::psite &p) const |
bool | is_valid () const |
Tests. | |
const p_array< typename I::psite > & | leaves () const |
Leaves materials. | |
const p_array< typename I::psite > & | nodes () const |
Nodes materials. | |
parent_t::rvalue | parent (const typename I::psite &p) const |
Parent-related materials. | |
const parent_t & | parent_image () const |
Protected Member Functions | |
void | compute_children_ () |
Protected Attributes | |
mln::trait::ch_value< I, nodes_t >::ret | children_ |
function | f_ |
leaves_t | leaves_ |
nodes_t | nodes_ |
unsigned | nroots_ |
mln::trait::ch_value< I, typename I::psite >::ret | parent_ |
sites_t | s_ |
Private Types | |
typedef data< I, S > | self_ |
Definition at line 99 of file milena/mln/morpho/tree/data.hh.
typedef mln::trait::ch_value< I , nodes_t >::ret mln::morpho::tree::data< I, S >::children_t |
typedef mln::morpho::tree::depth1st_piter<self_> mln::morpho::tree::data< I, S >::depth1st_piter |
Definition at line 137 of file milena/mln/morpho/tree/data.hh.
typedef mln::morpho::tree::dn_leaf_piter<self_> mln::morpho::tree::data< I, S >::dn_leaf_piter |
Definition at line 134 of file milena/mln/morpho/tree/data.hh.
typedef mln::morpho::tree::dn_node_piter<self_> mln::morpho::tree::data< I, S >::dn_node_piter |
Definition at line 129 of file milena/mln/morpho/tree/data.hh.
typedef mln::morpho::tree::dn_site_piter<self_> mln::morpho::tree::data< I, S >::dn_site_piter |
Definition at line 124 of file milena/mln/morpho/tree/data.hh.
typedef I mln::morpho::tree::data< I, S >::function |
typedef up_leaf_piter mln::morpho::tree::data< I, S >::leaf_piter |
Definition at line 135 of file milena/mln/morpho/tree/data.hh.
typedef p_array<typename I ::psite> mln::morpho::tree::data< I, S >::leaves_t |
typedef up_node_piter mln::morpho::tree::data< I, S >::node_piter |
Definition at line 130 of file milena/mln/morpho/tree/data.hh.
typedef p_array<typename I ::psite> mln::morpho::tree::data< I, S >::nodes_t |
typedef mln::trait::ch_value< I , typename I ::psite >::ret mln::morpho::tree::data< I, S >::parent_t |
typedef I ::psite mln::morpho::tree::data< I, S >::psite |
typedef data<I, S> mln::morpho::tree::data< I, S >::self_ [private] |
Definition at line 101 of file milena/mln/morpho/tree/data.hh.
typedef I ::site mln::morpho::tree::data< I, S >::site |
Definition at line 108 of file milena/mln/morpho/tree/data.hh.
typedef up_site_piter mln::morpho::tree::data< I, S >::site_piter |
Definition at line 125 of file milena/mln/morpho/tree/data.hh.
typedef S mln::morpho::tree::data< I, S >::sites_t |
typedef mln::morpho::tree::up_leaf_piter<self_> mln::morpho::tree::data< I, S >::up_leaf_piter |
Definition at line 133 of file milena/mln/morpho/tree/data.hh.
typedef mln::morpho::tree::up_node_piter<self_> mln::morpho::tree::data< I, S >::up_node_piter |
Definition at line 128 of file milena/mln/morpho/tree/data.hh.
typedef mln::morpho::tree::up_site_piter<self_> mln::morpho::tree::data< I, S >::up_site_piter |
Definition at line 123 of file milena/mln/morpho/tree/data.hh.
mln::morpho::tree::data< I, S >::data | ( | const Image< I > & | f, | |
const Site_Set< S > & | s, | |||
const Neighborhood< N > & | nbh | |||
) | [inline] |
Standard constructor.
Definition at line 426 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::compute_children_(), mln::morpho::tree::compute_parent(), mln::exact(), mln::morpho::tree::data< I, S >::f_, mln::morpho::tree::data< I, S >::parent_, and mln::morpho::tree::data< I, S >::s_.
mln::morpho::tree::data< I, S >::data | ( | const Image< I > & | f, | |
const parent_t & | parent, | |||
const Site_Set< S > & | s | |||
) |
Special constructor where the parent computation has delegated to an external function.
(To handle special case of connectivity for example).
mln::trait::ch_value< I, p_array< typename I::psite > >::ret::rvalue mln::morpho::tree::data< I, S >::children | ( | const typename I::psite & | p | ) | const [inline] |
Child-related materials.
Definition at line 591 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::children_, and mln::morpho::tree::data< I, S >::is_a_node().
const mln::trait::ch_value< I, p_array< typename I::psite > >::ret & mln::morpho::tree::data< I, S >::children_image | ( | ) | const [inline] |
Definition at line 600 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::children_.
void mln::morpho::tree::data< I, S >::compute_children_ | ( | ) | [inline, protected] |
Definition at line 442 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::children_, mln::morpho::tree::data< I, S >::f_, mln::initialize(), mln::p_array< P >::insert(), mln::morpho::tree::data< I, S >::is_a_leaf(), mln::morpho::tree::data< I, S >::leaves_, mln::morpho::tree::data< I, S >::nodes_, mln::morpho::tree::data< I, S >::nroots_, mln::p_array< P >::nsites(), mln::morpho::tree::data< I, S >::parent_, and mln::morpho::tree::data< I, S >::s_.
Referenced by mln::morpho::tree::data< I, S >::data().
const S & mln::morpho::tree::data< I, S >::domain | ( | ) | const [inline] |
Sites materials.
Definition at line 559 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::s_.
const I & mln::morpho::tree::data< I, S >::f | ( | ) | const [inline] |
Definition at line 575 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::f_.
I::rvalue mln::morpho::tree::data< I, S >::f | ( | const typename I::psite & | p | ) | const [inline] |
Base function-related materials.
Definition at line 583 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::f_.
bool mln::morpho::tree::data< I, S >::is_a_leaf | ( | const typename I::psite & | p | ) | const [inline] |
Definition at line 531 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::children_, and mln::morpho::tree::data< I, S >::is_valid().
Referenced by mln::morpho::tree::data< I, S >::compute_children_().
bool mln::morpho::tree::data< I, S >::is_a_node | ( | const typename I::psite & | p | ) | const [inline] |
Definition at line 510 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::f_, mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::parent_.
Referenced by mln::morpho::tree::data< I, S >::children().
bool mln::morpho::tree::data< I, S >::is_a_non_root_node | ( | const typename I::psite & | p | ) | const [inline] |
Definition at line 520 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::f_, mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::parent_.
bool mln::morpho::tree::data< I, S >::is_root | ( | const typename I::psite & | p | ) | const [inline] |
Definition at line 499 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::parent_.
bool mln::morpho::tree::data< I, S >::is_valid | ( | ) | const [inline] |
Tests.
Definition at line 491 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::parent_.
Referenced by mln::morpho::tree::data< I, S >::is_a_leaf(), mln::morpho::tree::data< I, S >::is_a_node(), mln::morpho::tree::data< I, S >::is_a_non_root_node(), mln::morpho::tree::data< I, S >::is_root(), mln::morpho::tree::data< I, S >::leaves(), mln::morpho::tree::data< I, S >::nodes(), and mln::morpho::tree::data< I, S >::parent_image().
const p_array< typename I::psite > & mln::morpho::tree::data< I, S >::leaves | ( | ) | const [inline] |
Leaves materials.
Definition at line 550 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::leaves_.
const p_array< typename I::psite > & mln::morpho::tree::data< I, S >::nodes | ( | ) | const [inline] |
Nodes materials.
Definition at line 541 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::nodes_.
unsigned mln::morpho::tree::data< I, S >::nroots | ( | ) | const [inline] |
Definition at line 567 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::nroots_.
mln::trait::ch_value< I, typename I::psite >::ret::rvalue mln::morpho::tree::data< I, S >::parent | ( | const typename I::psite & | p | ) | const [inline] |
const mln::trait::ch_value< I, typename I::psite >::ret & mln::morpho::tree::data< I, S >::parent_image | ( | ) | const [inline] |
Definition at line 482 of file milena/mln/morpho/tree/data.hh.
References mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::parent_.
mln::trait::ch_value< I , nodes_t >::ret mln::morpho::tree::data< I, S >::children_ [protected] |
function mln::morpho::tree::data< I, S >::f_ [protected] |
Definition at line 213 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), mln::morpho::tree::data< I, S >::data(), mln::morpho::tree::data< I, S >::f(), mln::morpho::tree::data< I, S >::is_a_node(), and mln::morpho::tree::data< I, S >::is_a_non_root_node().
leaves_t mln::morpho::tree::data< I, S >::leaves_ [protected] |
Definition at line 217 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), and mln::morpho::tree::data< I, S >::leaves().
nodes_t mln::morpho::tree::data< I, S >::nodes_ [protected] |
Definition at line 216 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), and mln::morpho::tree::data< I, S >::nodes().
unsigned mln::morpho::tree::data< I, S >::nroots_ [protected] |
Definition at line 218 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), and mln::morpho::tree::data< I, S >::nroots().
mln::trait::ch_value< I , typename I ::psite >::ret mln::morpho::tree::data< I, S >::parent_ [protected] |
Definition at line 210 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), mln::morpho::tree::data< I, S >::data(), mln::morpho::tree::data< I, S >::is_a_node(), mln::morpho::tree::data< I, S >::is_a_non_root_node(), mln::morpho::tree::data< I, S >::is_root(), mln::morpho::tree::data< I, S >::is_valid(), and mln::morpho::tree::data< I, S >::parent_image().
sites_t mln::morpho::tree::data< I, S >::s_ [protected] |
Definition at line 214 of file milena/mln/morpho/tree/data.hh.
Referenced by mln::morpho::tree::data< I, S >::compute_children_(), mln::morpho::tree::data< I, S >::data(), and mln::morpho::tree::data< I, S >::domain().