Contains the AuxData Tables and serves as a base class.
More...
#include <AuxDataContainer.hpp>
|
struct | AuxDataRaw |
| An interface for accessing the serialized form of an AuxData instance. More...
|
|
Contains the AuxData Tables and serves as a base class.
◆ const_aux_data_iterator
An iterator type for traversing the AuxData in this container.
The value type for this iterator is AuxDataRaw. The iterator provides access to the serialized form of all AuxData in this container (regardless of whether or not the AuxData's type is registered.) Note that the content is only valid with respect to the most recent unserialization operation. Entries for new or modified AuxData entities will contain empty or stale content.
◆ const_aux_data_range
◆ addAuxData()
template<typename Schema >
void gtirb::AuxDataContainer::addAuxData |
( |
typename Schema::Type && |
X | ) |
|
|
inline |
Add a new AuxData, transferring ownership.
- Parameters
-
- Returns
- void
◆ aux_data()
Return a constant range of the auxiliary data (AuxData).
◆ aux_data_begin()
Return a constant iterator to the first AuxData.
◆ aux_data_end()
Return a constant iterator to the element following the last AuxData.
◆ clearAuxData()
void gtirb::AuxDataContainer::clearAuxData |
( |
| ) |
|
|
inline |
Clear all AuxData from the IR.
- Returns
- void
◆ getAuxData() [1/2]
template<typename Schema >
Schema::Type* gtirb::AuxDataContainer::getAuxData |
( |
| ) |
|
|
inline |
Get a reference to the underlying type stored in the AuxData by name.
- Returns
- A non-owning pointer to the data if found,
nullptr
otherwise.
Note that this function can only be used for AuxData for which a type has been registered with registerAuxDataType().
◆ getAuxData() [2/2]
template<typename Schema >
const Schema::Type* gtirb::AuxDataContainer::getAuxData |
( |
| ) |
const |
|
inline |
Get a reference to the underlying type stored in the AuxData by name.
- Returns
- A non-owning pointer to the data if found,
nullptr
otherwise.
Note that this function can only be used for AuxData for which a type has been registered with registerAuxDataType().
◆ getAuxDataEmpty()
bool gtirb::AuxDataContainer::getAuxDataEmpty |
( |
| ) |
const |
|
inline |
Check: Is the number of AuxData objects in this IR zero?
- Returns
true
if this IR does not contain any AuxData, otherwise false
◆ getAuxDataSize()
size_t gtirb::AuxDataContainer::getAuxDataSize |
( |
| ) |
const |
|
inline |
Get the total number of AuxData objects in this IR.
- Returns
- The total number of AuxData objects.
◆ registerAuxDataType()
template<typename Schema >
static void gtirb::AuxDataContainer::registerAuxDataType |
( |
| ) |
|
|
inlinestatic |
Register a type to be used with AuxData of the given name.
◆ removeAuxData() [1/2]
template<typename Schema >
bool gtirb::AuxDataContainer::removeAuxData |
( |
| ) |
|
|
inline |
Remove an AuxData by schema.
This will invalidate any pointers that may have been held externally.
- Returns
true
on success, false
otherwise.
Note that this function can only be used for AuxData for which a type has been registered with registerAuxDataType().
◆ removeAuxData() [2/2]
bool gtirb::AuxDataContainer::removeAuxData |
( |
std::string |
Name | ) |
|
|
inline |
Remove an AuxData by name.
This will invalidate any pointers that may have been held externally.
- Returns
true
on success, false
otherwise.
Note that this function can be used for any AuxData regardless of whether or not it has a registered schema.
The documentation for this class was generated from the following file: