#include <attributes.hh>
Inheritance diagram for oln::morpho::attr::maxvalue_type< T, Exact >:
Public Types | |
typedef maxvalue_type< T, Exact > | self_type |
Self type of the class. | |
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 | |
maxvalue_type () | |
Basic Ctor. | |
maxvalue_type (const lambda_type &lambda) | |
Ctor from a lambda_type value. | |
template<class I> | maxvalue_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 maxvalue_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 887 of file attributes.hh.
|
Basic Ctor.
Definition at line 900 of file attributes.hh.
00901 { 00902 }; |
|
Ctor from a lambda_type value.
Definition at line 909 of file attributes.hh.
00909 : value_(lambda) 00910 { 00911 }; |
|
Ctor from a point and an image.
Definition at line 922 of file attributes.hh.
00924 : 00925 value_(input[p]) 00926 { 00927 }; |
|
Accessor to value_. Virtual method.
Definition at line 935 of file attributes.hh. Referenced by oln::morpho::attr::maxvalue_type< T, Exact >::pe_impl().
00936 { 00937 mlc_dispatch(getValue)(); 00938 }; |
|
Implementation of getValue(). Override this method in order to provide a new version of getValue().
Definition at line 948 of file attributes.hh.
00949 { 00950 return value_; 00951 }; |
|
"<" operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 972 of file attributes.hh.
00973 { 00974 return value_ < lambda; 00975 }; |
|
!= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 984 of file attributes.hh.
00985 { 00986 return lambda != value_; 00987 }; |
|
+= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 960 of file attributes.hh. References oln::morpho::attr::maxvalue_type< T, Exact >::getValue().
00961 { 00962 value_ = ntg::max(value_, rhs.getValue()); 00963 }; |