Blender  V3.3
Public Types | Public Member Functions | Public Attributes | List of all members
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 voiddata
 

Detailed Description

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

Definition at line 41 of file BLI_virtual_array.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Any 
Span 
Single 

Definition at line 42 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 61 of file BLI_virtual_array.hh.

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: