|
Bash++
Bash++ compiler internal documentation
|
An object in Bash++. More...
#include <bpp.h>


Public Member Functions | |
| bpp_object () | |
| bpp_object (const std::string &name) | |
| bpp_object (const std::string &name, bool is_pointer) | |
| void | set_class (std::shared_ptr< bpp_class > object_class) |
| void | set_pointer (bool is_pointer) |
| void | set_address (const std::string &address) |
| void | set_assignment_value (const std::string &assignment_value) |
| void | set_pre_access_code (const std::string &pre_access_code) |
| void | set_post_access_code (const std::string &post_access_code) |
| void | set_nullptr () |
| std::string | get_address () const override |
| std::string | get_assignment_value () const |
| std::shared_ptr< bpp_class > | get_class () override |
| std::string | get_pre_access_code () const |
| std::string | get_post_access_code () const |
| std::shared_ptr< bpp::bpp_object > | get_copy_from () const |
| bool | is_pointer () const |
Public Member Functions inherited from bpp::bpp_entity | |
| virtual | ~bpp_entity ()=default |
| virtual bool | add_class (std::shared_ptr< bpp_class > class_) |
| Add a class to this entity's list of classes. | |
| virtual bool | add_object (std::shared_ptr< bpp_object > object, bool make_local=false) |
| Add an object to this entity's list of objects. | |
| virtual void | set_name (const std::string &name) |
| virtual std::string | get_name () const |
| virtual std::weak_ptr< bpp::bpp_class > | get_containing_class () |
| Get the class which contains this entity. | |
| virtual bool | set_containing_class (std::weak_ptr< bpp::bpp_class > containing_class) |
| virtual void | inherit (std::shared_ptr< bpp_entity > parent) |
| Inherit from a parent entity. | |
| virtual void | inherit (std::shared_ptr< bpp_class > parent) |
| void | set_definition_position (const std::string &file, uint64_t line, uint64_t column) |
| void | add_reference (const std::string &file, uint64_t line, uint64_t column) |
| bpp::SymbolPosition | get_initial_definition () const |
| std::list< bpp::SymbolPosition > | get_references () const |
| std::unordered_map< std::string, std::shared_ptr< bpp_class > > | get_classes () const |
| std::unordered_map< std::string, std::shared_ptr< bpp_object > > | get_objects () const |
| std::shared_ptr< bpp_class > | get_class (const std::string &name) |
| std::shared_ptr< bpp_object > | get_object (const std::string &name) |
| std::shared_ptr< bpp_class > | get_parent () const |
Protected Attributes | |
| std::string | address = "" |
| std::string | assignment_value = "" |
| std::string | pre_access_code = "" |
| std::string | post_access_code = "" |
| bool | m_is_pointer = false |
| std::shared_ptr< bpp::bpp_object > | copy_from = nullptr |
Protected Attributes inherited from bpp::bpp_entity | |
| std::string | name = "" |
| std::unordered_map< std::string, std::shared_ptr< bpp_class > > | classes |
| A map of class names to class objects within this entity. | |
| std::unordered_map< std::string, std::shared_ptr< bpp_object > > | objects |
| A map of object names to bpp_objects within this entity. | |
| std::unordered_map< std::string, std::shared_ptr< bpp_object > > | local_objects |
| Like objects, but only for objects whose scope is local to this entity. | |
| std::shared_ptr< bpp_class > | type = nullptr |
| std::weak_ptr< bpp_class > | containing_class |
| std::vector< std::shared_ptr< bpp_class > > | parents |
| bpp::SymbolPosition | initial_definition |
| std::list< bpp::SymbolPosition > | references |
An object in Bash++.
| bpp::bpp_object::bpp_object | ( | ) |
|
explicit |
| bpp::bpp_object::bpp_object | ( | const std::string & | name, |
| bool | is_pointer | ||
| ) |
|
overridevirtual |
Reimplemented from bpp::bpp_entity.
| std::string bpp::bpp_object::get_assignment_value | ( | ) | const |
|
overridevirtual |
Reimplemented from bpp::bpp_entity.
| std::shared_ptr< bpp::bpp_object > bpp::bpp_object::get_copy_from | ( | ) | const |
| std::string bpp::bpp_object::get_post_access_code | ( | ) | const |
| std::string bpp::bpp_object::get_pre_access_code | ( | ) | const |
| bool bpp::bpp_object::is_pointer | ( | ) | const |
| void bpp::bpp_object::set_address | ( | const std::string & | address | ) |
| void bpp::bpp_object::set_assignment_value | ( | const std::string & | assignment_value | ) |
| void bpp::bpp_object::set_class | ( | std::shared_ptr< bpp_class > | object_class | ) |
| void bpp::bpp_object::set_nullptr | ( | ) |
| void bpp::bpp_object::set_pointer | ( | bool | is_pointer | ) |
| void bpp::bpp_object::set_post_access_code | ( | const std::string & | post_access_code | ) |
| void bpp::bpp_object::set_pre_access_code | ( | const std::string & | pre_access_code | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |