Blender V5.0
unique_ptr_vector< T > Class Template Reference

#include <unique_ptr_vector.h>

Classes

struct  ConstIterator
struct  Iterator

Public Member Functions

Toperator[] (const size_t i) const
unique_ptr< Tsteal (const size_t i)
void push_back (unique_ptr< T > &&value)
bool empty () const
size_t size () const
void clear ()
void free_memory ()
void erase (const T *value)
void erase_by_swap (const T *value)
void erase_in_set (const set< T * > &values)
ConstIterator begin () const
ConstIterator end () const
Iterator begin ()
Iterator end ()
 operator const vector< T * > & ()
template<typename Compare>
void stable_sort (Compare compare)

Protected Attributes

vector< unique_ptr< T > > data

Detailed Description

template<typename T>
class unique_ptr_vector< T >

Definition at line 20 of file unique_ptr_vector.h.

Member Function Documentation

◆ begin() [1/2]

template<typename T>
Iterator unique_ptr_vector< T >::begin ( )
inline

Definition at line 200 of file unique_ptr_vector.h.

References data.

◆ begin() [2/2]

template<typename T>
ConstIterator unique_ptr_vector< T >::begin ( ) const
inline

Definition at line 149 of file unique_ptr_vector.h.

References data.

Referenced by GeometryManager::device_update().

◆ clear()

template<typename T>
void unique_ptr_vector< T >::clear ( )
inline

Definition at line 52 of file unique_ptr_vector.h.

References data.

Referenced by DenoiseTask::load().

◆ empty()

template<typename T>
bool unique_ptr_vector< T >::empty ( ) const
inline

◆ end() [1/2]

template<typename T>
Iterator unique_ptr_vector< T >::end ( )
inline

Definition at line 204 of file unique_ptr_vector.h.

References data.

◆ end() [2/2]

template<typename T>
ConstIterator unique_ptr_vector< T >::end ( ) const
inline

Definition at line 153 of file unique_ptr_vector.h.

References data.

Referenced by GeometryManager::device_update().

◆ erase()

template<typename T>
void unique_ptr_vector< T >::erase ( const T * value)
inline

Definition at line 62 of file unique_ptr_vector.h.

References assert, data, i, size(), and T.

◆ erase_by_swap()

template<typename T>
void unique_ptr_vector< T >::erase_by_swap ( const T * value)
inline

Definition at line 77 of file unique_ptr_vector.h.

References data, i, size(), swap, and T.

◆ erase_in_set()

template<typename T>
void unique_ptr_vector< T >::erase_in_set ( const set< T * > & values)
inline

Definition at line 89 of file unique_ptr_vector.h.

References data, i, swap, and T.

◆ free_memory()

template<typename T>
void unique_ptr_vector< T >::free_memory ( )
inline

Definition at line 57 of file unique_ptr_vector.h.

References data.

◆ operator const vector< T * > &()

template<typename T>
unique_ptr_vector< T >::operator const vector< T * > & ( )
inline

Definition at line 211 of file unique_ptr_vector.h.

◆ operator[]()

template<typename T>
T * unique_ptr_vector< T >::operator[] ( const size_t i) const
inline

Definition at line 25 of file unique_ptr_vector.h.

References data, i, and T.

◆ push_back()

template<typename T>
void unique_ptr_vector< T >::push_back ( unique_ptr< T > && value)
inline

Definition at line 37 of file unique_ptr_vector.h.

References data.

Referenced by add_pass(), ShaderGraph::clean(), and ShaderGraph::remove_proxy_nodes().

◆ size()

◆ stable_sort()

template<typename T>
template<typename Compare>
void unique_ptr_vector< T >::stable_sort ( Compare compare)
inline

Definition at line 218 of file unique_ptr_vector.h.

References b, and data.

◆ steal()

template<typename T>
unique_ptr< T > unique_ptr_vector< T >::steal ( const size_t i)
inline

Definition at line 30 of file unique_ptr_vector.h.

References data, i, and swap.

Member Data Documentation

◆ data


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