Psi4
Public Member Functions | Public Attributes | List of all members
psi::ThreeIndex< T > Struct Template Reference

Templated skeleton three index array for convenience. More...

#include <multiarr.h>

Public Member Functions

T & operator() (int i, int j, int k)
 
operator() (int i, int j, int k) const
 
 ThreeIndex ()
 
 ThreeIndex (int dim1, int dim2, int dim3)
 
 ThreeIndex (const ThreeIndex< T > &other)
 
void fill (T value)
 

Public Attributes

int dims [3]
 
std::vector< T > data
 

Detailed Description

template<typename T>
struct psi::ThreeIndex< T >

Templated skeleton three index array for convenience.

Constructor & Destructor Documentation

template<typename T>
psi::ThreeIndex< T >::ThreeIndex ( )
inline
template<typename T>
psi::ThreeIndex< T >::ThreeIndex ( int  dim1,
int  dim2,
int  dim3 
)
inline
template<typename T>
psi::ThreeIndex< T >::ThreeIndex ( const ThreeIndex< T > &  other)
inline

Member Function Documentation

template<typename T>
void psi::ThreeIndex< T >::fill ( value)
inline
template<typename T>
T& psi::ThreeIndex< T >::operator() ( int  i,
int  j,
int  k 
)
inline
template<typename T>
T psi::ThreeIndex< T >::operator() ( int  i,
int  j,
int  k 
) const
inline

Member Data Documentation

template<typename T>
std::vector<T> psi::ThreeIndex< T >::data
template<typename T>
int psi::ThreeIndex< T >::dims[3]

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