|
Blender V5.0
|
#include <array.h>
Public Member Functions | |
| array () | |
| array (const size_t newsize) | |
| array (const array &from) | |
| array (array &&from) | |
| array & | operator= (const array &from) |
| array & | operator= (const vector< T > &from) |
| ~array () | |
| bool | operator== (const array< T > &other) const |
| bool | operator!= (const array< T > &other) const |
| void | steal_data (array &from) |
| void | set_data (T *ptr_, size_t datasize) |
| T * | steal_pointer () |
| T * | resize (const size_t newsize) |
| T * | resize (const size_t newsize, const T &value) |
| void | clear () |
| size_t | empty () const |
| size_t | size () const |
| T * | data () |
| const T * | data () const |
| T & | operator[] (size_t i) const |
| T * | begin () |
| const T * | begin () const |
| T * | end () |
| const T * | end () const |
| void | reserve (const size_t newcapacity) |
| size_t | capacity () const |
| void | push_back_slow (const T &t) |
| void | push_back_reserved (const T &t) |
| void | append (const array< T > &from) |
Protected Member Functions | |
| T * | mem_allocate (const size_t N) |
| void | mem_free (T *mem, const size_t N) |
| void | mem_copy (T *mem_to, const T *mem_from, const size_t N) |
Protected Attributes | |
| T * | data_ |
| size_t | datasize_ |
| size_t | capacity_ |
Definition at line 22 of file cycles/util/array.h.
|
inline |
Definition at line 24 of file cycles/util/array.h.
References capacity_, data_, datasize_, and nullptr.
Referenced by append(), array(), array(), operator!=(), operator=(), operator=(), operator==(), RNA_property_collection_raw_array(), and steal_data().
|
inlineexplicit |
Definition at line 26 of file cycles/util/array.h.
References capacity_, data_, datasize_, and mem_allocate().
|
inline |
Definition at line 40 of file cycles/util/array.h.
References array(), capacity_, data_, datasize_, mem_allocate(), and mem_copy().
|
inline |
Definition at line 91 of file cycles/util/array.h.
References capacity_, data_, and mem_free().
|
inline |
Definition at line 271 of file cycles/util/array.h.
References array(), data(), data_, mem_copy(), resize(), and size().
Referenced by SVMCompiler::compile(), blender::io::serialize::convert_from_json_to_array(), blender::bke::idprop::IDPGroupSerializer::idprop_to_dictionary(), and texture_paint_image_from_view_exec().
|
inline |
Definition at line 217 of file cycles/util/array.h.
Referenced by BlenderCameraParamQuery::get_int(), and blender::Vector< SubdivCCGCoord, 256 >::insert().
|
inline |
Definition at line 222 of file cycles/util/array.h.
|
inline |
Definition at line 250 of file cycles/util/array.h.
References capacity_.
|
inline |
Definition at line 181 of file cycles/util/array.h.
References capacity_, data_, datasize_, and mem_free().
Referenced by DeleteElements(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), resize(), set_data(), steal_data(), and steal_pointer().
|
inline |
Definition at line 201 of file cycles/util/array.h.
Referenced by blender::ed::object::add_shapekey_layers(), append(), Object::compute_bounds(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray(), blender::opensubdiv::convertPatchCoordsToArray(), BlenderCameraParamQuery::get_int(), IDP_CopyIDPArray(), merge_pixels(), BVH2::pack_instances(), read_layer_samples(), DenoiseImage::read_previous_pixels(), save_output(), KDL::JntArray::SetToZero, blender::bits::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Definition at line 206 of file cycles/util/array.h.
|
inline |
Definition at line 191 of file cycles/util/array.h.
References datasize_.
|
inline |
Definition at line 227 of file cycles/util/array.h.
References data_, datasize_, and T.
Referenced by BlenderCameraParamQuery::get_int(), and blender::Vector< SubdivCCGCoord, 256 >::insert().
|
inline |
Definition at line 232 of file cycles/util/array.h.
|
inlineprotected |
Definition at line 281 of file cycles/util/array.h.
References N, T, and util_aligned_malloc().
|
inlineprotected |
Definition at line 300 of file cycles/util/array.h.
Referenced by append(), array(), operator=(), operator=(), reserve(), and resize().
|
inlineprotected |
Definition at line 293 of file cycles/util/array.h.
References N, T, and util_aligned_free().
|
inline |
Definition at line 108 of file cycles/util/array.h.
References array().
|
inline |
Definition at line 68 of file cycles/util/array.h.
References array(), data_, datasize_, mem_copy(), resize(), and size().
|
inline |
Definition at line 80 of file cycles/util/array.h.
References array(), data_, datasize_, mem_copy(), and resize().
|
inline |
Definition at line 265 of file cycles/util/array.h.
References assert, capacity_, datasize_, push_back_slow(), and T.
|
inline |
Definition at line 256 of file cycles/util/array.h.
References capacity_, data_, datasize_, reserve(), and T.
Referenced by SVMCompiler::compile(), ImageTextureNode::cull_tiles(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), push_back_reserved(), xml_read_light(), and xml_read_mesh().
|
inline |
Definition at line 237 of file cycles/util/array.h.
References capacity_, data_, datasize_, mem_allocate(), mem_copy(), mem_free(), and T.
Referenced by HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< Transform, void >(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), and push_back_slow().
|
inline |
Definition at line 144 of file cycles/util/array.h.
References capacity_, clear(), data_, datasize_, mem_allocate(), mem_copy(), mem_free(), and T.
Referenced by alloc_pixels(), append(), blender_camera_sync(), colorramp_to_array(), blender::opensubdiv::convertPatchCoordsToArray(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray(), init_test_curve(), operator=(), operator=(), read_layer_samples(), resize(), and blender::io::hydra::resize_uninitialized().
|
inline |
Definition at line 196 of file cycles/util/array.h.
References datasize_.
Referenced by append(), SVMCompiler::compile(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< float2, GfVec2f >(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< float3, GfVec3f >(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< Transform, void >(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< ustring, void >(), create_mesh(), DeleteElements(), GeometryManager::device_update_bvh(), ExportCurveSegments(), ExportCurveSegmentsMotion(), blender::Vector< SubdivCCGCoord, 256 >::extend(), blender::Vector< SubdivCCGCoord, 256 >::extend_unchecked(), fill_shader_input(), blender::gpu::VertBuf::from_varray(), merge_pixels(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), operator=(), BVH2::pack_instances(), read_shader_output(), resize(), KDL::JntArray::SetToZero, shutter_curve_eval(), device_vector< T >::steal_data(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), xml_read_float3(), xml_read_float3_array(), and xml_read_float4().
|
inline |
Definition at line 136 of file cycles/util/array.h.
References clear(), data_, ptr, and T.
Referenced by device_vector< T >::steal_data().
|
protected |
Definition at line 307 of file cycles/util/array.h.
Referenced by array(), array(), array(), array(), capacity(), clear(), push_back_reserved(), push_back_slow(), reserve(), resize(), set_data(), steal_data(), and ~array().
|
protected |
Definition at line 305 of file cycles/util/array.h.
Referenced by append(), array(), array(), array(), array(), begin(), begin(), clear(), data(), data(), end(), end(), operator=(), operator=(), operator==(), operator[](), push_back_slow(), reserve(), resize(), resize(), set_data(), steal_data(), steal_pointer(), and ~array().
|
protected |
Definition at line 306 of file cycles/util/array.h.
Referenced by array(), array(), array(), array(), clear(), empty(), end(), end(), operator=(), operator=(), operator==(), operator[](), push_back_reserved(), push_back_slow(), reserve(), resize(), set_data(), size(), and steal_data().