3#ifndef AWKWARD_EMPTYARRAYBUILDER_H_
4#define AWKWARD_EMPTYARRAYBUILDER_H_
18 template <
typename T,
typename I>
112 std::string vm_empty_command_;
114 std::string vm_error_;
Abstract class to represent the output of ak.to_buffers. In Python, this would be a dict of NumPy arr...
Definition: Builder.h:20
Definition: EmptyArrayBuilder.h:19
const std::string vm_output() const override
AwkwardForth virtual machine instructions of the data outputs.
void begin_list(LayoutBuilderPtr< T, I > builder) override
Begins building a nested list.
ssize_t len(const ForthOutputBufferMap &outputs) const override
The builder's output buffer length.
Definition: EmptyArrayBuilder.h:104
void float64(double x, LayoutBuilderPtr< T, I > builder) override
Adds a real value x to the accumulated data.
const std::string to_buffers(BuffersContainer &container, const ForthOutputBufferMap &outputs) const override
Copy the current snapshot into the BuffersContainer and return a Form as a std::string (JSON).
EmptyArrayBuilder(const util::Parameters ¶meters)
Creates an EmptyArrayBuilder from a full set of parameters.
void string(const std::string &x, LayoutBuilderPtr< T, I > builder) override
Adds a UTF-8 encoded bytestring x in STL format to the accumulated data.
void int64(int64_t x, LayoutBuilderPtr< T, I > builder) override
Adds an integer value x to the accumulated data.
const util::Parameters & form_parameters() const
String-to-JSON map that augments the meaning of this builder Form.
Definition: EmptyArrayBuilder.h:101
const std::string vm_func_name() const override
The array builder VM function name.
const std::string vm_output_data() const override
AwkwardForth virtual machine data output key.
const std::string vm_func() const override
AwkwardForth virtual machine instructions of the array builder function.
const std::string vm_func_type() const override
The array builder VM function type.
void boolean(bool x, LayoutBuilderPtr< T, I > builder) override
Adds a boolean value x to the accumulated data.
const std::string vm_error() const override
Error messages in the AwkwardForth virtual machine instructions.
void bytestring(const std::string &x, LayoutBuilderPtr< T, I > builder) override
Adds an unencoded bytestring x in STL format to the accumulated data.
void complex(std::complex< double > x, LayoutBuilderPtr< T, I > builder) override
Adds a complex value x to the accumulated data.
const std::string vm_from_stack() const override
AwkwardForth virtual machine instructions to retrieve the data from the VM stack.
void end_list(LayoutBuilderPtr< T, I > builder) override
Ends a nested list.
const std::string classname() const override
User-friendly name of this class.
User interface to the FormBuilder system: the LayoutBuilder is a fixed reference while the FormBuilde...
Definition: LayoutBuilder.h:62
#define LIBAWKWARD_EXPORT_SYMBOL
Definition: common.h:45
std::map< std::string, std::string > Parameters
Definition: util.h:165
Definition: BitMaskedArray.h:15
std::map< std::string, std::shared_ptr< ForthOutputBuffer > > ForthOutputBufferMap
Definition: FormBuilder.h:16