#include <attributes.hh>
Inheritance diagram for oln::morpho::attr::integral_type< T, Exact >:
Public Types | |
typedef integral_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 | |
integral_type () | |
Basic Ctor. | |
integral_type (const lambda_type &lambda) | |
Ctor from a lambda_type value. | |
template<class I> | integral_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 & | getReflevel () const |
Accessor to the reference level. | |
const value_type & | getArea () const |
Accessor to the current area. | |
const value_type & | getValue_impl () const |
Implementation of getValue(). | |
const value_type & | getReflevel_impl () const |
Implementation of getReflevel(). | |
const value_type & | getArea_impl () const |
Implementation of getArea(). | |
void | pe_impl (const self_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 | reflevel_ |
Reference level. | |
value_type | area_ |
Current area. | |
value_type | value_ |
Current value (deduced from area and level). |
It is equivalent to volume in 2D, and weight in 3D.
Definition at line 358 of file attributes.hh.
|
Self type of the class. Reimplemented from oln::morpho::attr::attribute< Exact >. Definition at line 362 of file attributes.hh. |
|
Basic Ctor.
Definition at line 371 of file attributes.hh.
00372 { 00373 }; |
|
Accessor to the current area.
Definition at line 422 of file attributes.hh.
00423 { 00424 mlc_dispatch(getArea)(); 00425 }; |
|
Implementation of getArea(). Override this method in order to provide a new version of getArea().
Definition at line 462 of file attributes.hh. References oln::morpho::attr::integral_type< T, Exact >::area_.
00463 { 00464 return area_; 00465 }; |
|
Accessor to the reference level.
Definition at line 412 of file attributes.hh.
00413 { 00414 mlc_dispatch(getReflevel)(); 00415 }; |
|
Implementation of getReflevel(). Override this method in order to provide a new version of getReflevel().
Definition at line 449 of file attributes.hh. References oln::morpho::attr::integral_type< T, Exact >::reflevel_.
00450 { 00451 return reflevel_; 00452 }; |
|
Accessor to value_. Virtual method.
Definition at line 402 of file attributes.hh.
00403 { 00404 mlc_dispatch(getValue)(); 00405 }; |
|
Implementation of getValue(). Override this method in order to provide a new version of getValue().
Definition at line 436 of file attributes.hh.
00437 { 00438 return value_; 00439 }; |
|
"<" operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 487 of file attributes.hh.
00488 { 00489 return value_ < lambda; 00490 }; |
|
!= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 499 of file attributes.hh.
00500 { 00501 return lambda != value_; 00502 }; |
|
+= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 474 of file attributes.hh. References oln::morpho::attr::integral_type< T, Exact >::area_, and oln::morpho::attr::integral_type< T, Exact >::reflevel_.
|