21 template<
typename T,
bool DIRECTED>
30 T p0()
const {
return myP0; }
31 T &
p0() {
return myP0; }
32 T p1()
const {
return myP1; }
33 T &
p1() {
return myP1; }
48 return (myP0 == e.myP0 && myP1 == e.myP1);
52 return (myP0 == e.myP0 && myP1 == e.myP1)
53 || (myP0 == e.myP1 && myP1 == e.myP0);
65 if (DIRECTED || myP0 < myP1)
68 SYShashCombine(hash_val,
GA_Size(myP1));
73 SYShashCombine(hash_val,
GA_Size(myP0));
83 template<
typename T,
bool DIRECTED>
97 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