CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
Matriplex::MatriplexVector< MP > Class Template Reference

#include <MatriplexVector.h>

Public Member Functions

TAt (idx_t n, idx_t i, idx_t j)
 
void copyIn (idx_t n, T *arr)
 
void copyOut (idx_t n, T *arr)
 
 MatriplexVector (idx_t n)
 
MP & mplex (int i)
 
const MP & mplex (int i) const
 
Toperator() (idx_t n, idx_t i, idx_t j)
 
MP & operator[] (int i)
 
const MP & operator[] (int i) const
 
void setVal (T v)
 
idx_t size () const
 
 ~MatriplexVector ()
 

Private Types

typedef MP::value_type T
 

Private Attributes

const idx_t fN
 
MP * fV
 

Detailed Description

template<class MP>
class Matriplex::MatriplexVector< MP >

Definition at line 14 of file MatriplexVector.h.

Member Typedef Documentation

◆ T

template<class MP >
typedef MP::value_type Matriplex::MatriplexVector< MP >::T
private

Definition at line 18 of file MatriplexVector.h.

Constructor & Destructor Documentation

◆ MatriplexVector()

template<class MP >
Matriplex::MatriplexVector< MP >::MatriplexVector ( idx_t  n)
inline

◆ ~MatriplexVector()

template<class MP >
Matriplex::MatriplexVector< MP >::~MatriplexVector ( )
inline

Definition at line 23 of file MatriplexVector.h.

References free(), and Matriplex::MatriplexVector< MP >::fV.

23 { std::free(fV); }
void free(void *ptr) noexcept

Member Function Documentation

◆ At()

template<class MP >
T& Matriplex::MatriplexVector< MP >::At ( idx_t  n,
idx_t  i,
idx_t  j 
)
inline

◆ copyIn()

template<class MP >
void Matriplex::MatriplexVector< MP >::copyIn ( idx_t  n,
T arr 
)
inline

◆ copyOut()

template<class MP >
void Matriplex::MatriplexVector< MP >::copyOut ( idx_t  n,
T arr 
)
inline

◆ mplex() [1/2]

template<class MP >
MP& Matriplex::MatriplexVector< MP >::mplex ( int  i)
inline

Definition at line 27 of file MatriplexVector.h.

References Matriplex::MatriplexVector< MP >::fV, and mps_fire::i.

27 { return fV[i]; }

◆ mplex() [2/2]

template<class MP >
const MP& Matriplex::MatriplexVector< MP >::mplex ( int  i) const
inline

Definition at line 30 of file MatriplexVector.h.

References Matriplex::MatriplexVector< MP >::fV, and mps_fire::i.

30 { return fV[i]; }

◆ operator()()

template<class MP >
T& Matriplex::MatriplexVector< MP >::operator() ( idx_t  n,
idx_t  i,
idx_t  j 
)
inline

◆ operator[]() [1/2]

template<class MP >
MP& Matriplex::MatriplexVector< MP >::operator[] ( int  i)
inline

Definition at line 28 of file MatriplexVector.h.

References Matriplex::MatriplexVector< MP >::fV, and mps_fire::i.

28 { return fV[i]; }

◆ operator[]() [2/2]

template<class MP >
const MP& Matriplex::MatriplexVector< MP >::operator[] ( int  i) const
inline

Definition at line 31 of file MatriplexVector.h.

References Matriplex::MatriplexVector< MP >::fV, and mps_fire::i.

31 { return fV[i]; }

◆ setVal()

template<class MP >
void Matriplex::MatriplexVector< MP >::setVal ( T  v)
inline

Definition at line 33 of file MatriplexVector.h.

References mps_fire::i, and findQualityFiles::v.

33  {
34  for (idx_t i = 0; i < kTotSize; ++i) {
35  fArray[i] = v;
36  }
37  }

◆ size()

template<class MP >
idx_t Matriplex::MatriplexVector< MP >::size ( void  ) const
inline

Member Data Documentation

◆ fN

template<class MP >
const idx_t Matriplex::MatriplexVector< MP >::fN
private

◆ fV

template<class MP >
MP* Matriplex::MatriplexVector< MP >::fV
private