Blender  V2.93
Public Member Functions | List of all members
blender::bke::TypedWriteAttribute< T > Class Template Reference

#include <BKE_attribute_access.hh>

Public Member Functions

 TypedWriteAttribute (WriteAttributePtr attribute)
 
 TypedWriteAttribute (WriteAttribute &attribute)
 
int64_t size () const
 
T operator[] (const int64_t index) const
 
void set (const int64_t index, const T &value)
 
MutableSpan< Tget_span ()
 
MutableSpan< Tget_span_for_write_only ()
 
void apply_span ()
 

Detailed Description

template<typename T>
class blender::bke::TypedWriteAttribute< T >

Definition at line 250 of file BKE_attribute_access.hh.

Constructor & Destructor Documentation

◆ TypedWriteAttribute() [1/2]

template<typename T >
blender::bke::TypedWriteAttribute< T >::TypedWriteAttribute ( WriteAttributePtr  attribute)
inline

Definition at line 256 of file BKE_attribute_access.hh.

References BLI_assert.

◆ TypedWriteAttribute() [2/2]

template<typename T >
blender::bke::TypedWriteAttribute< T >::TypedWriteAttribute ( WriteAttribute attribute)
inline

Member Function Documentation

◆ apply_span()

template<typename T >
void blender::bke::TypedWriteAttribute< T >::apply_span ( )
inline

◆ get_span()

template<typename T >
MutableSpan<T> blender::bke::TypedWriteAttribute< T >::get_span ( )
inline

◆ get_span_for_write_only()

template<typename T >
MutableSpan<T> blender::bke::TypedWriteAttribute< T >::get_span_for_write_only ( )
inline

◆ operator[]()

template<typename T >
T blender::bke::TypedWriteAttribute< T >::operator[] ( const int64_t  index) const
inline

◆ set()

template<typename T >
void blender::bke::TypedWriteAttribute< T >::set ( const int64_t  index,
const T value 
)
inline

Definition at line 281 of file BKE_attribute_access.hh.

References blender::bke::WriteAttribute::set().

◆ size()

template<typename T >
int64_t blender::bke::TypedWriteAttribute< T >::size ( ) const
inline

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