|
| TupleBuilder (const BuilderOptions &options, const std::vector< BuilderPtr > &contents, int64_t length, bool begun, size_t nextindex) |
| Create a TupleBuilder from a full set of parameters.
|
|
int64_t | numfields () const |
| Current number of fields.
|
|
const std::string | classname () const override |
| User-friendly name of this class: "TupleBuilder" .
|
|
const std::string | to_buffers (BuffersContainer &container, int64_t &form_key_id) const override |
| Copy the current snapshot into the BuffersContainer and return a Form as a std::string (JSON).
|
|
int64_t | length () const override |
| Current length of the accumulated array.
|
|
void | clear () override |
| Removes all accumulated data without resetting the type knowledge.
|
|
bool | active () const override |
| If true , this node has started but has not finished a multi-step command (e.g. beginX ... endX ).
|
|
const BuilderPtr | null () override |
| Adds a null value to the accumulated data.
|
|
const BuilderPtr | boolean (bool x) override |
| Adds a boolean value x to the accumulated data.
|
|
const BuilderPtr | integer (int64_t x) override |
| Adds an integer value x to the accumulated data.
|
|
const BuilderPtr | real (double x) override |
| Adds a real value x to the accumulated data.
|
|
const BuilderPtr | complex (std::complex< double > x) override |
| Adds a complex value x to the accumulated data.
|
|
const BuilderPtr | datetime (int64_t x, const std::string &unit) override |
| Adds a datetime value x to the accumulated data.
|
|
const BuilderPtr | timedelta (int64_t x, const std::string &unit) override |
| Adds a timedelta value x to the accumulated data.
|
|
const BuilderPtr | string (const char *x, int64_t length, const char *encoding) override |
| Adds a string value x with a given length and encoding to the accumulated data.
|
|
const BuilderPtr | beginlist () override |
| Begins building a nested list.
|
|
const BuilderPtr | endlist () override |
| Ends a nested list.
|
|
const BuilderPtr | begintuple (int64_t numfields) override |
| Begins building a tuple with a fixed number of fields.
|
|
const BuilderPtr | index (int64_t index) override |
| Sets the pointer to a given tuple field index; the next command will fill that slot.
|
|
const BuilderPtr | endtuple () override |
| Ends a tuple.
|
|
const BuilderPtr | beginrecord (const char *name, bool check) override |
| Begins building a record with an optional name.
|
|
void | field (const char *key, bool check) override |
| Sets the pointer to a given record field key ; the next command will fill that slot.
|
|
const BuilderPtr | endrecord () override |
| Ends a record.
|
|
const BuilderOptions & | options () const |
|
const std::vector< BuilderPtr > & | contents () const |
|
bool | begun () |
|
int64_t | nextindex () |
|
void | maybeupdate (int64_t i, const BuilderPtr builder) |
|
virtual | ~Builder () |
| Virtual destructor acts as a first non-inline virtual function that determines a specific translation unit in which vtable shall be emitted.
|
|
virtual const std::string | classname () const =0 |
| User-friendly name of this class.
|
|
virtual const std::string | to_buffers (BuffersContainer &container, int64_t &form_key_id) const =0 |
| Copy the current snapshot into the BuffersContainer and return a Form as a std::string (JSON).
|
|
virtual int64_t | length () const =0 |
| Current length of the accumulated array.
|
|
virtual void | clear ()=0 |
| Removes all accumulated data without resetting the type knowledge.
|
|
virtual bool | active () const =0 |
| If true , this node has started but has not finished a multi-step command (e.g. beginX ... endX ).
|
|
virtual const BuilderPtr | null ()=0 |
| Adds a null value to the accumulated data.
|
|
virtual const BuilderPtr | boolean (bool x)=0 |
| Adds a boolean value x to the accumulated data.
|
|
virtual const BuilderPtr | integer (int64_t x)=0 |
| Adds an integer value x to the accumulated data.
|
|
virtual const BuilderPtr | real (double x)=0 |
| Adds a real value x to the accumulated data.
|
|
virtual const BuilderPtr | complex (std::complex< double > x)=0 |
| Adds a complex value x to the accumulated data.
|
|
virtual const BuilderPtr | datetime (int64_t x, const std::string &unit)=0 |
| Adds a datetime value x to the accumulated data.
|
|
virtual const BuilderPtr | timedelta (int64_t x, const std::string &unit)=0 |
| Adds a timedelta value x to the accumulated data.
|
|
virtual const BuilderPtr | string (const char *x, int64_t length, const char *encoding)=0 |
| Adds a string value x with a given length and encoding to the accumulated data.
|
|
virtual const BuilderPtr | beginlist ()=0 |
| Begins building a nested list.
|
|
virtual const BuilderPtr | endlist ()=0 |
| Ends a nested list.
|
|
virtual const BuilderPtr | begintuple (int64_t numfields)=0 |
| Begins building a tuple with a fixed number of fields.
|
|
virtual const BuilderPtr | index (int64_t index)=0 |
| Sets the pointer to a given tuple field index; the next command will fill that slot.
|
|
virtual const BuilderPtr | endtuple ()=0 |
| Ends a tuple.
|
|
virtual const BuilderPtr | beginrecord (const char *name, bool check)=0 |
| Begins building a record with an optional name.
|
|
virtual void | field (const char *key, bool check)=0 |
| Sets the pointer to a given record field key ; the next command will fill that slot.
|
|
virtual const BuilderPtr | endrecord ()=0 |
| Ends a record.
|
|