#include <extension_fun.hh>
Inherits mln::internal::image_identity< I, I::domain_t, mln::extension_fun< I, F > >.
Public Types | |
| typedef I::value | rvalue |
| Return type of read-only access. | |
| typedef extension_fun < tag::image_< I > , tag::function_< F > > | skeleton |
| Skeleton. | |
| typedef I::value | value |
| Image value type. | |
Public Member Functions | |
| const F & | extension () const |
| Give the extension function. | |
| extension_fun (I &ima, const F &fun) | |
Constructor from an image ima and a function fun. | |
| extension_fun () | |
| Constructor without argument. | |
| template<typename P> | |
| bool | has (const P &p) const |
Test if p is valid. | |
| internal::morpher_lvalue_< I >::ret | operator() (const typename I::psite &p) |
Read-write access to the image value located at site p. | |
| I::value | operator() (const typename I::psite &p) const |
Read-only access to the image value located at site p;. | |
| typedef I ::value mln::extension_fun< I, F >::rvalue |
Return type of read-only access.
| typedef extension_fun< tag::image_<I>, tag::function_<F> > mln::extension_fun< I, F >::skeleton |
Skeleton.
| typedef I ::value mln::extension_fun< I, F >::value |
| mln::extension_fun< I, F >::extension_fun | ( | ) | [inline] |
Constructor without argument.
| mln::extension_fun< I, F >::extension_fun | ( | I & | ima, | |
| const F & | fun | |||
| ) | [inline] |
Constructor from an image ima and a function fun.
| const F & mln::extension_fun< I, F >::extension | ( | ) | const [inline] |
Give the extension function.
| bool mln::extension_fun< I, F >::has | ( | const P & | p | ) | const [inline] |
Test if p is valid.
It returns always true, assuming that the function is valid for any p.
| internal::morpher_lvalue_< I >::ret mln::extension_fun< I, F >::operator() | ( | const typename I::psite & | p | ) | [inline] |
Read-write access to the image value located at site p.
| I::value mln::extension_fun< I, F >::operator() | ( | const typename I::psite & | p | ) | const [inline] |
Read-only access to the image value located at site p;.
1.5.6