LLVM 19.0.0git
Classes | Public Member Functions | List of all members
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 493 of file IntervalMap.h.

Constructor & Destructor Documentation

◆ NodeRef() [1/2]

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

NodeRef - Create a null ref.

◆ 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 510 of file IntervalMap.h.

References assert().

Member Function Documentation

◆ get()

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

◆ operator bool()

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

operator bool - Detect a null ref.

Definition at line 506 of file IntervalMap.h.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getOpaqueValue().

◆ operator!=()

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

Definition at line 540 of file IntervalMap.h.

References operator==(), and RHS.

◆ operator==()

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

◆ setSize()

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

setSize - Update the node size.

Definition at line 518 of file IntervalMap.h.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::setInt().

Referenced by llvm::IntervalMapImpl::Path::setSize().

◆ size()

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

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

Definition at line 515 of file IntervalMap.h.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getInt().

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: