Bash++
Bash++ compiler internal documentation
Public Member Functions | List of all members
bpp::bpp_method_parameter Class Reference

A parameter in a method. More...

#include <bpp.h>

Inheritance diagram for bpp::bpp_method_parameter:
Inheritance graph
[legend]
Collaboration diagram for bpp::bpp_method_parameter:
Collaboration graph
[legend]

Public Member Functions

 bpp_method_parameter (const std::string &name)
 
void set_class (std::shared_ptr< bpp_class >)
 
- Public Member Functions inherited from bpp::bpp_entity
 bpp_entity ()=default
 
virtual ~bpp_entity ()=default
 
 bpp_entity (const bpp_entity &other)=default
 
bpp_entityoperator= (const bpp_entity &other)=default
 
 bpp_entity (bpp_entity &&other) noexcept=default
 
bpp_entityoperator= (bpp_entity &&other) noexcept=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 std::shared_ptr< bpp_classget_class ()
 
virtual std::string get_address () const
 
virtual void set_name (const std::string &name)
 
virtual std::string get_name () const
 
virtual std::weak_ptr< bpp::bpp_classget_containing_class ()
 Get the class which contains this entity.
 
virtual std::weak_ptr< bpp_programget_containing_program ()
 
virtual bool set_containing_class (std::weak_ptr< bpp::bpp_class > containing_class)
 
void inherit (std::shared_ptr< bpp_entity > parent)
 Inherit from a parent entity.
 
void inherit (std::shared_ptr< bpp_program > program)
 
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::SymbolPositionget_references () const
 
const std::unordered_map< std::string, std::weak_ptr< bpp_class > > & get_classes () const
 
const std::unordered_map< std::string, std::weak_ptr< bpp_object > > & get_foreign_objects () const
 
const std::unordered_map< std::string, std::shared_ptr< bpp_object > > & get_local_objects () const
 
std::shared_ptr< bpp_classget_class (const std::string &name)
 
std::shared_ptr< bpp_objectget_object (const std::string &name)
 
std::shared_ptr< bpp_classget_parent () const
 

Additional Inherited Members

- Protected Attributes inherited from bpp::bpp_entity
std::string name
 
std::unordered_map< std::string, std::weak_ptr< bpp_class > > classes
 A map of class names to class objects within this entity.
 
std::unordered_map< std::string, std::weak_ptr< bpp_object > > foreign_objects
 A map of objects that this entity knows about, but does not own These are objects that are owned by parent entities, and are accessible from this entity due to inheritance.
 
std::unordered_map< std::string, std::shared_ptr< bpp_object > > local_objects
 A map of objects that this entity owns These are objects that are instantiated within this entity, and are not accessible from parent entities, but will be inherited by child entities.
 
std::weak_ptr< bpp_classtype
 
std::weak_ptr< bpp_classcontaining_class
 
std::weak_ptr< bpp_programcontaining_program
 
std::vector< std::weak_ptr< bpp_class > > parents
 
std::weak_ptr< bpp_methodoverridden_method
 
bpp::SymbolPosition initial_definition
 
std::list< bpp::SymbolPositionreferences
 

Detailed Description

A parameter in a method.

Constructor & Destructor Documentation

◆ bpp_method_parameter()

bpp::bpp_method_parameter::bpp_method_parameter ( const std::string &  name)
explicit

Member Function Documentation

◆ set_class()

void bpp::bpp_method_parameter::set_class ( std::shared_ptr< bpp_class type)

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