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)
bool contains(const T2 &element) const
void AGXPHYSICS_EXPORT init()
Initialize agx.
agx::IndexRange32 m_range
static agxData::Array< T > raw(T *buffer, agx::Index size)
Array creation helper method that creates an array covering the given memory area.
AGXCORE_EXPORT Format * getFormat(const agx::String &typeFormatName)
Array()
Create a new invalid array.
std::random_access_iterator_tag iterator_category
Transactions are used to reserve exclusive memory areas in which the threads can write their data...
const agxData::Buffer * buffer() const
T & operator[](size_t index)
Arrays are fast accessors into the data, or a portion of it, held by a Buffer.
agxData::Array< T > slice(agx::IndexRange32 subRange) const
agx::IndexRange32 & range()
Type-specific Array used for fast access into the data held by a Buffer.
agxData::Buffer * m_buffer
Vector containing 'raw' data.
GlobalResult is used by kernels to generate result data from different threads.
agx::GlobalResult::Transaction allocateResult(size_t numElements)
Abstract representation of a data buffer.
size_t commitResult(size_t numElements, const void *localResult, agx::Index sortIndex)
static const bool IsScalar
#define AGX_TEMPLATED_TYPE_BINDING(_Type, _Name)
size_t find(const T2 &element) const
The index of the first occurrence of an element that is equal to the given element.
ptrdiff_t difference_type
const T & const_reference
agx::GlobalResult * getGlobalResult()