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

#include <ValueAccepter.h>

Public Member Functions

 ValueAccepter (const std::unique_ptr< joda::query::IValueProvider > &ival)
 
 ValueAccepter ()
 
template<class Handler >
bool Accept (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc, Handler &h) const
 
void prepareGenerator (const RapidJsonDocument *json_, RJMemoryPoolAlloc *alloc_)
 
template<typename Handler >
bool operator() (Handler &handler)
 
std::variant< const RJValue, std::optional< const RJValue * >, const VirtualObject * > getPointerIfExists (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const
 
const RJValuegetPointer (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const
 
const VirtualObjectgetObjVO (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) const
 
std::vector< std::string > getMaterializeAttributes () const
 

Static Public Member Functions

template<class Handler >
static bool Accept (const std::unique_ptr< IValueProvider > &ival, const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc, Handler &h)
 

Constructor & Destructor Documentation

◆ ValueAccepter() [1/2]

joda::query::ValueAccepter::ValueAccepter ( const std::unique_ptr< joda::query::IValueProvider > &  ival)
inlineexplicit

◆ ValueAccepter() [2/2]

joda::query::ValueAccepter::ValueAccepter ( )
inline

Member Function Documentation

◆ Accept() [1/2]

template<class Handler >
bool joda::query::ValueAccepter::Accept ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc,
Handler &  h 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Accept() [2/2]

template<class Handler >
static bool joda::query::ValueAccepter::Accept ( const std::unique_ptr< IValueProvider > &  ival,
const RapidJsonDocument json,
RJMemoryPoolAlloc alloc,
Handler &  h 
)
inlinestatic
Here is the call graph for this function:

◆ getMaterializeAttributes()

std::vector<std::string> joda::query::ValueAccepter::getMaterializeAttributes ( ) const
inline
Here is the call graph for this function:

◆ getObjVO()

const VirtualObject* joda::query::ValueAccepter::getObjVO ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPointer()

const RJValue* joda::query::ValueAccepter::getPointer ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPointerIfExists()

std::variant<const RJValue, std::optional<const RJValue *>, const VirtualObject *> joda::query::ValueAccepter::getPointerIfExists ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
) const
inline

If possible returns a pointer or Virtualobject, if it does not exist, it returns a nullptr_t nulltr.

Parameters
json
alloc
Returns
Here is the call graph for this function:

◆ operator()()

template<typename Handler >
bool joda::query::ValueAccepter::operator() ( Handler &  handler)
inline
Here is the call graph for this function:

◆ prepareGenerator()

void joda::query::ValueAccepter::prepareGenerator ( const RapidJsonDocument json_,
RJMemoryPoolAlloc alloc_ 
)
inline

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