#include <envelope.h>
Inheritance diagram for ElementEnvelope:
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 Methods | |
ElementEnvelope () | |
ElementEnvelope (const typename Field::Element &elem) | |
ElementEnvelope (const ElementAbstract &E) | |
ElementAbstract * | clone (void) const |
ElementAbstract & | operator= (const ElementAbstract &E) |
~ElementEnvelope () | |
Friends | |
class | RingEnvelope< Field > |
class | FieldEnvelope< Field > |
class | RandIterEnvelope< Field > |
|
Default Constructor. |
|
Constructor from the Field element to be wrapped.
|
|
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 {\tt E.\_elem}.
|
|
Destructor. |
|
Virtual copy constructor. Required because constructors cannot be virtual. Passes construction on to derived classes.
Implements ElementAbstract. |
|
Assignment operator.
Implements ElementAbstract. |
|
|
|
|
|
|