Classdesc 3.44
RESTProcessFunction< F, R > Class Template Reference
Inheritance diagram for RESTProcessFunction< F, R >:
Inheritance graph
Collaboration diagram for RESTProcessFunction< F, R >:
Collaboration graph

Public Member Functions

 RESTProcessFunction (F f)
RPPtr process (const string &remainder, const REST_PROCESS_BUFFER &arguments) override
std::vector< Signaturesignature () const override
 return signature(s) of the operations
unsigned matchScore (const REST_PROCESS_BUFFER &arguments) const override
 returns how good the match is with arguments, less is best
template<class U>
enable_if< And< is_default_constructible< typenameremove_reference< U >::type >, Not< is_void< U > > >, RESTProcess_t >::T slist () const
template<class U>
enable_if< Not< And< is_default_constructible< typenameremove_reference< U >::type >, Not< is_void< U > > > >, RESTProcess_t >::T slist () const
RESTProcess_t list () const override
 return list of subcommands to this
std::string type () const override
 return type name of this
bool isObject () const override
bool isConst () const override
 true if this is a const object, a const member function or static/free function
unsigned arity () const override
 arity if this is a function, 0 otherwise
Public Member Functions inherited from RESTProcessFunctionBase
REST_PROCESS_BUFFER asBuffer () const override
Public Member Functions inherited from RESTProcessBase
virtual void populate (RESTProcess_t &map) const
 populate map from the object wrapped by this, if any
template<class F>
Signature functionSignature () const
 return signature for a function type F
template<class T>
TgetObject ()
 returns a pointer to the underlying object if it is one of type T, otherwise null
virtual size_t size () const
 size if this is a container, 0 otherwise
virtual RPPtr getElem (const REST_PROCESS_BUFFER &)
 get element by position for sequences, by key for associative containers
virtual RPPtr setElem (const REST_PROCESS_BUFFER &index, const REST_PROCESS_BUFFER &value)
virtual void insert (const REST_PROCESS_BUFFER &value)
 append to end of a sequence, or inserts key into an associative container
virtual void erase (const REST_PROCESS_BUFFER &index)
 erase an element - by position for sequences, by key for associative containers
virtual bool contains (const REST_PROCESS_BUFFER &key) const
 returns true if an associative container contains key
virtual RPPtr keys () const
 returns a list of keys if this is an associative container, otherwise void
virtual objectgetClassdescObject ()
 returns a classdesc object if referring to an object derived from classdesc::object
virtual const objectgetConstClassdescObject ()

Public Attributes

f

Additional Inherited Members

Static Public Attributes inherited from RESTProcessFunctionBase
static const unsigned maxMatchScore =1000000
Protected Member Functions inherited from RESTProcessBase
template<class T>
enable_if< is_base_of< object, T >, constobject * >::T getClassdescObjectImpl (T &obj)
 implementation of upcasting to a classdesc::object
template<class T>
enable_if< Not< is_base_of< object, T > >, constobject * >::T getClassdescObjectImpl (T &obj)

Member Function Documentation

◆ arity()

template<class F, class R = typename functional::Return<F>::T>
unsigned arity ( ) const
inlineoverridevirtual

arity if this is a function, 0 otherwise

Reimplemented from RESTProcessBase.

◆ isConst()

template<class F, class R = typename functional::Return<F>::T>
bool isConst ( ) const
inlineoverridevirtual

true if this is a const object, a const member function or static/free function

Reimplemented from RESTProcessBase.

◆ isObject()

template<class F, class R = typename functional::Return<F>::T>
bool isObject ( ) const
inlineoverridevirtual

true if this is an object, not a function

Reimplemented from RESTProcessBase.

◆ list()

template<class F, class R = typename functional::Return<F>::T>
RESTProcess_t list ( ) const
inlineoverridevirtual

return list of subcommands to this

Implements RESTProcessBase.

◆ matchScore()

template<class F, class R = typename functional::Return<F>::T>
unsigned matchScore ( const REST_PROCESS_BUFFER & arguments) const
inlineoverridevirtual

returns how good the match is with arguments, less is best

Implements RESTProcessFunctionBase.

◆ process()

template<class F, class R = typename functional::Return<F>::T>
RPPtr process ( const string & path,
const REST_PROCESS_BUFFER & arguments )
inlineoverridevirtual

perform the REST operation, with path being the path string and arguments as body text result of operation is returned as an object, and can be serialised into REST_PROCESS_BUFFER using asBuffer

Implements RESTProcessBase.

◆ signature()

template<class F, class R = typename functional::Return<F>::T>
std::vector< Signature > signature ( ) const
inlineoverridevirtual

return signature(s) of the operations

Implements RESTProcessBase.

References RESTProcessBase::functionSignature().

◆ type()

template<class F, class R = typename functional::Return<F>::T>
std::string type ( ) const
inlineoverridevirtual

return type name of this

Implements RESTProcessBase.


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