oln::morpho::attr::card_type< T, Exact > Class Template Reference

Cardinal attribute. More...

#include <attributes.hh>

Inheritance diagram for oln::morpho::attr::card_type< T, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::morpho::attr::card_type< T, Exact >:

Collaboration graph
[legend]
List of all members.

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_

Detailed Description

template<class T = unsigned, class Exact = mlc::final>
class oln::morpho::attr::card_type< T, Exact >

Cardinal attribute.

It is equivalent to an area in 2d, and a volume in 3D.

Definition at line 213 of file attributes.hh.


Member Typedef Documentation

template<class T = unsigned, class Exact = mlc::final>
typedef card_type<T, Exact> oln::morpho::attr::card_type< T, Exact >::self_type
 

Self type of the class.

Reimplemented from oln::morpho::attr::attribute< Exact >.

Definition at line 217 of file attributes.hh.


Constructor & Destructor Documentation

template<class T = unsigned, class Exact = mlc::final>
oln::morpho::attr::card_type< T, Exact >::card_type  )  [inline]
 

Basic Ctor.

Warning:
After this call, the object is only instantiated (not initialized).

Definition at line 226 of file attributes.hh.

00227           {
00228           };

template<class T = unsigned, class Exact = mlc::final>
template<class I>
oln::morpho::attr::card_type< T, Exact >::card_type const abstract::image< I > &  ,
const typename mlc::exact< I >::ret::point_type &  ,
const env_type & 
[inline]
 

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           };


Member Function Documentation

template<class T = unsigned, class Exact = mlc::final>
bool oln::morpho::attr::card_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.

Warning:
This method SHOULDN'T be called.

Definition at line 270 of file attributes.hh.

00271           {
00272             return value_ < lambda;
00273           };

template<class T = unsigned, class Exact = mlc::final>
bool oln::morpho::attr::card_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.

Warning:
This method SHOULDN'T be called.

Definition at line 282 of file attributes.hh.

00283           {
00284             return lambda != value_;
00285           };

template<class T = unsigned, class Exact = mlc::final>
void oln::morpho::attr::card_type< T, Exact >::pe_impl const self_type rhs  )  [inline]
 

+= operator implementation.

This is an implementation of the += operator. Override this method to provide a new implementation of this operator.

Warning:
This method SHOULDN'T be called.

Definition at line 258 of file attributes.hh.

00259           {
00260             value_ += rhs.value_;
00261           };

template<class T = unsigned, class Exact = mlc::final>
const lambda_type& oln::morpho::attr::card_type< T, Exact >::toLambda_impl  )  const [inline]
 

conversion to lambda type implementation.

This is an implementation of the toLambda() method. Override this method to provide a new implementation.

Warning:
This method SHOULDN'T be called .

Definition at line 294 of file attributes.hh.

00295         {
00296           return value_;
00297         };


Member Data Documentation

template<class T = unsigned, class Exact = mlc::final>
value_type oln::morpho::attr::card_type< T, Exact >::value_ [protected]
 

Value used inside the class.

Definition at line 300 of file attributes.hh.


The documentation for this class was generated from the following file:
Generated on Thu Apr 15 20:16:49 2004 for Olena by doxygen 1.3.6-20040222