class ImmutableMapRef

Declaration

template <typename KeyT,
          typename ValT,
          typename ValInfo = ImutKeyValueInfo<KeyT, ValT>>
class ImmutableMapRef { /* full declaration omitted */ };

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:203

Templates

KeyT
ValT
ValInfo = ImutKeyValueInfo<KeyT, ValT>

Member Variables

protected IntrusiveRefCntPtr<llvm::ImmutableMapRef::TreeTy> Root
protected llvm::ImmutableMapRef::FactoryTy* Factory

Method Overview

  • public ImmutableMapRef<KeyT, ValT, ValInfo>(const ImmutableMap<KeyT, ValT> & X, typename ImmutableMap<KeyT, ValT>::Factory & F)
  • public ImmutableMapRef<KeyT, ValT, ValInfo>(const llvm::ImmutableMapRef::TreeTy * R, llvm::ImmutableMapRef::FactoryTy * F)
  • public inline void Profile(llvm::FoldingSetNodeID & ID) const
  • public static inline void Profile(llvm::FoldingSetNodeID & ID, const ImmutableMapRef<KeyT, ValT, ValInfo> & M)
  • public ImmutableMapRef<KeyT, ValT, ValInfo> add(llvm::ImmutableMapRef::key_type_ref K, llvm::ImmutableMapRef::data_type_ref D) const
  • public ImmutableMap<KeyT, ValT> asImmutableMap() const
  • public llvm::ImmutableMapRef::iterator begin() const
  • public bool contains(llvm::ImmutableMapRef::key_type_ref K) const
  • public llvm::ImmutableMapRef::iterator end() const
  • public static inline ImmutableMapRef<KeyT, ValT, ValInfo> getEmptyMap(llvm::ImmutableMapRef::FactoryTy * F)
  • public unsigned int getHeight() const
  • public llvm::ImmutableMapRef::value_type * getMaxElement() const
  • public bool isEmpty() const
  • public llvm::ImmutableMapRef::data_type * lookup(llvm::ImmutableMapRef::key_type_ref K) const
  • public void manualRelease()
  • public void manualRetain()
  • public ImmutableMapRef<KeyT, ValT, ValInfo> remove(llvm::ImmutableMapRef::key_type_ref K) const
  • public void verify() const

Methods

ImmutableMapRef<KeyT, ValT, ValInfo>(
    const ImmutableMap<KeyT, ValT>& X,
    typename ImmutableMap<KeyT, ValT>::Factory& F)

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:226

Parameters

const ImmutableMap<KeyT, ValT>& X
typename ImmutableMap<KeyT, ValT>::Factory& F

ImmutableMapRef<KeyT, ValT, ValInfo>(
    const llvm::ImmutableMapRef::TreeTy* R,
    llvm::ImmutableMapRef::FactoryTy* F)

Description

Constructs a map from a pointer to a tree root. In general one should use a Factory object to create maps instead of directly invoking the constructor, but there are cases where make this constructor public is useful.

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:223

Parameters

const llvm::ImmutableMapRef::TreeTy* R
llvm::ImmutableMapRef::FactoryTy* F

inline void Profile(
    llvm::FoldingSetNodeID& ID) const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:325

Parameters

llvm::FoldingSetNodeID& ID

static inline void Profile(
    llvm::FoldingSetNodeID& ID,
    const ImmutableMapRef<KeyT, ValT, ValInfo>& M)

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:321

Parameters

llvm::FoldingSetNodeID& ID
const ImmutableMapRef<KeyT, ValT, ValInfo>& M

ImmutableMapRef<KeyT, ValT, ValInfo> add(
    llvm::ImmutableMapRef::key_type_ref K,
    llvm::ImmutableMapRef::data_type_ref D) const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:242

Parameters

llvm::ImmutableMapRef::key_type_ref K
llvm::ImmutableMapRef::data_type_ref D

ImmutableMap<KeyT, ValT> asImmutableMap() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:257

llvm::ImmutableMapRef::iterator begin() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:296

bool contains(
    llvm::ImmutableMapRef::key_type_ref K) const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:253

Parameters

llvm::ImmutableMapRef::key_type_ref K

llvm::ImmutableMapRef::iterator end() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:297

static inline ImmutableMapRef<KeyT, ValT, ValInfo>
getEmptyMap(llvm::ImmutableMapRef::FactoryTy* F)

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:230

Parameters

llvm::ImmutableMapRef::FactoryTy* F

unsigned int getHeight() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:319

llvm::ImmutableMapRef::value_type* getMaxElement()
    const

Description

getMaxElement - Returns the <key ,value> pair in the ImmutableMap for which key is the highest in the ordering of keys in the map. This method returns NULL if the map is empty.

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:311

bool isEmpty() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:270

llvm::ImmutableMapRef::data_type* lookup(
    llvm::ImmutableMapRef::key_type_ref K) const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:299

Parameters

llvm::ImmutableMapRef::key_type_ref K

void manualRelease()

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:238

void manualRetain()

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:234

ImmutableMapRef<KeyT, ValT, ValInfo> remove(
    llvm::ImmutableMapRef::key_type_ref K) const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:248

Parameters

llvm::ImmutableMapRef::key_type_ref K

void verify() const

Declared at: llvm/include/llvm/ADT/ImmutableMap.h:276