helib::PtrMatrix_ptvector< T > Struct Template Reference

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

#include <PtrMatrix.h>

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

Public Member Functions

 PtrMatrix_ptvector (std::vector< std::vector< T > * > &mat)
 
PtrVector< T > & operator[] (long i) override
 
const PtrVector< T > & operator[] (long i) const override
 
long size () const override
 
- Public Member Functions inherited from helib::PtrMatrix< T >
virtual void resize (long newSize)
 
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_ptvector< T >

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

Constructor & Destructor Documentation

◆ PtrMatrix_ptvector()

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

Member Function Documentation

◆ operator[]() [1/2]

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

Implements helib::PtrMatrix< T >.

◆ operator[]() [2/2]

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

Implements helib::PtrMatrix< T >.

◆ size()

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

Implements helib::PtrMatrix< T >.

Member Data Documentation

◆ buffer

template<typename T >
std::vector<std::vector<T>*>& helib::PtrMatrix_ptvector< T >::buffer

◆ rows

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