helib::PtrVector_VecT< T > Struct Template Reference

An implementation of PtrVector using Vec<T> More...

#include <PtrVector.h>

Inheritance diagram for helib::PtrVector_VecT< T >:
helib::PtrVector< T >

Public Member Functions

 PtrVector_VecT (NTL::Vec< T > &_v)
 
T * operator[] (long i) const override
 
long size () const override
 
void resize (long newSize, const PtrVector< T > *another) override
 
long numNonNull (long first=0, long last=LONG_MAX) const override
 
const T * ptr2nonNull () const override
 
- Public Member Functions inherited from helib::PtrVector< T >
virtual void resize (long newSize, UNUSED const PtrVector *another=nullptr)
 
virtual ~PtrVector ()
 
bool isSet (long i) const
 

Public Attributes

NTL::Vec< T > & v
 

Detailed Description

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

An implementation of PtrVector using Vec<T>

Constructor & Destructor Documentation

◆ PtrVector_VecT()

template<typename T >
helib::PtrVector_VecT< T >::PtrVector_VecT ( NTL::Vec< T > &  _v)
inline

Member Function Documentation

◆ numNonNull()

template<typename T >
long helib::PtrVector_VecT< T >::numNonNull ( long  first = 0,
long  last = LONG_MAX 
) const
inlineoverridevirtual

Reimplemented from helib::PtrVector< T >.

◆ operator[]()

template<typename T >
T* helib::PtrVector_VecT< T >::operator[] ( long  i) const
inlineoverridevirtual

Implements helib::PtrVector< T >.

◆ ptr2nonNull()

template<typename T >
const T* helib::PtrVector_VecT< T >::ptr2nonNull ( ) const
inlineoverridevirtual

Reimplemented from helib::PtrVector< T >.

◆ resize()

template<typename T >
void helib::PtrVector_VecT< T >::resize ( long  newSize,
const PtrVector< T > *  another 
)
inlineoverride

◆ size()

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

Implements helib::PtrVector< T >.

Member Data Documentation

◆ v

template<typename T >
NTL::Vec<T>& helib::PtrVector_VecT< T >::v