JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <IDPositionOrigin.h>
Public Member Functions | |
IDPositionOrigin (FILEID id) | |
IDPositionOrigin (FILEID id, long start, long end, int index) | |
std::unique_ptr< RJDocument > | reparse (RJMemoryPoolAlloc &alloc) const override |
bool | isReparsable () const override |
virtual | ~IDPositionOrigin () override=default |
long | getStart () const |
void | setStart (long start) |
long | getEnd () const |
void | setEnd (long end) |
int | getIndex () const |
void | setIndex (int index) |
virtual std::string | getStreamName () const =0 |
std::string | toString () const override=0 |
std::unique_ptr< IOrigin > | clone () const override=0 |
virtual bool | operator< (const IOrigin &x) const override final |
bool | operator< (const IDPositionOrigin &other) const |
bool | operator== (const IDPositionOrigin &other) const |
Public Member Functions inherited from IOrigin | |
virtual | ~IOrigin ()=default |
bool | operator== (const IOrigin &x) const |
virtual bool | operator<= (const IOrigin &x) const |
virtual bool | operator> (const IOrigin &x) const |
virtual bool | operator>= (const IOrigin &x) const |
Protected Attributes | |
FILEID | id |
long | start {} |
long | end {} |
int | index {} |
Interface representing a origin that can be represented by an ID and two offsets (for example files/static webfiles/...)
IDPositionOrigin::IDPositionOrigin | ( | FILEID | id | ) |
IDPositionOrigin::IDPositionOrigin | ( | FILEID | id, |
long | start, | ||
long | end, | ||
int | index | ||
) |
|
overridevirtualdefault |
|
overridepure virtual |
Clones the IOrigin for use in another document
Implements IOrigin.
Implemented in URLOrigin, and FileOrigin.
long IDPositionOrigin::getEnd | ( | ) | const |
int IDPositionOrigin::getIndex | ( | ) | const |
long IDPositionOrigin::getStart | ( | ) | const |
|
pure virtual |
Returns a human readable representation of the ID (without the offsets)
Implemented in URLOrigin, and FileOrigin.
|
overridevirtual |
bool IDPositionOrigin::operator< | ( | const IDPositionOrigin & | other | ) | const |
|
finaloverridevirtual |
Reimplemented from IOrigin.
bool IDPositionOrigin::operator== | ( | const IDPositionOrigin & | other | ) | const |
|
overridevirtual |
void IDPositionOrigin::setEnd | ( | long | end | ) |
void IDPositionOrigin::setIndex | ( | int | index | ) |
void IDPositionOrigin::setStart | ( | long | start | ) |
|
overridepure virtual |
Returns a textual representation of the IOrigin
Implements IOrigin.
Implemented in URLOrigin, and FileOrigin.
|
protected |
|
protected |
|
protected |
|
protected |