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_name (const std::string &name) |
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_name () const override |
std::string | get_address () const override |
std::string | get_assignment_value () const |
std::shared_ptr< bpp_class > | get_class () const 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 |
![]() | |
virtual | ~bpp_entity ()=default |
virtual bool | add_class (std::shared_ptr< bpp_class > class_) |
Add a class to this entity's list of classes. More... | |
virtual bool | add_object (std::shared_ptr< bpp_object > object, bool make_local=false) |
Add an object to this entity's list of objects. More... | |
virtual std::weak_ptr< bpp::bpp_class > | get_containing_class () const |
Get the class which contains this entity. More... | |
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. More... | |
virtual void | inherit (std::shared_ptr< bpp_class > parent) |
virtual std::unordered_map< std::string, std::shared_ptr< bpp_class > > | get_classes () const |
virtual std::unordered_map< std::string, std::shared_ptr< bpp_object > > | get_objects () const |
virtual std::shared_ptr< bpp_class > | get_class (const std::string &name) |
virtual std::shared_ptr< bpp_object > | get_object (const std::string &name) |
Protected Attributes | |
std::string | name = "" |
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 |
![]() | |
std::unordered_map< std::string, std::shared_ptr< bpp_class > > | classes |
A map of class names to class objects within this entity. More... | |
std::unordered_map< std::string, std::shared_ptr< bpp_object > > | objects |
A map of object names to bpp_objects within this entity. More... | |
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. More... | |
std::shared_ptr< bpp_class > | type = nullptr |
std::weak_ptr< bpp_class > | containing_class |
std::vector< std::shared_ptr< bpp_class > > | parents |
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.
Reimplemented in bpp::bpp_datamember.
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 |
|
overridevirtual |
Reimplemented from bpp::bpp_entity.
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_name | ( | const std::string & | name | ) |
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 |
|
protected |