11 #ifndef __PRM_REFID_H_INCLUDED__
12 #define __PRM_REFID_H_INCLUDED__
41 {
return myParmIndex >= 0; }
45 myParmIndex = parm_index;
46 myParmSubIndex = sub_index;
55 myParmSubIndex = sub_index;
60 return myParmSubIndex;
65 return SYSwang_inthash(
66 myParmIndex * 1024 + myParmSubIndex
71 return( myParmIndex == other.myParmIndex &&
72 myParmSubIndex == other.myParmSubIndex );
78 if (myParmIndex != other.myParmIndex)
80 if (myParmSubIndex == -1 || other.myParmSubIndex == -1)
82 return (myParmSubIndex == other.myParmSubIndex);
93 #endif // __PRM_REFID_H_INCLUDED__
void setParmRef(int parm_index, int sub_index=-1)
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
PRM_RefId(int pi, int vi)
int getParmSubIndex() const
int operator==(const PRM_RefId &other) const
SYS_FORCE_INLINE UT_StringHolder getToken(Add enum_value)
__hostdev__ constexpr T pi()
Pi constant taken from Boost to match old behaviour.
LeafData & operator=(const LeafData &)=delete
bool matches(const PRM_RefId &other) const
void setParmSubIndex(int sub_index)