由Roy Stogner创作 2012年 更多...
#include <const_function.h>
Public 成员函数 | |
ConstFunction (const Output &c) | |
构造函数,用于初始化常量值。 更多... | |
ConstFunction (ConstFunction &&)=default | |
该类可以使用默认的移动构造和分配。 更多... | |
ConstFunction (const ConstFunction &)=default | |
ConstFunction & | operator= (const ConstFunction &)=default |
ConstFunction & | operator= (ConstFunction &&)=default |
virtual | ~ConstFunction ()=default |
默认析构函数。 更多... | |
virtual Output | operator() (const Point &, const Real=0) override |
重载操作符,用于计算标量值。 更多... | |
virtual void | operator() (const Point &, const Real, DenseVector< Output > &output) override |
重载操作符,用于计算矢量值。 更多... | |
virtual std::unique_ptr < FunctionBase< Output > > | clone () const override |
克隆函数。创建并返回一个与当前实例相同类型的新实例。 更多... | |
virtual void | init () |
实际的初始化过程。 更多... | |
virtual void | clear () |
清除函数。 更多... | |
void | operator() (const Point &p, DenseVector< Output > &output) |
Evaluation function for time-independent vector-valued functions. 更多... | |
virtual Output | component (unsigned int i, const Point &p, Real time=0.) |
bool | initialized () const |
void | set_is_time_dependent (bool is_time_dependent) |
设置函数是否依赖时间的函数。 这仅应该由无法本地确定时间依赖性的子类使用。 在这种情况下,应在构造之后立即使用这个函数。 更多... | |
bool | is_time_dependent () const |
Protected 属性 | |
const FunctionBase * | _master |
指向我们的主函数对象的const指针,初始化为 nullptr。 可能存在需要多个函数的情况,但为了节省内存,一个主函数对象可以处理一些集中的数据。 更多... | |
bool | _initialized |
当 init() 被调用以确保一切都准备好后,可以调用 operator() (...) 时为 true。 更多... | |
bool | _is_time_dependent |
成员变量用于缓存函数是否真正依赖于时间。 更多... | |
Private 属性 | |
Output | _c |
由Roy Stogner创作 2012年
返回始终不变的单一值的函数。
在文件 const_function.h 第 41 行定义.
|
inlineexplicit |
构造函数,用于初始化常量值。
c | 返回的常量值。 |
在文件 const_function.h 第 49 行定义.
参考 libMesh::FunctionBase< Output >::_initialized , 以及 libMesh::FunctionBase< Output >::_is_time_dependent.
|
default |
该类可以使用默认的移动构造和分配。
|
default |
|
virtualdefault |
默认析构函数。
|
inlinevirtualinherited |
清除函数。
这个函数可以用来清除函数对象的状态,以备重新使用。
被 libMesh::ParsedFunction< Output, OutputGradient >, libMesh::ParsedFunction< T > , 以及 libMesh::AnalyticFunction< Output > 重载.
在文件 function_base.h 第 95 行定义.
|
inlineoverridevirtual |
克隆函数。创建并返回一个与当前实例相同类型的新实例。
实现了 libMesh::FunctionBase< Output >.
被 libMesh::ZeroFunction< Output > 重载.
在文件 const_function.h 第 100 行定义.
参考 libMesh::ConstFunction< Output >::_c.
|
inlinevirtualinherited |
p
和时间 time
处的向量分量 i。
i+1
的DenseVector的operator(),如果operator()在该限制之外进行访问,将导致意外行为。p | 坐标点。 |
time | 时间。 |
output | 输出的向量。 |
被 libMesh::CompositeFunction< Output >, libMesh::ParsedFunction< Output, OutputGradient >, libMesh::ParsedFunction< T > , 以及 libMesh::WrappedFunction< Output > 重载.
在文件 function_base.h 第 240 行定义.
|
inlinevirtualinherited |
实际的初始化过程。
这个函数可以用来进行函数对象的初始化工作。
被 libMesh::ParsedFunction< Output, OutputGradient >, libMesh::ParsedFunction< T > , 以及 libMesh::AnalyticFunction< Output > 重载.
在文件 function_base.h 第 89 行定义.
|
inlineinherited |
p
和时间 time
处的向量的分量 i。
子类可以选择重写这个函数以提高效率,因为默认实现基于向量评估,通常是不必要的低效率。
i | 分量的索引。 |
p | 坐标点。 |
time | 时间。 |
i+1
的DenseVector的operator(),如果operator() 在该限制之外进行访问,将导致意外行为。 在文件 function_base.h 第 216 行定义.
|
inlineinherited |
true
,否则返回 false。
这个函数用于查询函数对象是否依赖于时间。有些函数对象的时间依赖性是从外部确定的,因此可以使用这个函数设置。
在文件 function_base.h 第 232 行定义.
参考自 libMesh::CompositeFunction< Output >::attach_subfunction().
|
inlineoverridevirtual |
重载操作符,用于计算标量值。
p | 计算点的坐标。 |
time | 时间值,默认为0。 |
实现了 libMesh::FunctionBase< Output >.
在文件 const_function.h 第 76 行定义.
参考 libMesh::ConstFunction< Output >::_c.
|
inlineoverridevirtual |
重载操作符,用于计算矢量值。
p | 计算点的坐标。 |
time | 时间值。 |
output | 计算得到的矢量值。 |
实现了 libMesh::FunctionBase< Output >.
在文件 const_function.h 第 86 行定义.
参考 libMesh::ConstFunction< Output >::_c , 以及 libMesh::DenseVector< T >::size().
|
inlineinherited |
Evaluation function for time-independent vector-valued functions.
Sets output values in the passed-in output
DenseVector.
在文件 function_base.h 第 252 行定义.
|
default |
|
default |
|
inlineinherited |
设置函数是否依赖时间的函数。 这仅应该由无法本地确定时间依赖性的子类使用。 在这种情况下,应在构造之后立即使用这个函数。
在文件 function_base.h 第 224 行定义.
|
private |
|
protectedinherited |
当 init()
被调用以确保一切都准备好后,可以调用 operator()
(...) 时为 true。
这个成员变量用于跟踪函数对象是否已经完成初始化,如果已经准备好进行评估,则为 true。
在文件 function_base.h 第 191 行定义.
参考自 libMesh::AnalyticFunction< Output >::AnalyticFunction(), libMesh::ConstFunction< Output >::ConstFunction(), libMesh::ParsedFunction< Output, OutputGradient >::ParsedFunction() , 以及 libMesh::WrappedFunction< Output >::WrappedFunction().
|
protectedinherited |
成员变量用于缓存函数是否真正依赖于时间。
在文件 function_base.h 第 197 行定义.
参考自 libMesh::CompositeFunction< Output >::attach_subfunction() , 以及 libMesh::ConstFunction< Output >::ConstFunction().
|
protectedinherited |
指向我们的主函数对象的const指针,初始化为 nullptr。
可能存在需要多个函数的情况,但为了节省内存,一个主函数对象可以处理一些集中的数据。
这个成员变量用于指向主函数对象的指针,有时候多个函数对象需要共享一些数据,可以通过主函数对象来管理。
在文件 function_base.h 第 184 行定义.