JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
joda::query::PointerCopyProject Class Reference

#include <PointerCopyProject.h>

Inheritance diagram for joda::query::PointerCopyProject:
[legend]
Collaboration diagram for joda::query::PointerCopyProject:
[legend]

Public Member Functions

 PointerCopyProject (const std::string &to, const std::string &from)
 
std::string getType () override
 
std::string toString () override
 
std::vector< std::string > getMaterializeAttributes () const override
 
- Public Member Functions inherited from joda::query::IProjector
 IProjector (const std::string &to)
 
virtual ~IProjector ()=default
 
virtual void project (const RapidJsonDocument &json, RJDocument &newDoc, bool view=false)
 
std::string getToPointer () const
 
const RJPointergetRawToPointer () const
 

Static Public Attributes

static const std::string type = "PointerCopy"
 
static const std::string allCopy = "AllCopy"
 

Protected Member Functions

RJValue getVal (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) override
 

Protected Attributes

RJPointer from
 
std::string from_str
 
bool copyAll = false
 
- Protected Attributes inherited from joda::query::IProjector
RJPointer ptr
 
std::string ptr_str
 

Detailed Description

Transformation copying a value from the source to destination document

Constructor & Destructor Documentation

◆ PointerCopyProject()

joda::query::PointerCopyProject::PointerCopyProject ( const std::string &  to,
const std::string &  from 
)

Member Function Documentation

◆ getMaterializeAttributes()

std::vector< std::string > joda::query::PointerCopyProject::getMaterializeAttributes ( ) const
overridevirtual

Returns a list of attributes that have to be materialized for this projection to work

Returns

Implements joda::query::IProjector.

◆ getType()

std::string joda::query::PointerCopyProject::getType ( )
overridevirtual

Returns a string representing the transformation function

Returns

Implements joda::query::IProjector.

◆ getVal()

RJValue joda::query::PointerCopyProject::getVal ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
)
overrideprotectedvirtual

Implements joda::query::IProjector.

Here is the call graph for this function:

◆ toString()

std::string joda::query::PointerCopyProject::toString ( )
overridevirtual

Returns a string representing the whole transformation as it would be specified in a query

Returns

Reimplemented from joda::query::IProjector.

Here is the call graph for this function:

Field Documentation

◆ allCopy

const std::string joda::query::PointerCopyProject::allCopy = "AllCopy"
static

◆ copyAll

bool joda::query::PointerCopyProject::copyAll = false
protected

◆ from

RJPointer joda::query::PointerCopyProject::from
protected

◆ from_str

std::string joda::query::PointerCopyProject::from_str
protected

◆ type

const std::string joda::query::PointerCopyProject::type = "PointerCopy"
static

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