Blender V5.0
blender::draw::detail::SubPassVector< T, block_size > Class Template Reference

#include <draw_pass.hh>

Public Member Functions

void clear ()
int64_t append_and_get_index (T &&elem)
Toperator[] (int64_t index)
const Toperator[] (int64_t index) const

Detailed Description

template<typename T, int64_t block_size = 16>
class blender::draw::detail::SubPassVector< T, block_size >

Special container that never moves allocated items and has fast indexing.

Template Parameters
block_sizeNumbers of element of type T to allocate together.

Definition at line 91 of file draw_pass.hh.

Member Function Documentation

◆ append_and_get_index()

template<typename T, int64_t block_size = 16>
int64_t blender::draw::detail::SubPassVector< T, block_size >::append_and_get_index ( T && elem)
inline

Definition at line 101 of file draw_pass.hh.

Referenced by blender::draw::gpencil::grease_pencil_layer_cache_add().

◆ clear()

template<typename T, int64_t block_size = 16>
void blender::draw::detail::SubPassVector< T, block_size >::clear ( )
inline

◆ operator[]() [1/2]

template<typename T, int64_t block_size = 16>
T & blender::draw::detail::SubPassVector< T, block_size >::operator[] ( int64_t index)
inline

Definition at line 111 of file draw_pass.hh.

◆ operator[]() [2/2]

template<typename T, int64_t block_size = 16>
const T & blender::draw::detail::SubPassVector< T, block_size >::operator[] ( int64_t index) const
inline

Definition at line 116 of file draw_pass.hh.


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