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

表示 ConstTypeTensorColumn 类,用于访问 TypeTensor 的列并进行只读操作。 更多...

#include <type_tensor.h>

Public 成员函数

 ConstTypeTensorColumn (const TypeTensor< T > &tensor, unsigned int j)
 构造函数,初始化 ConstTypeTensorColumn。 更多...
 
const T & operator() (const unsigned int i) const
 返回该张量的第 $ i $ 行第 $ j $ 列元素的只读引用。 更多...
 
const T & slice (const unsigned int i) const
 返回该张量的第 $ i $ 行第 $ j $ 列元素的只读引用。 更多...
 

Private 属性

const TypeTensor< T > * _tensor
 
const unsigned int _j
 

详细描述

template<typename T>
class libMesh::ConstTypeTensorColumn< T >

表示 ConstTypeTensorColumn 类,用于访问 TypeTensor 的列并进行只读操作。

ConstTypeTensorColumn 允许您访问 TypeTensor 的特定列,并对其进行只读操作。

模板参数
T列中的元素类型。

在文件 type_tensor.h41 行定义.

构造及析构函数说明

template<typename T>
libMesh::ConstTypeTensorColumn< T >::ConstTypeTensorColumn ( const TypeTensor< T > &  tensor,
unsigned int  j 
)
inline

构造函数,初始化 ConstTypeTensorColumn。

参数
tensor要操作的 TypeTensor 对象。
j列索引。

在文件 type_tensor.h581 行定义.

581  :
582  _tensor(&tensor), _j(j) {}
const TypeTensor< T > * _tensor
Definition: type_tensor.h:607

成员函数说明

template<typename T>
const T& libMesh::ConstTypeTensorColumn< T >::operator() ( const unsigned int  i) const
inline

返回该张量的第 $ i $ 行第 $ j $ 列元素的只读引用。

参数
i行索引。
返回
$ i $ 行第 $ j $ 列元素的只读引用。

在文件 type_tensor.h590 行定义.

591  {
592  return (*_tensor)(i, _j);
593  }
const TypeTensor< T > * _tensor
Definition: type_tensor.h:607
template<typename T>
const T& libMesh::ConstTypeTensorColumn< T >::slice ( const unsigned int  i) const
inline

返回该张量的第 $ i $ 行第 $ j $ 列元素的只读引用。

参数
i行索引。
返回
$ i $ 行第 $ j $ 列元素的只读引用。

在文件 type_tensor.h601 行定义.

602  {
603  return (*_tensor)(i, _j);
604  }
const TypeTensor< T > * _tensor
Definition: type_tensor.h:607

类成员变量说明

template<typename T>
const unsigned int libMesh::ConstTypeTensorColumn< T >::_j
private

在文件 type_tensor.h608 行定义.

template<typename T>
const TypeTensor<T>* libMesh::ConstTypeTensorColumn< T >::_tensor
private

在文件 type_tensor.h607 行定义.


该类的文档由以下文件生成: