class MAGES::Analytics::Processor

Overview

The class that represents a processor. More…

class Processor
{
public:
    // methods

    Processor(Func, object, List, Tuple> process);

    Tuple Apply(
        List list,
        object target,
        List arguments
    );
};

Detailed Documentation

The class that represents a processor.

Methods

Processor(Func, object, List, Tuple> process)

Initializes a new instance of the Processor class.

Parameters:

process

The function that will be applied to the filtered data from the query.

Tuple Apply(
    List list,
    object target,
    List arguments
)

Applies function to the filtered data from the query.

Parameters:

list

The filtered data from the query.

target

A target to provide an extra context for the processing.

arguments

Arguments for additional context for the processing.

Returns:

A Tuple that holds the generated result and a bool that indicates whether or not the goal of the query was successfull.