21 template<
typename T,
bool DIRECTED>
31 T p0()
const {
return myP0; }
32 T &
p0() {
return myP0; }
33 T p1()
const {
return myP1; }
34 T &
p1() {
return myP1; }
49 return (myP0 == e.myP0 && myP1 == e.myP1);
53 return (myP0 == e.myP0 && myP1 == e.myP1)
54 || (myP0 == e.myP1 && myP1 == e.myP0);
66 if (DIRECTED || myP0 < myP1)
69 SYShashCombine(hash_val,
GA_Size(myP1));
74 SYShashCombine(hash_val,
GA_Size(myP0));
84 template<
typename T,
bool DIRECTED>
98 template<
typename T,
bool DIRECTED>
bool operator==(const ThisType &e) const
Return whether this edge is the same undirected edge as the given edge.
bool GAisValid(GA_Size v)
size_t operator()(const GA_EdgeT< T, DIRECTED > &edge) const
exint GA_Size
Defines the bit width for index and offset types in GA.
GA_EdgeT< T, DIRECTED > ThisType
GA_EdgeT< T, DIRECTED > argument_type
SYS_FORCE_INLINE size_t hash_value(const GA_EdgeT< T, DIRECTED > &edge)
size_t hash() const
Hash function.
int64 getMemoryUsage() const
bool operator!=(const ThisType &e) const