Blender  V3.3
Public Member Functions | List of all members
blender::VectorAdaptor< T > Class Template Reference

#include <BLI_vector_adaptor.hh>

Public Member Functions

 VectorAdaptor ()
 
 VectorAdaptor (T *data, int64_t capacity, int64_t size=0)
 
 VectorAdaptor (MutableSpan< T > span)
 
void append (const T &value)
 
void append (T &&value)
 
void append_n_times (const T &value, int64_t n)
 
void extend (Span< T > values)
 
int64_t capacity () const
 
int64_t size () const
 
bool is_empty () const
 
bool is_full () const
 

Detailed Description

template<typename T>
class blender::VectorAdaptor< T >

Definition at line 19 of file BLI_vector_adaptor.hh.

Constructor & Destructor Documentation

◆ VectorAdaptor() [1/3]

template<typename T >
blender::VectorAdaptor< T >::VectorAdaptor ( )
inline

Definition at line 26 of file BLI_vector_adaptor.hh.

◆ VectorAdaptor() [2/3]

template<typename T >
blender::VectorAdaptor< T >::VectorAdaptor ( T data,
int64_t  capacity,
int64_t  size = 0 
)
inline

Definition at line 30 of file BLI_vector_adaptor.hh.

◆ VectorAdaptor() [3/3]

template<typename T >
blender::VectorAdaptor< T >::VectorAdaptor ( MutableSpan< T span)
inline

Definition at line 35 of file BLI_vector_adaptor.hh.

Member Function Documentation

◆ append() [1/2]

template<typename T >
void blender::VectorAdaptor< T >::append ( const T value)
inline

Definition at line 39 of file BLI_vector_adaptor.hh.

References BLI_assert, and T.

◆ append() [2/2]

template<typename T >
void blender::VectorAdaptor< T >::append ( T &&  value)
inline

Definition at line 46 of file BLI_vector_adaptor.hh.

References BLI_assert, and T.

◆ append_n_times()

template<typename T >
void blender::VectorAdaptor< T >::append_n_times ( const T value,
int64_t  n 
)
inline

Definition at line 53 of file BLI_vector_adaptor.hh.

References BLI_assert, and blender::uninitialized_fill_n().

◆ capacity()

template<typename T >
int64_t blender::VectorAdaptor< T >::capacity ( ) const
inline

Definition at line 67 of file BLI_vector_adaptor.hh.

◆ extend()

template<typename T >
void blender::VectorAdaptor< T >::extend ( Span< T values)
inline

◆ is_empty()

template<typename T >
bool blender::VectorAdaptor< T >::is_empty ( ) const
inline

Definition at line 77 of file BLI_vector_adaptor.hh.

◆ is_full()

template<typename T >
bool blender::VectorAdaptor< T >::is_full ( ) const
inline

Definition at line 82 of file BLI_vector_adaptor.hh.

◆ size()

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

Definition at line 72 of file BLI_vector_adaptor.hh.


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