Blender  V2.93
Public Member Functions | List of all members
blender::fn::GMutableSpan Class Reference

#include <FN_generic_span.hh>

Public Member Functions

 GMutableSpan (const CPPType &type, void *buffer, int64_t size)
 
 GMutableSpan (const CPPType &type)
 
template<typename T >
 GMutableSpan (MutableSpan< T > array)
 
 operator GSpan () const
 
const CPPTypetype () const
 
bool is_empty () const
 
int64_t size () const
 
void * data () const
 
void * operator[] (int64_t index) const
 
template<typename T >
MutableSpan< Ttyped () const
 

Detailed Description

A generic mutable span. It behaves just like a blender::MutableSpan<T>, but the type is only known at run-time.

Definition at line 94 of file FN_generic_span.hh.

Constructor & Destructor Documentation

◆ GMutableSpan() [1/3]

blender::fn::GMutableSpan::GMutableSpan ( const CPPType type,
void *  buffer,
int64_t  size 
)
inline

◆ GMutableSpan() [2/3]

blender::fn::GMutableSpan::GMutableSpan ( const CPPType type)
inline

Definition at line 109 of file FN_generic_span.hh.

◆ GMutableSpan() [3/3]

template<typename T >
blender::fn::GMutableSpan::GMutableSpan ( MutableSpan< T array)
inline

Definition at line 114 of file FN_generic_span.hh.

Member Function Documentation

◆ data()

void* blender::fn::GMutableSpan::data ( ) const
inline

◆ is_empty()

bool blender::fn::GMutableSpan::is_empty ( ) const
inline

◆ operator GSpan()

blender::fn::GMutableSpan::operator GSpan ( ) const
inline

Definition at line 119 of file FN_generic_span.hh.

References data_.

◆ operator[]()

void* blender::fn::GMutableSpan::operator[] ( int64_t  index) const
inline

Definition at line 144 of file FN_generic_span.hh.

References BLI_assert, data_, POINTER_OFFSET, and blender::fn::CPPType::size().

◆ size()

int64_t blender::fn::GMutableSpan::size ( ) const
inline

◆ type()

const CPPType& blender::fn::GMutableSpan::type ( ) const
inline

◆ typed()

template<typename T >
MutableSpan<T> blender::fn::GMutableSpan::typed ( ) const
inline

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