clang  6.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::diff::NodeId Struct Reference

Within a tree, this identifies a node by its preorder offset. More...

#include "clang/Tooling/ASTDiff/ASTDiffInternal.h"

Collaboration diagram for clang::diff::NodeId:
Collaboration graph
[legend]

Public Member Functions

 NodeId ()
 
 NodeId (int Id)
 
 operator int () const
 
NodeIdoperator++ ()
 
NodeIdoperator-- ()
 
NodeIdoperator* ()
 
bool isValid () const
 
bool isInvalid () const
 

Public Attributes

int Id
 

Detailed Description

Within a tree, this identifies a node by its preorder offset.

Definition at line 26 of file ASTDiffInternal.h.

Constructor & Destructor Documentation

◆ NodeId() [1/2]

clang::diff::NodeId::NodeId ( )
inline

Definition at line 33 of file ASTDiffInternal.h.

◆ NodeId() [2/2]

clang::diff::NodeId::NodeId ( int  Id)
inline

Definition at line 34 of file ASTDiffInternal.h.

Member Function Documentation

◆ isInvalid()

bool clang::diff::NodeId::isInvalid ( ) const
inline

◆ isValid()

bool clang::diff::NodeId::isValid ( ) const
inline

Definition at line 42 of file ASTDiffInternal.h.

◆ operator int()

clang::diff::NodeId::operator int ( ) const
inline

Definition at line 36 of file ASTDiffInternal.h.

References Id.

◆ operator*()

NodeId& clang::diff::NodeId::operator* ( )
inline

Definition at line 40 of file ASTDiffInternal.h.

◆ operator++()

NodeId& clang::diff::NodeId::operator++ ( )
inline

Definition at line 37 of file ASTDiffInternal.h.

References Id.

◆ operator--()

NodeId& clang::diff::NodeId::operator-- ( )
inline

Definition at line 38 of file ASTDiffInternal.h.

References Id.

Member Data Documentation

◆ Id

int clang::diff::NodeId::Id

Definition at line 31 of file ASTDiffInternal.h.

Referenced by operator int(), operator++(), and operator--().


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