helib::PtrVector_Singleton< T > Struct Template Reference

An implementation of PtrVector from a single T object. More...

#include <PtrVector.h>

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

Public Member Functions

 PtrVector_Singleton (const T *_v)
 
T * operator[] (long i) const override
 
long size () 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
 
virtual long numNonNull (long first=0, long last=LONG_MAX) const
 
virtual const T * ptr2nonNull () const
 

Public Attributes

const T * v
 

Detailed Description

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

An implementation of PtrVector from a single T object.

Constructor & Destructor Documentation

◆ PtrVector_Singleton()

template<typename T >
helib::PtrVector_Singleton< T >::PtrVector_Singleton ( const T *  _v)
inline

Member Function Documentation

◆ operator[]()

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

Implements helib::PtrVector< T >.

◆ size()

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

Implements helib::PtrVector< T >.

Member Data Documentation

◆ v

template<typename T >
const T* helib::PtrVector_Singleton< T >::v