helib::PtrVector< T > Struct Template Referenceabstract

Abstract class for an array of objects. More...

#include <PtrVector.h>

Inheritance diagram for helib::PtrVector< T >:
helib::PtrVector_Singleton< T > helib::PtrVector_slice< T > helib::PtrVector_VecPt< T > helib::PtrVector_VecT< T > helib::PtrVector_vectorPt< T > helib::PtrVector_vectorT< T >

Public Member Functions

virtual T * operator[] (long) const =0
 
virtual long size () const =0
 
virtual void resize (long newSize, UNUSED const PtrVector *another=nullptr)
 
virtual ~PtrVector ()
 
bool isSet (long i) const
 
virtual long numNonNull (long first=0, long last=LONG_MAX) const
 
virtual const T * ptr2nonNull () const
 

Detailed Description

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

Abstract class for an array of objects.

Constructor & Destructor Documentation

◆ ~PtrVector()

template<typename T >
virtual helib::PtrVector< T >::~PtrVector ( )
inlinevirtual

Member Function Documentation

◆ isSet()

template<typename T >
bool helib::PtrVector< T >::isSet ( long  i) const
inline

◆ numNonNull()

template<typename T >
virtual long helib::PtrVector< T >::numNonNull ( long  first = 0,
long  last = LONG_MAX 
) const
inlinevirtual

◆ operator[]()

◆ ptr2nonNull()

template<typename T >
virtual const T* helib::PtrVector< T >::ptr2nonNull ( ) const
inlinevirtual

◆ resize()

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

◆ size()