#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 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 1003 of file attributes.hh.
|
Basic Ctor.
Definition at line 1016 of file attributes.hh.
01017 { 01018 }; |
|
Ctor from a lambda_type value.
Definition at line 1025 of file attributes.hh.
01025 : value_(lambda) 01026 { 01027 }; |
|
Ctor from a point and an image.
Definition at line 1038 of file attributes.hh.
01040 : 01041 value_(input[p]) 01042 { 01043 }; |
|
Accessor to value_. Virtual method.
Definition at line 1051 of file attributes.hh. Referenced by oln::morpho::attr::minvalue_type< T, Exact >::pe_impl().
01052 { 01053 mlc_dispatch(getValue)(); 01054 }; |
|
Implementation of getValue(). Override this method in order to provide a new version of getValue().
Definition at line 1064 of file attributes.hh.
01065 { 01066 return value_; 01067 }; |
|
"<" operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1088 of file attributes.hh.
01089 { 01090 return value_ > lambda; 01091 }; |
|
!= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1100 of file attributes.hh.
01101 { 01102 return lambda != value_; 01103 }; |
|
+= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 1076 of file attributes.hh. References oln::morpho::attr::minvalue_type< T, Exact >::getValue().
01077 { 01078 value_ = ntg::min(value_, rhs.getValue()); 01079 }; |