LLVM 22.0.0git
llvm::IntervalMapImpl::NodeRef Class Reference

#include "llvm/ADT/IntervalMap.h"

Public Member Functions

 NodeRef ()=default
 NodeRef - Create a null ref.
 operator bool () const
 operator bool - Detect a null ref.
template<typename NodeT>
 NodeRef (NodeT *p, unsigned n)
 NodeRef - Create a reference to the node p with n elements.
unsigned size () const
 size - Return the number of elements in the referenced node.
void setSize (unsigned n)
 setSize - Update the node size.
NodeRefsubtree (unsigned i) const
 subtree - Access the i'th subtree reference in a branch node.
template<typename NodeT>
NodeT & get () const
 get - Dereference as a NodeT reference.
bool operator== (const NodeRef &RHS) const
bool operator!= (const NodeRef &RHS) const

Detailed Description

Definition at line 494 of file IntervalMap.h.

Constructor & Destructor Documentation

◆ NodeRef() [1/2]

llvm::IntervalMapImpl::NodeRef::NodeRef ( )
default

NodeRef - Create a null ref.

Referenced by operator!=(), operator==(), and subtree().

◆ NodeRef() [2/2]

template<typename NodeT>
llvm::IntervalMapImpl::NodeRef::NodeRef ( NodeT * p,
unsigned n )
inline

NodeRef - Create a reference to the node p with n elements.

Definition at line 511 of file IntervalMap.h.

References assert().

Member Function Documentation

◆ get()

template<typename NodeT>
NodeT & llvm::IntervalMapImpl::NodeRef::get ( ) const
inline

get - Dereference as a NodeT reference.

Definition at line 530 of file IntervalMap.h.

Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::pathFillFind().

◆ operator bool()

llvm::IntervalMapImpl::NodeRef::operator bool ( ) const
inlineexplicit

operator bool - Detect a null ref.

Definition at line 507 of file IntervalMap.h.

◆ operator!=()

bool llvm::IntervalMapImpl::NodeRef::operator!= ( const NodeRef & RHS) const
inline

Definition at line 541 of file IntervalMap.h.

References NodeRef(), operator==(), and RHS.

◆ operator==()

bool llvm::IntervalMapImpl::NodeRef::operator== ( const NodeRef & RHS) const
inline

Definition at line 534 of file IntervalMap.h.

References assert(), NodeRef(), and RHS.

◆ setSize()

void llvm::IntervalMapImpl::NodeRef::setSize ( unsigned n)
inline

setSize - Update the node size.

Definition at line 519 of file IntervalMap.h.

◆ size()

unsigned llvm::IntervalMapImpl::NodeRef::size ( ) const
inline

size - Return the number of elements in the referenced node.

Definition at line 516 of file IntervalMap.h.

Referenced by llvm::IntervalMapImpl::Path::getLeftSibling(), and llvm::IntervalMapImpl::Path::moveLeft().

◆ subtree()

NodeRef & llvm::IntervalMapImpl::NodeRef::subtree ( unsigned i) const
inline

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