Zoltan2
Classes | Namespaces | Functions
Zoltan2_IdentifierTraits.hpp File Reference

Defines basic traits for user global identifiers. More...

#include <Zoltan2_Standards.hpp>
#include <Zoltan2_AlltoAll.hpp>
#include <Teuchos_SerializationTraits.hpp>
#include <Teuchos_HashUtils.hpp>
#include <Teuchos_ReductionOp.hpp>
#include <utility>
#include <iostream>
#include <sstream>
#include <string>
#include <limits>
#include <cstdlib>
Include dependency graph for Zoltan2_IdentifierTraits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Zoltan2::Zoltan2_MinMaxOperation< T >
 Teuchos reduction operation. More...
struct  Zoltan2::UndefIdTraits< T >
 Structure to catch invalid user ID types. More...
struct  Zoltan2::IdentifierTraits< T >
 The functions to be defined for users' global ID types. More...

Namespaces

namespace  Zoltan2

Functions

int Zoltan2::getHashCode (const unsigned char *a, size_t len)
 helper to hash values larger than int to an int. Hash values do not need to be unique, but there should be as few overlaps as possible.
template<typename T >
std::pair< T, T > Zoltan2::z2LocalMinMax (const T *val, size_t n)
 helper function to find min and max of array of user Ids
template<typename T >
void Zoltan2::z2GlobalMinMax (const Comm< int > &comm, bool noLocalValues, T localMin, T localMax, T &globalMin, T &globalMax)
 helper function to find global min and max of array of user Ids
template<typename T >
bool Zoltan2::z2AreConsecutive (const T *val, size_t n)
 helper function to determine if list of user Ids are consecutive
template<typename T >
std::string Zoltan2::stringifyOrdinal (T ordinal)
 helper function write a user ID to a string

Detailed Description

Defines basic traits for user global identifiers.

Definition in file Zoltan2_IdentifierTraits.hpp.