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

Used for logging something that naturally lasts as long as some enclosing scope, such as the current function. 更多...

#include <libmesh_logging.h>

Public 成员函数

 PerfItem (const char *label, const char *header, bool enabled=true, PerfLog *my_perflog=&perflog)
 
 ~PerfItem ()
 

Private 属性

const char * _label
 
const char * _header
 
bool _enabled
 
PerfLog & _perflog
 

详细描述

Used for logging something that naturally lasts as long as some enclosing scope, such as the current function.

Makes it very easy to handle multiple return scenarios, since the event is popped in the destructor. Should not be used directly, instead use the LOG_SCOPE macro, which resolves to nothing at compile time if logging is disabled.

作者
John Peterson
日期
2016

在文件 libmesh_logging.h64 行定义.

构造及析构函数说明

libMesh::PerfItem::PerfItem ( const char *  label,
const char *  header,
bool  enabled = true,
PerfLog *  my_perflog = &perflog 
)
inline

在文件 libmesh_logging.h66 行定义.

参考 _enabled , 以及 _perflog.

69  :
70  _label(label),
71  _header(header),
72  _enabled(enabled),
73  _perflog(*my_perflog)
74  {
75  if (_enabled)
76  _perflog.fast_push(label, header);
77  }
const char * _header
const char * _label
libMesh::PerfItem::~PerfItem ( )
inline

在文件 libmesh_logging.h79 行定义.

参考 _enabled, _header, _label , 以及 _perflog.

80  {
81  if (_enabled)
82  _perflog.fast_pop(_label, _header);
83  }
const char * _header
const char * _label

类成员变量说明

bool libMesh::PerfItem::_enabled
private

在文件 libmesh_logging.h88 行定义.

参考自 PerfItem() , 以及 ~PerfItem().

const char* libMesh::PerfItem::_header
private

在文件 libmesh_logging.h87 行定义.

参考自 ~PerfItem().

const char* libMesh::PerfItem::_label
private

在文件 libmesh_logging.h86 行定义.

参考自 ~PerfItem().

PerfLog& libMesh::PerfItem::_perflog
private

在文件 libmesh_logging.h89 行定义.

参考自 PerfItem() , 以及 ~PerfItem().


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