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