Blender  V3.3
Public Member Functions | List of all members
blender::VArrayImpl_For_Func< T, GetFunc > Class Template Referencefinal

#include <BLI_virtual_array.hh>

Inheritance diagram for blender::VArrayImpl_For_Func< T, GetFunc >:
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 &UNUSED(varray)) const
 
virtual bool is_same (const VArrayImpl< T > &UNUSED(other)) 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 395 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

Definition at line 400 of file BLI_virtual_array.hh.


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