Blender V4.3
blender::bke::AttributeReader< T > Struct Template Reference

#include <BKE_attribute.hh>

Public Member Functions

const VArray< T > & operator* () const &
 
VArray< T > & operator* () &
 
VArray< Toperator* () &&
 
 operator bool () const
 

Public Attributes

VArray< Tvarray
 
AttrDomain domain
 
const ImplicitSharingInfosharing_info
 

Detailed Description

template<typename T>
struct blender::bke::AttributeReader< T >

Result when looking up an attribute from some geometry with the intention of only reading from it.

Definition at line 153 of file BKE_attribute.hh.

Member Function Documentation

◆ operator bool()

template<typename T >
blender::bke::AttributeReader< T >::operator bool ( ) const
inline

Definition at line 184 of file BKE_attribute.hh.

References blender::bke::AttributeReader< T >::varray.

◆ operator*() [1/3]

template<typename T >
VArray< T > & blender::bke::AttributeReader< T >::operator* ( ) &
inline

Definition at line 174 of file BKE_attribute.hh.

References blender::bke::AttributeReader< T >::varray.

◆ operator*() [2/3]

template<typename T >
VArray< T > blender::bke::AttributeReader< T >::operator* ( ) &&
inline

Definition at line 179 of file BKE_attribute.hh.

◆ operator*() [3/3]

template<typename T >
const VArray< T > & blender::bke::AttributeReader< T >::operator* ( ) const &
inline

Definition at line 169 of file BKE_attribute.hh.

References blender::bke::AttributeReader< T >::varray.

Member Data Documentation

◆ domain

template<typename T >
AttrDomain blender::bke::AttributeReader< T >::domain

Domain where the attribute is stored. This also determines the size of the virtual array.

Definition at line 161 of file BKE_attribute.hh.

◆ sharing_info

template<typename T >
const ImplicitSharingInfo* blender::bke::AttributeReader< T >::sharing_info

Information about shared ownership of the attribute array. This will only be provided if the virtual array directly references the contiguous original attribute array.

Definition at line 167 of file BKE_attribute.hh.

Referenced by blender::geometry::create_id_index_map(), and blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points().

◆ varray


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