HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vdf_BoxedRanges Class Reference

#include <boxedContainer.h>

Classes

struct  Range
 

Public Member Functions

 Vdf_BoxedRanges ()=default
 
 Vdf_BoxedRanges (unsigned int n)
 
unsigned int GetNumRanges () const
 
Range GetRange (unsigned int i) const
 
void AppendRange (unsigned int begin, unsigned int end)
 

Friends

void swap (Vdf_BoxedRanges &lhs, Vdf_BoxedRanges &rhs)
 

Detailed Description

Each range represents a logical group of elements stored in a Vdf_BoxedContainer.

Definition at line 21 of file boxedContainer.h.

Constructor & Destructor Documentation

Vdf_BoxedRanges::Vdf_BoxedRanges ( )
default

Constructs an empty set of boxed ranges.

Vdf_BoxedRanges::Vdf_BoxedRanges ( unsigned int  n)
inlineexplicit

Constructs a set with one range containing all n elements.

Definition at line 39 of file boxedContainer.h.

Member Function Documentation

void Vdf_BoxedRanges::AppendRange ( unsigned int  begin,
unsigned int  end 
)
inline

Appends a new group.

Definition at line 58 of file boxedContainer.h.

unsigned int Vdf_BoxedRanges::GetNumRanges ( ) const
inline

Returns the number of individual ranges stored in this container.

Definition at line 45 of file boxedContainer.h.

Range Vdf_BoxedRanges::GetRange ( unsigned int  i) const
inline

Returns the range at index i. Each range represents a logical group of data elements.

Definition at line 52 of file boxedContainer.h.

Friends And Related Function Documentation

void swap ( Vdf_BoxedRanges lhs,
Vdf_BoxedRanges rhs 
)
friend

Definition at line 63 of file boxedContainer.h.


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