Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

ElementEnvelope Class Template Reference
[linbox/element]

#include <envelope.h>

Inheritance diagram for ElementEnvelope:

ElementAbstract

Detailed Description

template<class Field>
class LinBox::ElementEnvelope< Field >

Adaptor from archetypical interface to abstract interface, a technicality.

A class meeting the interface specified in ElementArchetype is adapted to be a child class of ElementAbstract. A concrete instance of ElementArchetype representing the adapted class can then be constructed.

All this is in support of the FieldArchetype system.


Public Member Functions

 ElementEnvelope ()
 ElementEnvelope (const typename Field::Element &elem)
 ElementEnvelope (const ElementAbstract &E)
ElementAbstractclone (void) const
ElementAbstractoperator= (const ElementAbstract &E)
 ~ElementEnvelope ()

Friends

class RingEnvelope< Field >
class FieldEnvelope< Field >
class RandIterEnvelope< Field >


Constructor & Destructor Documentation

ElementEnvelope  )  [inline]
 

Default Constructor.

ElementEnvelope const typename Field::Element elem  )  [inline]
 

Constructor from the Field element to be wrapped.

Parameters:
elem Field element object to be wrapped.

ElementEnvelope const ElementAbstract E  )  [inline]
 

Copy constructor. Constructs ElementEnvelope object by copying the element it wraps. This is required to allow element objects to be passed by value into functions. In this implementation, this means copying the element { E.}.

Parameters:
E FieldEnvelope object.

~ElementEnvelope  )  [inline]
 

Destructor.


Member Function Documentation

ElementAbstract* clone void   )  const [inline, virtual]
 

Virtual copy constructor. Required because constructors cannot be virtual. Passes construction on to derived classes.

Returns:
pointer to new element object in dynamic memory.

Implements ElementAbstract.

ElementAbstract& operator= const ElementAbstract E  )  [inline, virtual]
 

Assignment operator.

Returns:
reference to self
Parameters:
x parameterized field base element

Implements ElementAbstract.


Friends And Related Function Documentation

friend class RingEnvelope< Field > [friend]
 

friend class FieldEnvelope< Field > [friend]
 

friend class RandIterEnvelope< Field > [friend]
 


Generated on Fri Jul 8 10:29:50 2005 for linbox by doxygen 1.3.7