helib::PtrVector_VecPt< T > Struct Template Reference

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

#include <PtrVector.h>

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

Public Member Functions

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

Public Attributes

NTL::Vec< T * > & v
 

Detailed Description

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

An implementation of PtrVector using Vec<T*>

Constructor & Destructor Documentation

◆ PtrVector_VecPt()

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

Member Function Documentation

◆ operator[]()

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

Implements helib::PtrVector< T >.

◆ resize()

template<typename T >
void helib::PtrVector_VecPt< T >::resize ( long  newSize,
UNUSED const PtrVector< T > *  another = nullptr 
)
inlineoverridevirtual

Reimplemented from helib::PtrVector< T >.

◆ size()

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

Implements helib::PtrVector< T >.

Member Data Documentation

◆ v

template<typename T >
NTL::Vec<T*>& helib::PtrVector_VecPt< T >::v