JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions
URLOrigin Class Reference

#include <URLOrigin.h>

Inheritance diagram for URLOrigin:
[legend]
Collaboration diagram for URLOrigin:
[legend]

Public Member Functions

 URLOrigin (FILEID url)
 
 URLOrigin (FILEID url, long start, long end, int index)
 
std::unique_ptr< RJDocumentreparse (RJMemoryPoolAlloc &alloc) const override
 
bool isReparsable () const override
 
 ~URLOrigin () override=default
 
const FILEIDgetUrl () const
 
std::string toString () const override
 
std::unique_ptr< IOriginclone () 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 {}
 

Detailed Description

Represents a document originating from an URL

Constructor & Destructor Documentation

◆ URLOrigin() [1/2]

URLOrigin::URLOrigin ( FILEID  url)

◆ URLOrigin() [2/2]

URLOrigin::URLOrigin ( FILEID  url,
long  start,
long  end,
int  index 
)

◆ ~URLOrigin()

URLOrigin::~URLOrigin ( )
overridedefault

Member Function Documentation

◆ clone()

std::unique_ptr< IOrigin > URLOrigin::clone ( ) const
overridevirtual

Clones the IOrigin for use in another document

Returns
New IOrigin with the same parameters.

Implements IDPositionOrigin.

◆ getStreamName()

std::string URLOrigin::getStreamName ( ) const
overridevirtual

Returns a human readable representation of the ID (without the offsets)

Returns

Implements IDPositionOrigin.

Here is the call graph for this function:

◆ getUrl()

const FILEID & URLOrigin::getUrl ( ) const

◆ isReparsable()

bool URLOrigin::isReparsable ( ) const
overridevirtual

Returns if the IOrigin is reparsable

Returns
true, if yes, false if not

Reimplemented from IDPositionOrigin.

◆ reparse()

std::unique_ptr< RJDocument > URLOrigin::reparse ( RJMemoryPoolAlloc alloc) const
overridevirtual

Reparses the origin into a new RJDocument. The allocator is used to increase performance

Parameters
allocAllocator used for allocating memoty
Returns
Reparsed RJDocument, or nullpointer if not reparsable

Reimplemented from IDPositionOrigin.

◆ toString()

std::string URLOrigin::toString ( ) const
overridevirtual

Returns a textual representation of the IOrigin

Returns

Implements IDPositionOrigin.


The documentation for this class was generated from the following files: