Loading...
Searching...
No Matches
HdBufferArrayRangeContainer Class Reference

A resizable container of HdBufferArrayRanges. More...

#include <bufferArrayRange.h>

Public Member Functions

 HdBufferArrayRangeContainer (int size)
 Constructor.
 
HD_API void Set (int index, HdBufferArrayRangeSharedPtr const &range)
 Set range into the container at index.
 
HD_API HdBufferArrayRangeSharedPtr const & Get (int index) const
 Returns the bar at index.
 
HD_API void Resize (int size)
 Resize the buffer array range container to size size.
 

Detailed Description

A resizable container of HdBufferArrayRanges.

Definition at line 144 of file bufferArrayRange.h.

Constructor & Destructor Documentation

◆ HdBufferArrayRangeContainer()

HdBufferArrayRangeContainer ( int  size)
inline

Constructor.

Definition at line 148 of file bufferArrayRange.h.

Member Function Documentation

◆ Get()

HD_API HdBufferArrayRangeSharedPtr const & Get ( int  index) const

Returns the bar at index.

returns null if either the index is out of range or not yet set.

◆ Resize()

HD_API void Resize ( int  size)

Resize the buffer array range container to size size.

Used to explicitly resize or shrink the container.

◆ Set()

HD_API void Set ( int  index,
HdBufferArrayRangeSharedPtr const &  range 
)

Set range into the container at index.

If the size of container is smaller than index, resize it.


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