Awali
Another Weighted Automata library
|
#include <node.hh>
Public Types | |
typedef std::vector< node_t * >::const_iterator | const_iterator |
typedef std::vector< node_t * >::iterator | iterator |
Public Member Functions | |
array_t () | |
array_t (std::vector< node_t * > v) | |
~array_t () | |
unsigned | arity () const override |
virtual array_t const * | array () const override |
Casts this node to array_t. More... | |
virtual array_t * | array () override |
Casts this node to array_t. More... | |
virtual node_t const * | at (unsigned i) const override |
virtual node_t * | at (unsigned i) override |
iterator | begin () |
const_iterator | begin () const |
virtual array_t * | copy () const override |
unsigned | empty () const |
iterator | end () |
const_iterator | end () const |
virtual bool | has_child (unsigned i) const override |
virtual unsigned | height () const override |
array_t * | push_back (node_t *p) |
Public Member Functions inherited from awali::json::node_t | |
virtual | ~node_t () |
virtual node_t * | at (std::string const &key) |
virtual node_t const * | at (std::string const &key) const |
node_t * | at_path (path_t const &path, unsigned i=0) |
node_t const * | at_path (path_t const &path, unsigned i=0) const |
virtual bool_t * | boolean () |
Casts this node to bool_t. More... | |
virtual bool_t const * | boolean () const |
Casts this node to bool_t. More... | |
virtual float_t * | floating () |
Casts this not to float_t. More... | |
virtual float_t const * | floating () const |
Casts this not to float_t. More... | |
virtual bool | has_child (std::string const &) const |
bool | has_path (json::path_t const &path) const |
virtual int_t * | integer () |
Casts this node to int_t. More... | |
virtual int_t const * | integer () const |
Casts this node to int_t. More... | |
bool | is (node_kind_t k) const |
bool | is (std::vector< node_kind_t >const &v) const |
bool | is_leaf () const |
virtual null_t * | null () |
Casts this node to null_t. More... | |
virtual null_t const * | null () const |
Casts this node to null_t. More... | |
virtual object_t * | object () |
Casts this node to object_t. More... | |
virtual object_t const * | object () const |
Casts this node to object_t. More... | |
path_t | path_to_root () const |
virtual string_t * | string () |
Casts this node to string_t. More... | |
virtual string_t const * | string () const |
Casts this node to string_t. More... | |
virtual bool | to_bool () const |
Coerces this node_t to bool . More... | |
virtual double | to_double () const |
Coerces this node_t to a double More... | |
virtual int | to_int () const |
Coerces this node_t to int . More... | |
virtual std::string | to_string () const |
Coerces this node_t to an std::string . More... | |
Data Fields | |
std::vector< node_t * > const & | values |
Data Fields inherited from awali::json::node_t | |
node_kind_t const | kind |
node_t const * | parent |
Protected Attributes | |
std::vector< node_t * > | _values |
Additional Inherited Members | |
Protected Member Functions inherited from awali::json::node_t | |
node_t (node_kind_t k) | |
typedef std::vector<node_t*>::const_iterator awali::json::array_t::const_iterator |
typedef std::vector<node_t*>::iterator awali::json::array_t::iterator |
awali::json::array_t::array_t | ( | ) |
awali::json::array_t::array_t | ( | std::vector< node_t * > | v | ) |
awali::json::array_t::~array_t | ( | ) |
|
overridevirtual |
Reimplemented from awali::json::node_t.
|
overridevirtual |
Casts this node to array_t.
Reimplemented from awali::json::node_t.
|
overridevirtual |
Casts this node to array_t.
Reimplemented from awali::json::node_t.
|
overridevirtual |
Reimplemented from awali::json::node_t.
|
overridevirtual |
Reimplemented from awali::json::node_t.
iterator awali::json::array_t::begin | ( | ) |
const_iterator awali::json::array_t::begin | ( | ) | const |
|
overridevirtual |
Implements awali::json::node_t.
unsigned awali::json::array_t::empty | ( | ) | const |
iterator awali::json::array_t::end | ( | ) |
const_iterator awali::json::array_t::end | ( | ) | const |
|
overridevirtual |
Reimplemented from awali::json::node_t.
|
overridevirtual |
Reimplemented from awali::json::node_t.
|
protected |
std::vector<node_t*> const& awali::json::array_t::values |