clang 20.0.0git
|
A map from continuous integer ranges to some value, with a very specialized interface. More...
#include "clang/Serialization/ContinuousRangeMap.h"
Classes | |
class | Builder |
An object that helps properly build a continuous range map from a set of values. More... | |
Public Types | |
using | value_type = std::pair< Int, V > |
using | reference = value_type & |
using | const_reference = const value_type & |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | iterator = typename Representation::iterator |
using | const_iterator = typename Representation::const_iterator |
Public Member Functions | |
void | insert (const value_type &Val) |
void | insertOrReplace (const value_type &Val) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | find (Int K) |
const_iterator | find (Int K) const |
reference | back () |
const_reference | back () const |
Friends | |
class | Builder |
A map from continuous integer ranges to some value, with a very specialized interface.
CRM maps from integer ranges to values. The ranges are continuous, i.e. where one ends, the next one begins. So if the map contains the stops I0-3, the first range is from I0 to I1, the second from I1 to I2, the third from I2 to I3 and the last from I3 to infinity.
Ranges must be inserted in order. Inserting a new stop I4 into the map will shrink the fourth range to I3 to I4 and add the new range I4 to inf.
Definition at line 37 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::const_iterator = typename Representation::const_iterator |
Definition at line 86 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::const_pointer = const value_type * |
Definition at line 43 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::const_reference = const value_type & |
Definition at line 41 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::iterator = typename Representation::iterator |
Definition at line 85 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::pointer = value_type * |
Definition at line 42 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::reference = value_type & |
Definition at line 40 of file ContinuousRangeMap.h.
using clang::ContinuousRangeMap< Int, V, InitialCapacity >::value_type = std::pair<Int, V> |
Definition at line 39 of file ContinuousRangeMap.h.
|
inline |
Definition at line 106 of file ContinuousRangeMap.h.
|
inline |
Definition at line 107 of file ContinuousRangeMap.h.
|
inline |
Definition at line 88 of file ContinuousRangeMap.h.
Referenced by dumpLocalRemap().
|
inline |
Definition at line 90 of file ContinuousRangeMap.h.
|
inline |
Definition at line 89 of file ContinuousRangeMap.h.
Referenced by clang::ASTReader::DecodeSelector(), dumpLocalRemap(), clang::ASTReader::getGlobalMacroID(), clang::ASTReader::getGlobalPreprocessedEntityID(), clang::ASTReader::getGlobalSelectorID(), clang::ASTReader::getGlobalSubmoduleID(), clang::ASTReader::getLocalModuleFile(), and clang::ASTReader::getMacro().
|
inline |
Definition at line 91 of file ContinuousRangeMap.h.
|
inline |
Definition at line 93 of file ContinuousRangeMap.h.
Referenced by clang::ASTReader::DecodeSelector(), clang::ContinuousRangeMap< Int, V, InitialCapacity >::find(), clang::ASTReader::getGlobalMacroID(), clang::ASTReader::getGlobalPreprocessedEntityID(), clang::ASTReader::getGlobalSelectorID(), clang::ASTReader::getGlobalSubmoduleID(), clang::ASTReader::getLocalModuleFile(), clang::ASTReader::getMacro(), and clang::ASTWriter::getRawSourceLocationEncoding().
|
inline |
Definition at line 102 of file ContinuousRangeMap.h.
References clang::ContinuousRangeMap< Int, V, InitialCapacity >::find().
|
inline |
Definition at line 66 of file ContinuousRangeMap.h.
|
inline |
Definition at line 75 of file ContinuousRangeMap.h.
Definition at line 139 of file ContinuousRangeMap.h.