Advanced Multi-Physics (AMP)
On-Line Documentation
NullOperator.h
Go to the documentation of this file.
1#ifndef included_AMP_NullOperator
2#define included_AMP_NullOperator
3
4#include <memory>
5
6#include "AMP/operators/Operator.h"
7#include "AMP/operators/OperatorParameters.h"
8
9#include "AMP/vectors/Vector.h"
10
11#include <string>
12
13
14namespace AMP::Operator {
15
16
21{
22public:
24 NullOperator( void ) {}
25
27 explicit NullOperator( std::shared_ptr<const OperatorParameters> params ) : Operator( params )
28 {
29 }
30
32 virtual ~NullOperator() {}
33
35 std::string type() const override { return "NullOperator"; }
36
43
44protected:
45private:
46};
47} // namespace AMP::Operator
48
49#endif
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
std::shared_ptr< const Vector > const_shared_ptr
Definition Vector.h:65
NullOperator(std::shared_ptr< const OperatorParameters > params)
Constructor.
std::string type() const override
Return the name of the operator.
NullOperator(void)
Default constructor.
virtual void apply(AMP::LinearAlgebra::Vector::const_shared_ptr, AMP::LinearAlgebra::Vector::shared_ptr v) override
Empty apply call.
virtual ~NullOperator()
Destructor.
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page