HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BoundingBoxHash.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_BoundingRectHash.h (UT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __UT_BoundingBoxHash_h__
12 #define __UT_BoundingBoxHash_h__
13 
14 #include "UT_API.h"
15 #include "UT_BoundingBox.h"
16 #include <SYS/SYS_Hash.h>
17 
18 /// @file
19 /// Include this if you need to hash UT_BoundingBox
20 
21 /// Compute UT_BoundingBox hash
22 template <typename T>
23 uint64
25 {
26  return SYShashRange(begin(), end());
27 }
28 
29 #endif
FMT_CONSTEXPR auto begin(const C &c) -> decltype(c.begin())
Definition: format.h:251
unsigned long long uint64
Definition: SYS_Types.h:112
GLuint GLuint end
Definition: glew.h:1253
uint64 hash() const
Compute UT_BoundingBox hash.