MySQL 9.3.0
Source Code Documentation
shcore::polyglot::Object_bridge Class Referenceabstract

#include <polyglot_object_bridge.h>

Inheritance diagram for shcore::polyglot::Object_bridge:
[legend]

Public Member Functions

virtual ~Object_bridge ()=default
 
virtual std::string class_name () const =0
 
virtual std::string & append_descr (std::string &s_out, int indent=-1, int quote_strings=0) const
 
virtual std::string & append_repr (std::string &s_out) const
 
virtual void append_json (shcore::JSON_dumper &dumper) const
 
virtual std::vector< std::string > get_members () const
 Returns the list of members that this object has. More...
 
virtual bool has_member (const std::string &prop) const
 Verifies if the object has a member. More...
 
virtual void set_member (const std::string &, Value)
 Sets the value of a member. More...
 
virtual bool is_indexed () const
 Returns the value of a member. More...
 
virtual Value get_member (size_t) const
 Returns the value of a member. More...
 
virtual void set_member (size_t, Value)
 Sets the value of a member. More...
 
virtual size_t length () const
 Returns the number of indexable members. More...
 
bool has_method (const std::string &name) const
 Returns true if a method with the given name exists. More...
 
virtual Value get_member (const std::string &) const
 Returns the value of a member. More...
 
virtual Value call (const std::string &, const Argument_list &)
 Calls the named method with the given args. More...
 

Private Member Functions

virtual const std::vector< std::string > * properties () const
 
virtual const std::vector< std::string > * methods () const
 

Constructor & Destructor Documentation

◆ ~Object_bridge()

virtual shcore::polyglot::Object_bridge::~Object_bridge ( )
virtualdefault

Member Function Documentation

◆ append_descr()

std::string & shcore::polyglot::Object_bridge::append_descr ( std::string &  s_out,
int  indent = -1,
int  quote_strings = 0 
) const
virtual

Reimplemented in shcore::polyglot::Date.

◆ append_json()

void shcore::polyglot::Object_bridge::append_json ( shcore::JSON_dumper dumper) const
virtual

Reimplemented in shcore::polyglot::Date.

◆ append_repr()

std::string & shcore::polyglot::Object_bridge::append_repr ( std::string &  s_out) const
virtual

Reimplemented in shcore::polyglot::Date.

◆ call()

virtual Value shcore::polyglot::Object_bridge::call ( const std::string &  ,
const Argument_list  
)
inlinevirtual

Calls the named method with the given args.

Reimplemented in shcore::polyglot::PolyResult, shcore::polyglot::Row, and shcore::polyglot::Session.

◆ class_name()

virtual std::string shcore::polyglot::Object_bridge::class_name ( ) const
pure virtual

◆ get_member() [1/2]

virtual Value shcore::polyglot::Object_bridge::get_member ( const std::string &  ) const
inlinevirtual

Returns the value of a member.

Reimplemented in shcore::polyglot::Column, shcore::polyglot::Column, and shcore::polyglot::Row.

◆ get_member() [2/2]

virtual Value shcore::polyglot::Object_bridge::get_member ( size_t  ) const
inlinevirtual

Returns the value of a member.

Reimplemented in shcore::polyglot::Row, and shcore::polyglot::Column.

◆ get_members()

std::vector< std::string > shcore::polyglot::Object_bridge::get_members ( ) const
virtual

Returns the list of members that this object has.

◆ has_member()

bool shcore::polyglot::Object_bridge::has_member ( const std::string &  prop) const
virtual

Verifies if the object has a member.

Reimplemented in shcore::polyglot::Row.

◆ has_method()

bool shcore::polyglot::Object_bridge::has_method ( const std::string &  name) const

Returns true if a method with the given name exists.

◆ is_indexed()

virtual bool shcore::polyglot::Object_bridge::is_indexed ( ) const
inlinevirtual

Returns the value of a member.

Reimplemented in shcore::polyglot::Row.

◆ length()

virtual size_t shcore::polyglot::Object_bridge::length ( ) const
inlinevirtual

Returns the number of indexable members.

Reimplemented in shcore::polyglot::Row.

◆ methods()

virtual const std::vector< std::string > * shcore::polyglot::Object_bridge::methods ( ) const
inlineprivatevirtual

◆ properties()

virtual const std::vector< std::string > * shcore::polyglot::Object_bridge::properties ( ) const
inlineprivatevirtual

◆ set_member() [1/2]

virtual void shcore::polyglot::Object_bridge::set_member ( const std::string &  ,
Value   
)
inlinevirtual

Sets the value of a member.

◆ set_member() [2/2]

virtual void shcore::polyglot::Object_bridge::set_member ( size_t  ,
Value   
)
inlinevirtual

Sets the value of a member.


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