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

Detailed Description

Definition at line 490 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 507 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 503 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 537 of file IntervalMap.h.

References llvm::operator==().

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

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

◆ size()

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

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

Definition at line 512 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: