![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <URLOrigin.h>
Public Member Functions | |
| URLOrigin (FILEID url) | |
| URLOrigin (FILEID url, long start, long end, int index) | |
| std::unique_ptr< RJDocument > | reparse (RJMemoryPoolAlloc &alloc) const override |
| bool | isReparsable () const override |
| ~URLOrigin () override=default | |
| const FILEID & | getUrl () const |
| std::string | toString () const override |
| std::unique_ptr< IOrigin > | clone () const override |
| std::string | getStreamName () const override |
Public Member Functions inherited from IDPositionOrigin | |
| IDPositionOrigin (FILEID id) | |
| IDPositionOrigin (FILEID id, long start, long end, int index) | |
| 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 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 |
Additional Inherited Members | |
Protected Attributes inherited from IDPositionOrigin | |
| FILEID | id |
| long | start {} |
| long | end {} |
| int | index {} |
Represents a document originating from an URL
| URLOrigin::URLOrigin | ( | FILEID | url | ) |
| URLOrigin::URLOrigin | ( | FILEID | url, |
| long | start, | ||
| long | end, | ||
| int | index | ||
| ) |
|
overridedefault |
|
overridevirtual |
Clones the IOrigin for use in another document
Implements IDPositionOrigin.
|
overridevirtual |
Returns a human readable representation of the ID (without the offsets)
Implements IDPositionOrigin.
| const FILEID & URLOrigin::getUrl | ( | ) | const |
|
overridevirtual |
Returns if the IOrigin is reparsable
Reimplemented from IDPositionOrigin.
|
overridevirtual |
Reparses the origin into a new RJDocument. The allocator is used to increase performance
| alloc | Allocator used for allocating memoty |
Reimplemented from IDPositionOrigin.
|
overridevirtual |