All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdIndexedTimeSampleArray< TYPE, CAPACITY > Struct Template Reference

An array of a value and its indices sampled over time, in struct-of-arrays layout. More...

+ Inheritance diagram for HdIndexedTimeSampleArray< TYPE, CAPACITY >:

Public Member Functions

 HdIndexedTimeSampleArray (const HdIndexedTimeSampleArray &rhs)
 
HdIndexedTimeSampleArrayoperator= (const HdIndexedTimeSampleArray &rhs)
 
void Resize (unsigned int newSize) override
 Resize the internal buffers. More...
 
std::pair< TYPE, VtIntArray > ResampleIndexed (float u) const
 Convience method for invoking HdResampleRawTimeSamples on this HdIndexedTimeSampleArray. More...
 
void UnboxFrom (HdIndexedTimeSampleArray< VtValue, CAPACITY > const &box)
 Unbox an HdIndexedTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples. More...
 
- Public Member Functions inherited from HdTimeSampleArray< TYPE, CAPACITY >
 HdTimeSampleArray (const HdTimeSampleArray &rhs)
 
HdTimeSampleArrayoperator= (const HdTimeSampleArray &rhs)
 
TYPE Resample (float u) const
 Convience method for invoking HdResampleRawTimeSamples on this HdTimeSampleArray. More...
 
void UnboxFrom (HdTimeSampleArray< VtValue, CAPACITY > const &box)
 Unbox an HdTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples. More...
 

Public Attributes

TfSmallVector< VtIntArray,
CAPACITY > 
indices
 
- Public Attributes inherited from HdTimeSampleArray< TYPE, CAPACITY >
size_t count
 
TfSmallVector< float, CAPACITY > times
 
TfSmallVector< TYPE, CAPACITY > values
 

Detailed Description

template<typename TYPE, unsigned int CAPACITY>
struct HdIndexedTimeSampleArray< TYPE, CAPACITY >

An array of a value and its indices sampled over time, in struct-of-arrays layout.

Definition at line 233 of file timeSampleArray.h.

Member Function Documentation

std::pair<TYPE, VtIntArray> ResampleIndexed ( float  u) const
inline

Convience method for invoking HdResampleRawTimeSamples on this HdIndexedTimeSampleArray.

Definition at line 261 of file timeSampleArray.h.

void Resize ( unsigned int  newSize)
inlineoverridevirtual

Resize the internal buffers.

Reimplemented from HdTimeSampleArray< TYPE, CAPACITY >.

Definition at line 254 of file timeSampleArray.h.

void UnboxFrom ( HdIndexedTimeSampleArray< VtValue, CAPACITY > const &  box)
inline

Unbox an HdIndexedTimeSampleArray holding boxed VtValue<VtArray<T>> samples into an array holding VtArray<T> samples.

Similar to VtValue::Get(), this will issue a coding error if the VtValue is not holding the expected type.

See Also
VtValue::Get()

Definition at line 274 of file timeSampleArray.h.


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