libmesh解析
本工作只是尝试解析原libmesh的代码,供学习使用
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
libMesh::Predicates::facelocal_pid< T > 模板结构体 参考

#include <single_predicates.h>

类 libMesh::Predicates::facelocal_pid< T > 继承关系图:
[图例]

Public 成员函数

 facelocal_pid (processor_id_type p)
 
virtual ~facelocal_pid ()=default
 
virtual bool operator() (const T &it) const override
 

Protected 成员函数

virtual std::unique_ptr
< predicate< T > > 
clone () const override
 

Protected 属性

const processor_id_type _pid
 

详细描述

template<typename T>
struct libMesh::Predicates::facelocal_pid< T >

返回
true if the element pointed to is face-local to (is on or has a neighbor on the partition of) a given processor id.

在文件 single_predicates.h265 行定义.

构造及析构函数说明

template<typename T >
libMesh::Predicates::facelocal_pid< T >::facelocal_pid ( processor_id_type  p)
inline

在文件 single_predicates.h267 行定义.

267 : _pid(p) {}
template<typename T >
virtual libMesh::Predicates::facelocal_pid< T >::~facelocal_pid ( )
virtualdefault

成员函数说明

template<typename T >
virtual std::unique_ptr<predicate<T> > libMesh::Predicates::facelocal_pid< T >::clone ( ) const
inlineoverrideprotectedvirtual

实现了 libMesh::Predicates::predicate< T >.

在文件 single_predicates.h282 行定义.

282 { return std::make_unique<facelocal_pid<T>>(*this); }
template<typename T >
virtual bool libMesh::Predicates::facelocal_pid< T >::operator() ( const T &  it) const
inlineoverridevirtual

实现了 libMesh::Predicates::predicate< T >.

在文件 single_predicates.h271 行定义.

参考 libMesh::Predicates::facelocal_pid< T >::_pid.

272  {
273  if ((*it)->processor_id() == _pid)
274  return true;
275  for (auto n : (*it)->neighbor_ptr_range())
276  if (n && n->processor_id() == _pid)
277  return true;
278  return false;
279  }

类成员变量说明

template<typename T >
const processor_id_type libMesh::Predicates::facelocal_pid< T >::_pid
protected

该结构体的文档由以下文件生成: