helib::PtrMatrix_vector< T > Struct Template Reference

An implementation of PtrMatrix using vector< vector<T> > More...

#include <PtrMatrix.h>

Inheritance diagram for helib::PtrMatrix_vector< T >:
helib::PtrMatrix< T >

Public Member Functions

 PtrMatrix_vector (std::vector< std::vector< T >> &mat)
 
PtrVector< T > & operator[] (long i) override
 
const PtrVector< T > & operator[] (long i) const override
 
long size () const override
 
void resize (long newSize) override
 
- Public Member Functions inherited from helib::PtrMatrix< T >
virtual ~PtrMatrix ()
 
virtual const T * ptr2nonNull () const
 

Public Attributes

std::vector< std::vector< T > > & buffer
 
std::vector< PtrVector_vectorT< T > > rows
 

Detailed Description

template<typename T>
struct helib::PtrMatrix_vector< T >

An implementation of PtrMatrix using vector< vector<T> >

Constructor & Destructor Documentation

◆ PtrMatrix_vector()

template<typename T >
helib::PtrMatrix_vector< T >::PtrMatrix_vector ( std::vector< std::vector< T >> &  mat)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<typename T >
const PtrVector<T>& helib::PtrMatrix_vector< T >::operator[] ( long  i) const
inlineoverridevirtual

Implements helib::PtrMatrix< T >.

◆ operator[]() [2/2]

template<typename T >
PtrVector<T>& helib::PtrMatrix_vector< T >::operator[] ( long  i)
inlineoverridevirtual

Implements helib::PtrMatrix< T >.

◆ resize()

template<typename T >
void helib::PtrMatrix_vector< T >::resize ( long  newSize)
inlineoverridevirtual

Reimplemented from helib::PtrMatrix< T >.

◆ size()

template<typename T >
long helib::PtrMatrix_vector< T >::size ( ) const
inlineoverridevirtual

Implements helib::PtrMatrix< T >.

Member Data Documentation

◆ buffer

template<typename T >
std::vector<std::vector<T> >& helib::PtrMatrix_vector< T >::buffer

◆ rows

template<typename T >
std::vector<PtrVector_vectorT<T> > helib::PtrMatrix_vector< T >::rows