 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
17 #ifndef AGXDATA_ARRAY_H
18 #define AGXDATA_ARRAY_H
25 # pragma warning(push)
26 # pragma warning( disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y
76 void setRange(
size_t startIndex,
size_t endIndex);
105 template <
typename T>
156 const T&
back()
const;
160 const T&
front()
const;
168 const T&
at(
size_t index)
const;
186 const T*
ptr()
const;
195 template <
typename T2>
196 size_t find(
const T2& element)
const;
199 template <
typename T2>
200 bool contains(
const T2& element)
const;
215 size_t commitResult(
size_t numElements,
const void* localResult);
218 template <
typename T2>
220 template <
typename T2>
231 # pragma warning(pop)
agx::IndexRange32 m_range
size_t find(const T2 &element) const
The index of the first occurrence of an element that is equal to the given element.
Arrays are fast accessors into the data, or a portion of it, held by a Buffer.
AGXCORE_EXPORT Format * getFormat(const agx::String &typeFormatName)
const typedef T * const_pointer
const typedef T & const_reference
T & operator[](size_t index)
Array()
Create a new invalid array.
agxData::Buffer * m_buffer
static agxData::Array< T > raw(T *buffer, agx::Index size)
Array creation helper method that creates an array covering the given memory area.
agxData::Array< T > slice(agx::IndexRange32 subRange) const
Vector containing 'raw' data.
Contains classes for low level data storage for AGX.
#define AGX_TEMPLATED_TYPE_BINDING(_Type, _Name)
std::random_access_iterator_tag iterator_category
bool contains(const T2 &element) const
Type-specific Array used for fast access into the data held by a Buffer.
size_t commitResult(size_t numElements, const void *localResult, agx::Index sortIndex)
Abstract representation of a data buffer.
agx::GlobalResult::Transaction allocateResult(size_t numElements)
Transactions are used to reserve exclusive memory areas in which the threads can write their data.
const typedef T * const_iterator
ptrdiff_t difference_type
agx::GlobalResult * getGlobalResult()
static const bool IsScalar
void AGXPHYSICS_EXPORT init()
Initialize agx.
GlobalResult is used by kernels to generate result data from different threads.