#include <attributes.hh>
Inheritance diagram for oln::morpho::attr::card_type< T, Exact >:
Public Types | |
typedef card_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 | |
card_type () | |
Basic Ctor. | |
card_type (const lambda_type &lambda) | |
Ctor from a lambda_type value. | |
template<class I> | card_type (const abstract::image< I > &, const typename mlc::exact< I >::ret::point_type &, const env_type &) |
Ctor from a point and an image. | |
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. | |
const lambda_type & | toLambda_impl () const |
conversion to lambda type implementation. | |
Protected Attributes | |
value_type | value_ |
It is equivalent to an area in 2d, and a volume in 3D.
Definition at line 213 of file attributes.hh.
|
Self type of the class. Reimplemented from oln::morpho::attr::attribute< Exact >. Definition at line 217 of file attributes.hh. |
|
Basic Ctor.
Definition at line 226 of file attributes.hh.
00227 { 00228 }; |
|
Ctor from a point and an image. Every parameters are useless. Definition at line 243 of file attributes.hh.
00245 : 00246 value_(ntg_unit_val(value_type)) 00247 { 00248 }; |
|
"<" operator implementation. This is an implementation of the "<" operator. Override this method to provide a new implementation of this operator.
Definition at line 270 of file attributes.hh.
00271 { 00272 return value_ < lambda; 00273 }; |
|
!= operator implementation. This is an implementation of the != operator. Override this method to provide a new implementation of this operator.
Definition at line 282 of file attributes.hh.
00283 { 00284 return lambda != value_; 00285 }; |
|
+= operator implementation. This is an implementation of the += operator. Override this method to provide a new implementation of this operator.
Definition at line 258 of file attributes.hh.
00259 { 00260 value_ += rhs.value_; 00261 }; |
|
conversion to lambda type implementation. This is an implementation of the toLambda() method. Override this method to provide a new implementation.
Definition at line 294 of file attributes.hh.
00295 { 00296 return value_; 00297 }; |
|
Value used inside the class. Definition at line 300 of file attributes.hh. |