10 #ifndef TPETRA_DETAILS_TIEBREAK_HPP
11 #define TPETRA_DETAILS_TIEBREAK_HPP
17 #include "Teuchos_RCP.hpp"
37 template <
typename LocalOrdinal,
typename GlobalOrdinal>
97 const std::vector<std::pair<int, LocalOrdinal> >& pid_and_lid)
const = 0;
103 #endif // TPETRA_DETAILS_TIEBREAK_HPP
Interface for breaking ties in ownership.
Representation of a global index on a process.
virtual std::size_t selectedIndex(GlobalOrdinal GID, const std::vector< std::pair< int, LocalOrdinal > > &pid_and_lid) const =0
Break any ties in ownership of the given global index GID.
virtual ~TieBreak()=default
Virtual destructor (for memory safety of derived classes).
Forward declaration for Tpetra::TieBreak.
virtual bool mayHaveSideEffects() const
Whether selectedIndex() may have side effects.