Blender V5.0
blender::GVectorArray Class Reference

#include <BLI_generic_vector_array.hh>

Inherits blender::NonCopyable, and blender::NonMovable.

Public Member Functions

 GVectorArray ()=delete
 GVectorArray (const CPPType &type, int64_t array_size)
 ~GVectorArray ()
int64_t size () const
bool is_empty () const
const CPPTypetype () const
void append (int64_t index, const void *value)
void extend (int64_t index, const GVArray &values)
void extend (int64_t index, GSpan values)
void extend (const IndexMask &mask, const GVVectorArray &values)
void extend (const IndexMask &mask, const GVectorArray &values)
void clear (const IndexMask &mask)
GMutableSpan operator[] (int64_t index)
GSpan operator[] (int64_t index) const

Detailed Description

Definition at line 22 of file BLI_generic_vector_array.hh.

Constructor & Destructor Documentation

◆ GVectorArray() [1/2]

blender::GVectorArray::GVectorArray ( )
delete

References type().

Referenced by extend().

◆ GVectorArray() [2/2]

blender::GVectorArray::GVectorArray ( const CPPType & type,
int64_t array_size )

Definition at line 13 of file generic_vector_array.cc.

References size(), and type().

◆ ~GVectorArray()

blender::GVectorArray::~GVectorArray ( )

Definition at line 18 of file generic_vector_array.cc.

Member Function Documentation

◆ append()

void blender::GVectorArray::append ( int64_t index,
const void * value )

◆ clear()

void blender::GVectorArray::clear ( const IndexMask & mask)

Definition at line 70 of file generic_vector_array.cc.

References i, and mask().

◆ extend() [1/4]

void blender::GVectorArray::extend ( const IndexMask & mask,
const GVectorArray & values )

Definition at line 64 of file generic_vector_array.cc.

References extend(), GVectorArray(), and mask().

◆ extend() [2/4]

void blender::GVectorArray::extend ( const IndexMask & mask,
const GVVectorArray & values )

Definition at line 56 of file generic_vector_array.cc.

References extend(), i, and mask().

◆ extend() [3/4]

◆ extend() [4/4]

void blender::GVectorArray::extend ( int64_t index,
GSpan values )

Definition at line 51 of file generic_vector_array.cc.

References extend(), and blender::GVArray::from_span().

◆ is_empty()

bool blender::GVectorArray::is_empty ( ) const
inline

Definition at line 52 of file BLI_generic_vector_array.hh.

Referenced by blender::tests::TEST().

◆ operator[]() [1/2]

GMutableSpan blender::GVectorArray::operator[] ( int64_t index)

Definition at line 79 of file generic_vector_array.cc.

◆ operator[]() [2/2]

GSpan blender::GVectorArray::operator[] ( int64_t index) const

Definition at line 85 of file generic_vector_array.cc.

◆ size()

◆ type()


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