Xmipp  v3.23.11-Nereus
Public Types | Public Member Functions | List of all members
cif::pdb::matrix< T > Class Template Reference

Public Types

using value_type = T
 

Public Member Functions

 matrix ()=delete
 
 matrix (const matrix &)=delete
 
matrixoperator= (const matrix &)=delete
 
 matrix (uint32_t m, uint32_t n, T v=T())
 
 ~matrix ()
 
uint32_t dim_m () const
 
uint32_t dim_n () const
 
value_type operator() (uint32_t i, uint32_t j) const
 
value_typeoperator() (uint32_t i, uint32_t j)
 

Detailed Description

template<typename T>
class cif::pdb::matrix< T >

Definition at line 5899 of file pdb2cif.cpp.

Member Typedef Documentation

◆ value_type

template<typename T>
using cif::pdb::matrix< T >::value_type = T

Definition at line 5902 of file pdb2cif.cpp.

Constructor & Destructor Documentation

◆ matrix() [1/3]

template<typename T>
cif::pdb::matrix< T >::matrix ( )
delete

◆ matrix() [2/3]

template<typename T>
cif::pdb::matrix< T >::matrix ( const matrix< T > &  )
delete

◆ matrix() [3/3]

template<typename T>
cif::pdb::matrix< T >::matrix ( uint32_t  m,
uint32_t  n,
v = T() 
)
inline

Definition at line 5908 of file pdb2cif.cpp.

5909  : m_m(m)
5910  , m_n(n)
5911  {
5912  m_data = new value_type[m_m * m_n];
5913  std::fill(m_data, m_data + (m_m * m_n), v);
5914  }
int m
int * n

◆ ~matrix()

template<typename T>
cif::pdb::matrix< T >::~matrix ( )
inline

Definition at line 5916 of file pdb2cif.cpp.

5917  {
5918  delete[] m_data;
5919  }

Member Function Documentation

◆ dim_m()

template<typename T>
uint32_t cif::pdb::matrix< T >::dim_m ( ) const
inline

Definition at line 5921 of file pdb2cif.cpp.

5921 { return m_m; }

◆ dim_n()

template<typename T>
uint32_t cif::pdb::matrix< T >::dim_n ( ) const
inline

Definition at line 5922 of file pdb2cif.cpp.

5922 { return m_n; }

◆ operator()() [1/2]

template<typename T>
value_type cif::pdb::matrix< T >::operator() ( uint32_t  i,
uint32_t  j 
) const
inline

Definition at line 5924 of file pdb2cif.cpp.

5925  {
5926  assert(i < m_m);
5927  assert(j < m_n);
5928  return m_data[i * m_n + j];
5929  }
#define i
#define j

◆ operator()() [2/2]

template<typename T>
value_type& cif::pdb::matrix< T >::operator() ( uint32_t  i,
uint32_t  j 
)
inline

Definition at line 5931 of file pdb2cif.cpp.

5932  {
5933  assert(i < m_m);
5934  assert(j < m_n);
5935  return m_data[i * m_n + j];
5936  }
#define i
#define j

◆ operator=()

template<typename T>
matrix& cif::pdb::matrix< T >::operator= ( const matrix< T > &  )
delete

The documentation for this class was generated from the following file: