The interned string pool.
More...
#include <abg-interned-str.h>
|
| std::unique_ptr< priv > | priv_ |
| |
The interned string pool.
This is where all the distinct strings represented by the interned strings leave. The pool is the actor responsible for creating interned strings.
Definition at line 118 of file abg-interned-str.h.
◆ interned_string_pool()
Default constructor.
Definition at line 91 of file abg-ir.cc.
◆ ~interned_string_pool()
◆ create_string() [1/2]
◆ create_string() [2/2]
Create an interned string with a given value.
- Parameters
-
| str_value | the value of the interned string to create. |
- Returns
- the new created instance of interned_string created.
Definition at line 136 of file abg-ir.cc.
◆ get_string()
| const char * get_string |
( |
const char * |
s | ) |
const |
Get a pointer to the interned string which has a given value.
- Parameters
-
| s | the value of the interned string to look for. |
- Returns
- a pointer to the raw string of characters which has the value of
s. Or null if no string with value s was interned.
Definition at line 118 of file abg-ir.cc.
◆ has_string()
| bool has_string |
( |
const char * |
s | ) |
const |
Test if the interned string pool already contains a string with a given value.
- Parameters
-
- Returns
- true if the pool contains a string with the value
s.
Definition at line 105 of file abg-ir.cc.
◆ priv_
| std::unique_ptr<priv> priv_ |
The documentation for this class was generated from the following files:
- /home/builder/shared/snapshots/worker/libabigail-snapshots-html-doc/build/include/abg-interned-str.h
- /home/builder/shared/snapshots/worker/libabigail-snapshots-html-doc/build/src/abg-ir.cc