Loading...
Searching...
No Matches
Vdf_BoxedRanges Class Reference

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

#include <boxedContainer.h>

Classes

struct  Range
 A range of data elements as denoted by [ begin, end ) indices. More...
 

Public Member Functions

 Vdf_BoxedRanges ()=default
 Constructs an empty set of boxed ranges.
 
 Vdf_BoxedRanges (unsigned int n)
 Constructs a set with one range containing all n elements.
 
unsigned int GetNumRanges () const
 Returns the number of individual ranges stored in this container.
 
Range GetRange (unsigned int i) const
 Returns the range at index i.
 
void AppendRange (unsigned int begin, unsigned int end)
 Appends a new group.
 

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.


Class Documentation

◆ Vdf_BoxedRanges::Range

struct Vdf_BoxedRanges::Range

A range of data elements as denoted by [ begin, end ) indices.

Each range of elements represents a logical group of data elements.

Definition at line 27 of file boxedContainer.h.

Class Members
unsigned int begin
unsigned int end

Constructor & Destructor Documentation

◆ Vdf_BoxedRanges() [1/2]

Vdf_BoxedRanges ( )
default

Constructs an empty set of boxed ranges.

◆ Vdf_BoxedRanges() [2/2]

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

◆ AppendRange()

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

Appends a new group.

Definition at line 58 of file boxedContainer.h.

◆ GetNumRanges()

unsigned int GetNumRanges ( ) const
inline

Returns the number of individual ranges stored in this container.

Definition at line 45 of file boxedContainer.h.

◆ GetRange()

Range 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

◆ swap

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: