Skip to content

Commit

Permalink
add const getMap (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Dec 17, 2024
1 parent 9489e05 commit 4c22067
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 0 additions & 5 deletions ManiVault/src/LinkedData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ void SelectionMap::populateMappingIndices(std::uint32_t pointIndex, Indices& ind
}
}

SelectionMap::Map& SelectionMap::getMap()
{
return _map;
}

bool SelectionMap::hasMappingForPointIndex(std::uint32_t pointIndex) const
{
switch (_type)
Expand Down
8 changes: 7 additions & 1 deletion ManiVault/src/LinkedData.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ class CORE_EXPORT SelectionMap : public util::Serializable
* Get map for indexed pixels
* @return Index map
*/
Map& getMap();
Map& getMap() { return _map; };

/**
* Get map for indexed pixels
* @return Index map
*/
const Map& getMap() const { return _map; };

/**
* Establishes whether a mapping exists for \p pointIndex
Expand Down

0 comments on commit 4c22067

Please sign in to comment.