|
opynsim
Unofficial C++ Documentation
|
#include <symbol.h>
Public Member Functions | |
| Symbol ()=default | |
| Symbol (std::string_view sv) | |
| operator std::string () const | |
Converts *this into a std::string. | |
| operator std::string_view () const | |
Returns a std::string_view of the contents of this Symbol | |
| std::string_view | name () const |
Returns the name (key, content) of this Symbol. | |
Friends | |
| struct | std::hash< Symbol > |
| bool | operator== (const Symbol &, const Symbol &)=default |
| bool | operator== (std::string_view lhs, const Symbol &rhs) |
| bool | operator== (const Symbol &lhs, std::string_view rhs) |
Represents an immutable, cheap-to-copy, cheap-to-compare, cheap-to-hash symbol in the global process symbol table.
Used by OPynSim to accelerate associative lookups in larger data structures, such as Model.
|
default |
|
inlineexplicit |
|
inline |
Returns the name (key, content) of this Symbol.
|
inlineexplicit |
Converts *this into a std::string.
|
inlineexplicit |
Returns a std::string_view of the contents of this Symbol
|
friend |
|
friend |
|
friend |