Blender V5.0
blender::CommonVArrayInfo Struct Reference

#include <BLI_virtual_array.hh>

Public Types

enum class  Type : uint8_t { Any , Span , Single }

Public Member Functions

 CommonVArrayInfo ()=default
 CommonVArrayInfo (const Type _type, const bool _may_have_ownership, const void *_data)

Public Attributes

Type type = Type::Any
bool may_have_ownership = true
const void * data

Detailed Description

Used to quickly check if a varray is a span or a single value. This struct also allows retrieving multiple pieces of data with a single virtual method call.

Definition at line 47 of file BLI_virtual_array.hh.

Member Enumeration Documentation

◆ Type

enum class blender::CommonVArrayInfo::Type : uint8_t
strong
Enumerator
Any 
Span 
Single 

Definition at line 48 of file BLI_virtual_array.hh.

Constructor & Destructor Documentation

◆ CommonVArrayInfo() [1/2]

blender::CommonVArrayInfo::CommonVArrayInfo ( )
default

◆ CommonVArrayInfo() [2/2]

blender::CommonVArrayInfo::CommonVArrayInfo ( const Type _type,
const bool _may_have_ownership,
const void * _data )
inline

Definition at line 67 of file BLI_virtual_array.hh.

References data, may_have_ownership, and type.

Member Data Documentation

◆ data

const void* blender::CommonVArrayInfo::data

◆ may_have_ownership

bool blender::CommonVArrayInfo::may_have_ownership = true

◆ type

Type blender::CommonVArrayInfo::type = Type::Any

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