Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
RangeSet Class Reference

#include <range_set.h>

+ Collaboration diagram for RangeSet:

Classes

struct  range_compare
 

Public Types

using Range = std::pair<size_t, size_t>
 
using RangesContainer = std::set<Range, range_compare>
 

Public Member Functions

 RangeSet ()
 
 ~RangeSet ()
 
bool Contains (const Range &range) const
 
void Union (const Range &range)
 
void Union (const RangeSet &range_set)
 
bool IsEmpty () const
 
void Clear ()
 
const RangesContainerranges () const
 

Detailed Description

Definition at line 13 of file range_set.h.

Member Typedef Documentation

◆ Range

using RangeSet::Range = std::pair<size_t, size_t>

Definition at line 15 of file range_set.h.

◆ RangesContainer

Definition at line 36 of file range_set.h.

Constructor & Destructor Documentation

◆ RangeSet()

RangeSet::RangeSet ( )
default

◆ ~RangeSet()

RangeSet::~RangeSet ( )
default

Member Function Documentation

◆ Clear()

void RangeSet::Clear ( )
inline

Definition at line 28 of file range_set.h.

◆ Contains()

bool RangeSet::Contains ( const Range & range) const

Definition at line 16 of file range_set.cpp.

◆ IsEmpty()

bool RangeSet::IsEmpty ( ) const
inline

Definition at line 26 of file range_set.h.

Referenced by Union().

+ Here is the caller graph for this function:

◆ ranges()

const RangesContainer & RangeSet::ranges ( ) const
inline

Definition at line 37 of file range_set.h.

◆ Union() [1/2]

void RangeSet::Union ( const Range & range)

Definition at line 30 of file range_set.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ Union() [2/2]

void RangeSet::Union ( const RangeSet & range_set)

Definition at line 62 of file range_set.cpp.


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