Blender V5.0
blender::VVectorArray< T > Class Template Referenceabstract

#include <BLI_virtual_vector_array.hh>

Inherited by blender::VVectorArray_For_GVVectorArray< T >.

Public Member Functions

 VVectorArray (const int64_t size)
virtual ~VVectorArray ()=default
int64_t size () const
bool is_empty () const
int64_t get_vector_size (const int64_t index) const
T get_vector_element (const int64_t index, const int64_t index_in_vector) const
bool is_single_vector () const

Protected Member Functions

virtual int64_t get_vector_size_impl (int64_t index) const =0
virtual T get_vector_element_impl (int64_t index, int64_t index_in_vetor) const =0
virtual bool is_single_vector_impl () const

Protected Attributes

int64_t size_

Detailed Description

template<typename T>
class blender::VVectorArray< T >

A read-only virtual array of vectors.

Definition at line 21 of file BLI_virtual_vector_array.hh.

Constructor & Destructor Documentation

◆ VVectorArray()

template<typename T>
blender::VVectorArray< T >::VVectorArray ( const int64_t size)
inline

◆ ~VVectorArray()

template<typename T>
virtual blender::VVectorArray< T >::~VVectorArray ( )
virtualdefault

Member Function Documentation

◆ get_vector_element()

template<typename T>
T blender::VVectorArray< T >::get_vector_element ( const int64_t index,
const int64_t index_in_vector ) const
inline

◆ get_vector_element_impl()

template<typename T>
virtual T blender::VVectorArray< T >::get_vector_element_impl ( int64_t index,
int64_t index_in_vetor ) const
protectedpure virtual

Implemented in blender::VVectorArray_For_GVVectorArray< T >.

References T.

Referenced by get_vector_element().

◆ get_vector_size()

template<typename T>
int64_t blender::VVectorArray< T >::get_vector_size ( const int64_t index) const
inline

◆ get_vector_size_impl()

template<typename T>
virtual int64_t blender::VVectorArray< T >::get_vector_size_impl ( int64_t index) const
protectedpure virtual

◆ is_empty()

template<typename T>
bool blender::VVectorArray< T >::is_empty ( ) const
inline

Definition at line 40 of file BLI_virtual_vector_array.hh.

References size_.

◆ is_single_vector()

template<typename T>
bool blender::VVectorArray< T >::is_single_vector ( ) const
inline

Definition at line 64 of file BLI_virtual_vector_array.hh.

References is_single_vector_impl(), and size_.

◆ is_single_vector_impl()

template<typename T>
virtual bool blender::VVectorArray< T >::is_single_vector_impl ( ) const
inlineprotectedvirtual

Reimplemented in blender::VVectorArray_For_GVVectorArray< T >.

Definition at line 77 of file BLI_virtual_vector_array.hh.

Referenced by is_single_vector().

◆ size()

template<typename T>
int64_t blender::VVectorArray< T >::size ( ) const
inline

Member Data Documentation

◆ size_

template<typename T>
int64_t blender::VVectorArray< T >::size_
protected

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