该类提供了一个包装器,用于在FunctionBase<Output>兼容接口中评估(libMesh风格的)函数指针。 更多...
#include <wrapped_functor.h>
Public 成员函数 | |
WrappedFunctor (const FunctionBase< Output > &func) | |
用于将FunctionBase函数包装在FEMFunctionBase兼容的shim中的构造函数。 更多... | |
WrappedFunctor (const WrappedFunctor &)=delete | |
由于包含了unique_ptr成员,因此此类无法被复制构造或赋值。 更多... | |
WrappedFunctor & | operator= (const WrappedFunctor &)=delete |
WrappedFunctor (WrappedFunctor &&)=default | |
剩余的5个特殊函数可以被默认。 更多... | |
WrappedFunctor & | operator= (WrappedFunctor &&)=default |
virtual | ~WrappedFunctor ()=default |
virtual std::unique_ptr < FEMFunctionBase< Output > > | clone () const override |
克隆函数,用于创建此对象的副本。 更多... | |
virtual Output | operator() (const FEMContext &context, const Point &p, const Real time=0.) override |
用于计算函数在给定点和时间的值。 更多... | |
virtual void | operator() (const FEMContext &context, const Point &p, const Real time, DenseVector< Output > &output) override |
用于计算函数在给定点和时间的输出向量。 更多... | |
virtual Output | component (const FEMContext &context, unsigned int i, const Point &p, Real time=0.) override |
用于计算函数在给定点、时间和分量索引的特定分量的值。 更多... | |
virtual void | init_context (const FEMContext &) |
准备上下文对象以供使用。 更多... | |
void | operator() (const FEMContext &, const Point &p, DenseVector< Output > &output) |
计算时间无关的向量值函数的评估函数。将输出值设置在传入的output DenseVector中。 更多... | |
Protected 属性 | |
std::unique_ptr< FunctionBase < Output > > | _func |
该类提供了一个包装器,用于在FunctionBase<Output>兼容接口中评估(libMesh风格的)函数指针。
所有重写的虚拟函数在fem_function_base.h中有文档。
Output | 输出类型,默认为Number。 |
在文件 wrapped_functor.h 第 43 行定义.
|
inline |
用于将FunctionBase函数包装在FEMFunctionBase兼容的shim中的构造函数。
func | 要包装的FunctionBase函数对象的引用。 |
在文件 wrapped_functor.h 第 51 行定义.
|
delete |
由于包含了unique_ptr成员,因此此类无法被复制构造或赋值。
|
default |
剩余的5个特殊函数可以被默认。
|
virtualdefault |
|
inlineoverridevirtual |
克隆函数,用于创建此对象的副本。
实现了 libMesh::FEMFunctionBase< Output >.
在文件 wrapped_functor.h 第 72 行定义.
|
inlineoverridevirtual |
用于计算函数在给定点、时间和分量索引的特定分量的值。
context | FEMContext对象。 |
i | 分量索引。 |
p | 三维空间点。 |
time | 时间,默认值为0。 |
重载 libMesh::FEMFunctionBase< Output > .
在文件 wrapped_functor.h 第 110 行定义.
参考 libMesh::WrappedFunctor< Output >::_func.
|
inlinevirtualinherited |
准备上下文对象以供使用。
大多数问题将希望出于效率的考虑重新实现此函数,以便根据其特定的函数要求调用FE::get_*()。
context | FEM上下文对象。 |
被 libMesh::ParsedFEMFunction< Output > , 以及 libMesh::ParsedFEMFunction< T > 重载.
在文件 fem_function_base.h 第 70 行定义.
|
inlineoverridevirtual |
用于计算函数在给定点和时间的值。
context | FEMContext对象。 |
p | 三维空间点。 |
time | 时间,默认值为0。 |
实现了 libMesh::FEMFunctionBase< Output >.
在文件 wrapped_functor.h 第 84 行定义.
参考 libMesh::WrappedFunctor< Output >::_func.
|
inlineoverridevirtual |
用于计算函数在给定点和时间的输出向量。
context | FEMContext对象。 |
p | 三维空间点。 |
time | 时间。 |
output | 输出向量。 |
实现了 libMesh::FEMFunctionBase< Output >.
在文件 wrapped_functor.h 第 96 行定义.
参考 libMesh::WrappedFunctor< Output >::_func.
|
inlineinherited |
计算时间无关的向量值函数的评估函数。将输出值设置在传入的output DenseVector中。
context | FEM上下文对象。 |
p | 坐标点。 |
output | 输出的向量。 |
在文件 fem_function_base.h 第 153 行定义.
|
delete |
|
default |
|
protected |