manages root sets for garbage collection.
More...
#include <root-set-table.hpp>
manages root sets for garbage collection.
◆ root_set_table() [1/3]
| root_set_table::root_set_table |
( |
| ) |
|
|
default |
creates an instance of the root set table.
◆ ~root_set_table()
| root_set_table::~root_set_table |
( |
| ) |
|
|
default |
deletes the instance of the root set table.
◆ root_set_table() [2/3]
deleted copy constructor.
◆ root_set_table() [3/3]
constructs new root set table from an existing one.
- Parameters
-
| other | - rvalue of the existing root set value. |
moves ownership of the roots from other to this.
◆ add_root()
| void root_set_table::add_root |
( |
std::string |
key, |
|
|
std::unique_ptr< root_set_base > |
root |
|
) |
| |
adds new root to the root set table.
- Parameters
-
| key | - name of the root. |
| root | - instance of the root set entry. |
- Returns
- void
◆ clear()
| void root_set_table::clear |
( |
| ) |
|
|
noexcept |
removes all roots from root set table.
- Returns
- void
◆ get_root() [1/2]
| const root_set_base * root_set_table::get_root |
( |
const std::string & |
key | ) |
const |
|
noexcept |
getter for the root from the root set table.
- Parameters
-
- Returns
- const pointer to a root set entry.
◆ get_root() [2/2]
| root_set_base * root_set_table::get_root |
( |
const std::string & |
key | ) |
|
|
noexcept |
getter for the root from the root set table.
- Parameters
-
- Returns
- pointer to a root set entry.
◆ get_root_count()
| size_t root_set_table::get_root_count |
( |
| ) |
const |
|
noexcept |
getter for the number of roots in the root set table.
- Returns
- number of roots.
◆ get_roots() [1/2]
getter for the root-set-table.
- Returns
- const reference to a root-set-table.
◆ get_roots() [2/2]
getter for the root-set-table.
- Returns
- reference to a root-set-table.
◆ operator=() [1/2]
deleted assignment operator.
◆ operator=() [2/2]
constructs new root set table by assigning it an existing one.
- Parameters
-
| other | - rvalue of the existing root set table. |
moves ownership of the roots from other to this.
◆ remove_root()
| void root_set_table::remove_root |
( |
const std::string & |
key | ) |
|
removes root from the root set table.
- Parameters
-
- Returns
- void
◆ roots
hash map storing root sets by name.
The documentation for this class was generated from the following files: