Linker
INCLUDE FILE
#include "Linker.h"
class Linker
The base class to translate a program or library.
DEFINITION
class Linker;
constructor Linker
DEFINITION
| Linker | ( | ); |
constructor Linker
DEFINITION
| Linker | ( | Symbol name, | |
| Target * target_ | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
target_ |
destructor ~Linkervirtual
DEFINITION
| virtual ~Linker | ( | ); |
method as
Get the linker as a specific type.
DEFINITION
template <typename T>
| T * as | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
T * |
The linker as the specified type, or nullptr if it is not of that type. |
method asconst
Get the linker as a specific type.
DEFINITION
template <typename T>
| const T * as | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const T * |
The linker as the specified type, or nullptr if it is not of that type. |
method isconst
Check if the linker is of a specific type.
DEFINITION
template <typename T>
| bool is | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
true if the linker is of the specified type, false otherwise. |
method link
DEFINITION
| void link | ( | ); |
method link_new
DEFINITION
| void link_new | ( | ); |
method link_subvirtual protected
DEFINITION
| virtual void link_sub | ( | ); |
method moduleconst
DEFINITION
| const Module & module | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const Module & |
method module
DEFINITION
| Module & module | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
Module & |
method outputvirtual
DEFINITION
| virtual void output | ( | const std::filesystem::path & file_name | ) | = 0; |
| PARAMETER | DESCRIPTION |
|---|---|
file_name |
method output_extensionconst virtual
DEFINITION
| virtual const std::string & output_extension | ( | ) const | = 0; |
| RETURNS | DESCRIPTION |
|---|---|
const std::string & |
method root_entitiesvirtual protected
DEFINITION
| virtual std::vector< Entity * > root_entities | ( | ) | = 0; |
| RETURNS | DESCRIPTION |
|---|---|
std::vector< Entity * > |
method set_target
DEFINITION
| void set_target | ( | Target * new_target | ); |
| PARAMETER | DESCRIPTION |
|---|---|
new_target |
method set_target_from_module
If no target has been set yet, use the target from the module.
DEFINITION
| bool set_target_from_module | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
bool |
|
member entitiesprotected
DEFINITION
std::vector< Entity * > entities;
member module_protected
DEFINITION
Module module_;
member target
DEFINITION
Target * target;