Blender V5.0
blender::VArrayImpl_For_Func< T, GetFunc > Class Template Referencefinal

#include <BLI_virtual_array.hh>

Inherits blender::VArrayImpl< T >.

Public Member Functions

 VArrayImpl_For_Func (const int64_t size, GetFunc get_func)
Public Member Functions inherited from blender::VArrayImpl< T >
 VArrayImpl (const int64_t size)
virtual ~VArrayImpl ()=default
int64_t size () const
virtual CommonVArrayInfo common_info () const
virtual bool try_assign_GVArray (GVArray &) const

Additional Inherited Members

Protected Attributes inherited from blender::VArrayImpl< T >
int64_t size_

Detailed Description

template<typename T, typename GetFunc>
class blender::VArrayImpl_For_Func< T, GetFunc >

This class makes it easy to create a virtual array for an existing function or lambda. The GetFunc should take a single index argument and return the value at that index.

Definition at line 377 of file BLI_virtual_array.hh.

Constructor & Destructor Documentation

◆ VArrayImpl_For_Func()

template<typename T, typename GetFunc>
blender::VArrayImpl_For_Func< T, GetFunc >::VArrayImpl_For_Func ( const int64_t size,
GetFunc get_func )
inline

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