#include <attributes.hh>
Inheritance diagram for oln::morpho::attr::height_type< T, Exact >:
Public Types | |
typedef height_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 | |
height_type () | |
Basic Ctor. | |
height_type (const lambda_type &lambda) | |
Ctor from a lambda_type value. | |
template<class I> | |
height_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 & | getMin () const |
Accessor to min value. | |
const value_type & | getMax () const |
Accessor to max value. | |
const value_type & | getMin_impl () const |
Implementation of getMin(). | |
const value_type & | getMax_impl () const |
Implementation of getMax(). | |
void | pe_impl (const height_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_ |
Current value. | |
value_type | min_ |
Current minimum. | |
value_type | max_ |
Current maximum. |
Definition at line 723 of file morpho/attributes.hh.
oln::morpho::attr::height_type< T, Exact >::height_type | ( | ) | [inline] |
Basic Ctor.
Definition at line 736 of file morpho/attributes.hh.
const value_type& oln::morpho::attr::height_type< T, Exact >::getMin | ( | ) | const [inline] |
Accessor to min value.
Virtual method.
Definition at line 769 of file morpho/attributes.hh.
Referenced by oln::morpho::attr::height_type< T, Exact >::pe_impl().
00770 { 00771 mlc_dispatch(getMin)(); 00772 };
const value_type& oln::morpho::attr::height_type< T, Exact >::getMax | ( | ) | const [inline] |
Accessor to max value.
Virtual method.
Definition at line 780 of file morpho/attributes.hh.
Referenced by oln::morpho::attr::height_type< T, Exact >::pe_impl().
00781 { 00782 mlc_dispatch(getMax)(); 00783 };
const value_type& oln::morpho::attr::height_type< T, Exact >::getMin_impl | ( | ) | const [inline] |
Implementation of getMin().
Override this method in order to provide a new version of getMin().
Definition at line 794 of file morpho/attributes.hh.
References oln::morpho::attr::height_type< T, Exact >::min_.
00795 { 00796 return min_; 00797 };
const value_type& oln::morpho::attr::height_type< T, Exact >::getMax_impl | ( | ) | const [inline] |
Implementation of getMax().
Override this method in order to provide a new version of getMax().
Definition at line 807 of file morpho/attributes.hh.
References oln::morpho::attr::height_type< T, Exact >::max_.
00808 { 00809 return max_; 00810 };
void oln::morpho::attr::height_type< T, Exact >::pe_impl | ( | const height_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 819 of file morpho/attributes.hh.
References oln::morpho::attr::height_type< T, Exact >::getMax(), oln::morpho::attr::height_type< T, Exact >::getMin(), oln::morpho::attr::height_type< T, Exact >::max_, oln::morpho::attr::height_type< T, Exact >::min_, and oln::morpho::attr::height_type< T, Exact >::value_.
00820 { 00821 min_ = ntg::min(min_, rhs.getMin()); 00822 max_ = ntg::max(max_, rhs.getMax()); 00823 value_ = max_ - min_; 00824 };
bool oln::morpho::attr::height_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 833 of file morpho/attributes.hh.
References oln::morpho::attr::height_type< T, Exact >::value_.
00834 { 00835 return value_ < lambda; 00836 };
bool oln::morpho::attr::height_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 845 of file morpho/attributes.hh.
References oln::morpho::attr::height_type< T, Exact >::value_.
00846 { 00847 return lambda != value_; 00848 };