#include <PDEOperator.hpp>

Public Types | |
| enum | Type { firstorderop, firstorderopTransposed, divmugrad, secondorderop, massop } |
Public Member Functions | |
| const size_t & | numberOfSubOperators () const |
| virtual std::string | typeName () const =0 |
| const PDEOperator::Type & | type () const |
| virtual ConstReferenceCounting < PDEOperator > | operator* (const ConstReferenceCounting< ScalarFunctionBase > &c) const =0 |
| virtual ConstReferenceCounting < PDEOperator > | operator- () const =0 |
| PDEOperator (const PDEOperator::Type &type, const size_t &numberOfSubOperators) | |
| PDEOperator (const PDEOperator &P) | |
| virtual | ~PDEOperator () |
Protected Attributes | |
| const PDEOperator::Type | __type |
| size_t | __numberOfSubOperators |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const PDEOperator &pdeOperator) |
Definition at line 38 of file PDEOperator.hpp.
| enum PDEOperator::Type |
Definition at line 41 of file PDEOperator.hpp.
00041 { 00042 firstorderop, 00043 firstorderopTransposed, 00044 divmugrad, 00045 secondorderop, 00046 massop 00047 };
| PDEOperator::PDEOperator | ( | const PDEOperator::Type & | type, | |
| const size_t & | numberOfSubOperators | |||
| ) | [inline] |
Constructor
| type | the type of the operator | |
| numberOfSubOperators | the number of sub-operators |
Definition at line 126 of file PDEOperator.hpp.
00128 : __type(type), 00129 __numberOfSubOperators(numberOfSubOperators) 00130 { 00131 ; 00132 }
| PDEOperator::PDEOperator | ( | const PDEOperator & | P | ) | [inline] |
Copy constructor
| P | a given PDEOperator |
Definition at line 139 of file PDEOperator.hpp.
00140 : __type(P.__type), 00141 __numberOfSubOperators(P.__numberOfSubOperators) 00142 { 00143 ; 00144 }
| virtual PDEOperator::~PDEOperator | ( | ) | [inline, virtual] |
| const size_t& PDEOperator::numberOfSubOperators | ( | ) | const [inline] |
Read only access to the number of sub-operators
Definition at line 63 of file PDEOperator.hpp.
References __numberOfSubOperators.
00064 { 00065 return __numberOfSubOperators; 00066 }
| virtual std::string PDEOperator::typeName | ( | ) | const [pure virtual] |
Return the name of the PDEOperator
Implemented in DivMuGrad, FirstOrderOperator, MassOperator, and SecondOrderOperator.
| const PDEOperator::Type& PDEOperator::type | ( | ) | const [inline] |
Read-only access to the type of the operator
Definition at line 82 of file PDEOperator.hpp.
References __type.
Referenced by DiscretizedOperators< FiniteElement::ElementaryMatrix >::DiscretizedOperators().
00083 { 00084 return __type; 00085 }
| virtual ConstReferenceCounting<PDEOperator> PDEOperator::operator* | ( | const ConstReferenceCounting< ScalarFunctionBase > & | c | ) | const [pure virtual] |
Each operator can be "multiplied" by a coefficient c
| c | the coefficient |
Implemented in DivMuGrad, FirstOrderOperator, MassOperator, and SecondOrderOperator.
| virtual ConstReferenceCounting<PDEOperator> PDEOperator::operator- | ( | ) | const [pure virtual] |
Each operator should know to compute its opposite
Implemented in DivMuGrad, FirstOrderOperator, MassOperator, and SecondOrderOperator.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const PDEOperator & | pdeOperator | |||
| ) | [friend] |
Writes a PDEOperator to a stream
| os | the output stream | |
| pdeOperator | a PDEOperator |
Definition at line 114 of file PDEOperator.hpp.
00115 { 00116 os << pdeOperator.typeName(); 00117 return os; 00118 }
const PDEOperator::Type PDEOperator::__type [protected] |
size_t PDEOperator::__numberOfSubOperators [protected] |
This is used for "composed" operators to provied an efficient way to know how many elementary matrices are needed to discretize it
Definition at line 52 of file PDEOperator.hpp.
Referenced by numberOfSubOperators().
1.5.6