Image with a single value. More...
#include <flat_image.hh>
Inherits image_primary< T, S, flat_image< T, S > >.
Public Types | |
typedef T & | lvalue |
Return type of read-write access. | |
typedef const T & | rvalue |
Return type of read-only access. | |
typedef flat_image < tag::value_< T > , tag::domain_< S > > | skeleton |
Skeleton. | |
typedef T | value |
Value associated type. | |
Public Member Functions | |
const S & | domain () const |
Give the definition domain. | |
flat_image (const T &val, const S &pset) | |
Constructor. | |
flat_image () | |
Constructor without argument. | |
bool | has (const typename S::psite &p) const |
Test if p is valid: always return true. | |
const T & | operator() (const typename S::psite &p) const |
Read-only access to the image value located at point p . | |
T & | operator() (const typename S::psite &p) |
Read-write access to the image value located at point p . |
Image with a single value.
Definition at line 105 of file flat_image.hh.
typedef T& mln::flat_image< T, S >::lvalue |
Return type of read-write access.
Definition at line 118 of file flat_image.hh.
typedef const T& mln::flat_image< T, S >::rvalue |
Return type of read-only access.
Definition at line 115 of file flat_image.hh.
typedef flat_image< tag::value_<T>, tag::domain_<S> > mln::flat_image< T, S >::skeleton |
Skeleton.
Definition at line 108 of file flat_image.hh.
typedef T mln::flat_image< T, S >::value |
Value associated type.
Definition at line 112 of file flat_image.hh.
mln::flat_image< T, S >::flat_image | ( | ) | [inline] |
Constructor without argument.
Definition at line 191 of file flat_image.hh.
mln::flat_image< T, S >::flat_image | ( | const T & | val, | |
const S & | pset | |||
) | [inline] |
Constructor.
Definition at line 197 of file flat_image.hh.
const S & mln::flat_image< T, S >::domain | ( | ) | const [inline] |
Give the definition domain.
Definition at line 214 of file flat_image.hh.
bool mln::flat_image< T, S >::has | ( | const typename S::psite & | p | ) | const [inline] |
Test if p
is valid: always return true.
Definition at line 222 of file flat_image.hh.
const T & mln::flat_image< T, S >::operator() | ( | const typename S::psite & | p | ) | const [inline] |
Read-only access to the image value located at point p
.
Definition at line 230 of file flat_image.hh.
T & mln::flat_image< T, S >::operator() | ( | const typename S::psite & | p | ) | [inline] |
Read-write access to the image value located at point p
.
Definition at line 239 of file flat_image.hh.