HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_EdgeSet.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: GA_EdgeSet.h (GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #pragma once
12 
13 #ifndef __GA_EdgeSet_h__
14 #define __GA_EdgeSet_h__
15 
16 #include "GA_Edge.h"
17 #include <UT/UT_ArraySet.h>
18 
19 namespace UT {
20 /// For possible use with UT::ArraySet or UT::ArrayMap
21 template<typename T,bool DIRECTED>
22 struct DefaultClearer<GA_EdgeT<T,DIRECTED> >
23 {
25  {
26  v = GA_EdgeT<T,DIRECTED>(T(-1), T(-1));
27  }
28  static bool isClear(const GA_EdgeT<T,DIRECTED> &v)
29  {
30  return (v.p0() == T(-1)) && (v.p1() == T(-1));
31  }
33  clear(*p);
34  }
35  static const bool clearNeedsDestruction = false;
36 };
37 }
38 
39 /// A helper specialization of UT_Set to support a map keyed by GA_Edge or GA_DirectedEdge
42 
43 #endif
const GLdouble * v
Definition: glcorearb.h:837
static void clear(GA_EdgeT< T, DIRECTED > &v)
Definition: GA_EdgeSet.h:24
static bool isClear(const GA_EdgeT< T, DIRECTED > &v)
Definition: GA_EdgeSet.h:28
T p1() const
Definition: GA_Edge.h:32
static void clearConstruct(GA_EdgeT< T, DIRECTED > *p)
Definition: GA_EdgeSet.h:32
T p0() const
Definition: GA_Edge.h:30