#include <attributes.hh>
Inheritance diagram for oln::morpho::attr::minvalue_type< T, Exact >:
Public Types | |
typedef minvalue_type< T, Exact > | self_type |
typedef mlc::exact_vt< self_type, Exact >::ret | exact_type |
typedef oln::morpho::attr::attr_traits< exact_type >::value_type | value_type |
typedef oln::morpho::attr::attr_traits< exact_type >::env_type | env_type |
typedef oln::morpho::attr::attr_traits< exact_type >::lambda_type | lambda_type |
Public Member Functions | |
minvalue_type () | |
Basic Ctor. | |
minvalue_type (const lambda_type &lambda) | |
Ctor from a lambda_type value. | |
template<class I> | |
minvalue_type (const oln::abstract::image< I > &input, const typename mlc::exact< I >::ret::point_type &p, const env_type &) | |
Ctor from a point and an image. | |
const value_type & | getValue () const |
Accessor to value_. | |
const value_type & | getValue_impl () const |
Implementation of getValue(). | |
void | pe_impl (const minvalue_type &rhs) |
+= operator implementation. | |
bool | less_impl (const lambda_type &lambda) const |
"<" operator implementation. | |
bool | ne_impl (const lambda_type &lambda) const |
!= operator implementation. | |
Protected Attributes | |
value_type | value_ |
Value of the attribute. |
T | Data type. | |
Exact | The exact type. |
Definition at line 982 of file morpho/attributes.hh.
oln::morpho::attr::minvalue_type< T, Exact >::minvalue_type | ( | ) | [inline] |
Basic Ctor.
Definition at line 995 of file morpho/attributes.hh.
oln::morpho::attr::minvalue_type< T, Exact >::minvalue_type | ( | const lambda_type & | lambda | ) | [inline] |
Ctor from a lambda_type value.
Definition at line 1004 of file morpho/attributes.hh.
01004 : value_(lambda) 01005 { 01006 };
oln::morpho::attr::minvalue_type< T, Exact >::minvalue_type | ( | const oln::abstract::image< I > & | input, | |
const typename mlc::exact< I >::ret::point_type & | p, | |||
const env_type & | ||||
) | [inline] |
Ctor from a point and an image.
I | Image exact type. |
Definition at line 1017 of file morpho/attributes.hh.
01019 : 01020 value_(input[p]) 01021 { 01022 }
const value_type& oln::morpho::attr::minvalue_type< T, Exact >::getValue | ( | ) | const [inline] |
Accessor to value_.
Virtual method.
Definition at line 1030 of file morpho/attributes.hh.
Referenced by oln::morpho::attr::minvalue_type< T, Exact >::pe_impl().
01031 { 01032 mlc_dispatch(getValue)(); 01033 };
const value_type& oln::morpho::attr::minvalue_type< T, Exact >::getValue_impl | ( | ) | const [inline] |
Implementation of getValue().
Override this method in order to provide a new version of getValue().
Definition at line 1043 of file morpho/attributes.hh.
References oln::morpho::attr::minvalue_type< T, Exact >::value_.
01044 { 01045 return value_; 01046 };
void oln::morpho::attr::minvalue_type< T, Exact >::pe_impl | ( | const minvalue_type< T, Exact > & | rhs | ) | [inline] |
+= operator implementation.
This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1055 of file morpho/attributes.hh.
References oln::morpho::attr::minvalue_type< T, Exact >::getValue(), and oln::morpho::attr::minvalue_type< T, Exact >::value_.
bool oln::morpho::attr::minvalue_type< T, Exact >::less_impl | ( | const lambda_type & | lambda | ) | const [inline] |
"<" operator implementation.
This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1067 of file morpho/attributes.hh.
References oln::morpho::attr::minvalue_type< T, Exact >::value_.
01068 { 01069 return value_ > lambda; 01070 };
bool oln::morpho::attr::minvalue_type< T, Exact >::ne_impl | ( | const lambda_type & | lambda | ) | const [inline] |
!= operator implementation.
This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1079 of file morpho/attributes.hh.
References oln::morpho::attr::minvalue_type< T, Exact >::value_.
01080 { 01081 return lambda != value_; 01082 };