PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
Hash.h File Reference

Hash functions for std::pair, std::tuple, and pbat::IndexVector. More...

#include "pbat/Aliases.h"
#include <cstddef>
#include <tuple>
#include <utility>

Go to the source code of this file.

Classes

struct  std::hash< pair< pbat::Index, pbat::Index > >
 Hash function for pair of Index. More...
 
struct  std::hash< tuple< pbat::Index, pbat::Index > >
 Hash function for 2-tuple of Index. More...
 
struct  std::hash< tuple< pbat::Index, pbat::Index, pbat::Index > >
 Hash function for 3-tuple of Index. More...
 
struct  std::hash< pbat::IndexVector< 2 > >
 Hash function for pbat::IndexVector<2> More...
 
struct  std::hash< pbat::IndexVector< 3 > >
 Hash function for pbat::IndexVector<3> More...
 

Namespaces

namespace  pbat
 The main namespace of the library.
 
namespace  pbat::common
 Common functionality.
 

Functions

template<typename T>
void pbat::common::HashCombineAccumulate (std::size_t &seed, T const &val)
 Incrementally combine hash values of multiple arguments.
 
template<typename... Types>
std::size_t pbat::common::HashCombine (Types const &... args)
 Combine hash values of multiple arguments.
 

Detailed Description

Hash functions for std::pair, std::tuple, and pbat::IndexVector.

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-02-10