|
ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
|
Represents an interval in source code with associated AST node. More...
#include <SourceLocationIndex.h>
Public Member Functions | |
| bool | contains (unsigned line, unsigned column) const |
| Check if interval contains a point. | |
| bool | operator< (const Interval &other) const |
| Compare intervals by start position for sorting. | |
Public Attributes | |
| unsigned | beginLine |
| unsigned | beginColumn |
| unsigned | endLine |
| unsigned | endColumn |
| AstViewNode * | node |
Represents an interval in source code with associated AST node.
Definition at line 37 of file SourceLocationIndex.h.
| bool acav::Interval::contains | ( | unsigned | line, |
| unsigned | column ) const |
Check if interval contains a point.
| line | Line number (1-based) |
| column | Column number (1-based) |
Definition at line 33 of file SourceLocationIndex.cpp.
| bool acav::Interval::operator< | ( | const Interval & | other | ) | const |
Compare intervals by start position for sorting.
Definition at line 44 of file SourceLocationIndex.cpp.
| unsigned acav::Interval::beginColumn |
Definition at line 39 of file SourceLocationIndex.h.
| unsigned acav::Interval::beginLine |
Definition at line 38 of file SourceLocationIndex.h.
| unsigned acav::Interval::endColumn |
Definition at line 41 of file SourceLocationIndex.h.
| unsigned acav::Interval::endLine |
Definition at line 40 of file SourceLocationIndex.h.
| AstViewNode* acav::Interval::node |
Definition at line 42 of file SourceLocationIndex.h.