Blender V5.3
blender::nodes::GList::ArrayData Class Reference

#include <NOD_geometry_nodes_list.hh>

Public Member Functions

void count_memory (MemoryCounter &memory, const CPPType &type, const int64_t size) const
GMutableSpan span_for_write (const CPPType &type, int64_t size)

Static Public Member Functions

static ArrayData ForValue (const GPointer &value, int64_t size)
static ArrayData ForDefaultValue (const CPPType &type, int64_t size)
static ArrayData ForConstructed (const CPPType &type, int64_t size)
static ArrayData ForUninitialized (const CPPType &type, int64_t size)

Public Attributes

const void * data
ImplicitSharingPtr sharing_info

Detailed Description

Definition at line 24 of file NOD_geometry_nodes_list.hh.

Member Function Documentation

◆ count_memory()

void blender::nodes::GList::ArrayData::count_memory ( MemoryCounter & memory,
const CPPType & type,
const int64_t size ) const

◆ ForConstructed()

GList::ArrayData blender::nodes::GList::ArrayData::ForConstructed ( const CPPType & type,
int64_t size )
static

◆ ForDefaultValue()

GList::ArrayData blender::nodes::GList::ArrayData::ForDefaultValue ( const CPPType & type,
int64_t size )
static

◆ ForUninitialized()

GList::ArrayData blender::nodes::GList::ArrayData::ForUninitialized ( const CPPType & type,
int64_t size )
static

◆ ForValue()

◆ span_for_write()

Member Data Documentation

◆ data

const void* blender::nodes::GList::ArrayData::data

This is const because it uses implicit sharing. In some contexts the const can be cast away when it's clear that the data is not shared.

Definition at line 30 of file NOD_geometry_nodes_list.hh.

Referenced by span_for_write().

◆ sharing_info

ImplicitSharingPtr blender::nodes::GList::ArrayData::sharing_info

Definition at line 31 of file NOD_geometry_nodes_list.hh.

Referenced by count_memory(), and span_for_write().


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