2 #ifndef AFW_TABLE_AliasMap_h_INCLUDED 3 #define AFW_TABLE_AliasMap_h_INCLUDED 63 Iterator
end()
const {
return _internal.
end(); }
149 #endif // !AFW_TABLE_AliasMap_h_INCLUDED Defines the fields and offsets for a table.
bool contains(AliasMap const &other) const
Return true if all aliases in this are also in other (with the same targets).
A proxy type for name lookups in a Schema.
std::size_t hash_value() const noexcept
Return a hash of this object.
std::size_t size() const
Return the number of aliases.
Iterator end() const
Return a iterator to one past the end of the map.
AliasMap(AliasMap const &other)
Deep-copy an AliasMap.
Mapping class that holds aliases for a Schema.
AliasMap & operator=(AliasMap const &)=default
AliasMap(AliasMap &&other)
A base class for image defects.
std::string apply(std::string const &name) const
Apply any aliases that match the given field name and return a de-aliased name.
bool operator!=(AliasMap const &other) const
Equality comparison.
bool operator==(AliasMap const &other) const
Equality comparison.
bool erase(std::string const &alias)
Remove an alias from the schema if it is present.
Key< Flag > const & target
size_t operator()(argument_type const &obj) const noexcept
Iterator begin() const
Return a iterator to the beginning of the map.
ItemVariant const * other
bool empty() const
Return the true if there are no aliases.
std::map< std::string, std::string >::const_iterator Iterator
An iterator over alias->target pairs.
Base class for all tables.