Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vcsn::algebra::SemiringBase Struct Template Reference
[Semiring]

SemiringBase is the base class for all structures that are semirings. More...

Inheritance diagram for vcsn::algebra::SemiringBase:

Inheritance graph
[legend]
List of all members.

Public Methods

template<class T> bool can_choose_non_stareable (SELECTOR(T)) const
 Indicate wether it is possible or not to call choose_non_stareable.

template<class T> Element< Self, T > choose_stareable (SELECTOR(T)) const
 Return a randomly choosed stareable weight.

template<class T> Element< Self, T > choose_non_stareable (SELECTOR(T)) const
 Return a randomly choosed non-stareable weight.

template<typename T> Element< Self, T > identity (SELECTOR(T)) const
 returns the identity of the monoid (if mul_kind).

template<typename T> Element< Self, T > zero (SELECTOR(T)) const
 returns the zero of the monoid (if add_kind).


Protected Methods

 SemiringBase ()
 Default constructor is protected since it is an abstract class.

 SemiringBase (const SemiringBase &other)
 Copy constructor is protected since it is an abstract class.


Detailed Description

template<class Self>
struct vcsn::algebra::SemiringBase< Self >

SemiringBase is the base class for all structures that are semirings.


Generated on Wed Jul 2 19:09:12 2003 for Vaucanson by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002