GTIRB
v2.2.0
GrammaTech Intermediate Representation for Binaries
|
An AuxDataContainer object provides functionality for associating auxiliary data with elements of the representation.
The guaranteed functionality is provided as follows.
Language | AuxDataContainer Class | guaranteed Node Properties |
---|---|---|
C++ | gtirb::AuxDataContainer | through inheritance from gtirb::Node |
Python | gtirb.AuxDataContainer | through inheritance from gtirb.Node |
Common Lisp | No explicit implementation; relevant classes ir and module implement required functionality directly. | . |
Language | Get AuxData by name | Insert/Overwrite AuxData | Erase AuxData |
---|---|---|---|
C++ | gtirb::AuxDataContainer::getAuxData () | gtirb::AuxDataContainer::addAuxData(), gtirb::AuxData::operator=() | gtirb::AuxDataContainer::removeAuxData() |
Python | dict lookup in gtirb.AuxDataContainer.auxdata | dict insert/overwrite on gtirb.AuxDataContainer.auxdata | dict pop on gtirb.AuxDataContainer.auxdata |
Common Lisp | aux-data object => result has module and gtirb specializations; extract the required named data extraction from the result alist | extract auxiliary data alist with aux-data accessor, update alist as needed, then use (setf (aux-data object) new-value) which has module and gtirb specializations | as for insert/overwrite |
Language | Get AuxData data | Get AuxData type hint |
---|---|---|
C++ | gtirb::AuxData::get() | gtirb::AuxData::typeName() |
Python | gtirb.AuxData.data | gtirb.AuxData.type_name |
Common Lisp | aux-data-data aux-data => result | aux-data-type aux-data => result |