Skip to content

Commit

Permalink
Add AliasMap table getter/setter
Browse files Browse the repository at this point in the history
With this, we won't need to have Tables as `friend`.
  • Loading branch information
parejkoj committed Sep 27, 2024
1 parent 3bc1096 commit 9f09a49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/lsst/afw/table/AliasMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ class AliasMap final {
/// Return true if all aliases in this are also in other (with the same targets).
bool contains(AliasMap const& other) const;

std::shared_ptr<BaseTable> getTable() const { return _table.lock(); }
void setTable(std::shared_ptr<BaseTable> table) { _table = table; }

private:
friend class Schema;
friend class SubSchema;
Expand Down

0 comments on commit 9f09a49

Please sign in to comment.