Loading...
Searching...
No Matches
Vdf_VectorAccessor< T > Class Template Reference

Accessor class. More...

#include <vectorAccessor.h>

Public Member Functions

 Vdf_VectorAccessor ()
 Default constructor.
 
 Vdf_VectorAccessor (Vdf_VectorData *data, const Vdf_VectorData::Info &info)
 Constructor.
 
bool IsEmpty () const
 Returns true if vector is empty.
 
size_t GetNumValues () const
 Returns size of the vector, ie.
 
bool IsBoxed () const
 Returns true if this accessor is providing element-wise access into a boxed container.
 
T & operator[] (size_t idx) const
 Returns a reference to an element.
 

Detailed Description

template<typename T>
class Vdf_VectorAccessor< T >

Accessor class.

This is used to provide fast access with making sure that the type checks are done no matter what.

Definition at line 27 of file vectorAccessor.h.

Constructor & Destructor Documentation

◆ Vdf_VectorAccessor() [1/2]

Vdf_VectorAccessor ( )
inline

Default constructor.

Definition at line 36 of file vectorAccessor.h.

◆ Vdf_VectorAccessor() [2/2]

Vdf_VectorAccessor ( Vdf_VectorData data,
const Vdf_VectorData::Info &  info 
)
inline

Constructor.

Definition at line 43 of file vectorAccessor.h.

Member Function Documentation

◆ GetNumValues()

size_t GetNumValues ( ) const
inline

Returns size of the vector, ie.

the number of values it holds.

Definition at line 92 of file vectorAccessor.h.

◆ IsBoxed()

bool IsBoxed ( ) const
inline

Returns true if this accessor is providing element-wise access into a boxed container.

Definition at line 97 of file vectorAccessor.h.

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Returns true if vector is empty.

Definition at line 88 of file vectorAccessor.h.

◆ operator[]()

T & operator[] ( size_t  idx) const
inline

Returns a reference to an element.

Definition at line 101 of file vectorAccessor.h.


The documentation for this class was generated from the following file: