Lines Matching refs:Idx
27 static void ValidateIndex(unsigned Idx) { in ValidateIndex() argument
28 assert(Idx < N && "Invalid node index!"); in ValidateIndex()
52 void AddNode(unsigned Idx) { in AddNode() argument
53 ValidateIndex(Idx); in AddNode()
54 Elements |= 1U << Idx; in AddNode()
58 void DeleteNode(unsigned Idx) { in DeleteNode() argument
59 ValidateIndex(Idx); in DeleteNode()
60 Elements &= ~(1U << Idx); in DeleteNode()
64 bool count(unsigned Idx) { in count() argument
65 ValidateIndex(Idx); in count()
66 return (Elements & (1U << Idx)) != 0; in count()
126 NodeType *AccessNode(unsigned Idx) const { in AccessNode()
127 ValidateIndex(Idx); in AccessNode()
130 return const_cast<NodeType *>(&Nodes[Idx]); in AccessNode()
135 NodeSubset NodesReachableFrom(unsigned Idx) const { in NodesReachableFrom()
141 Reachable.AddNode(Idx); in NodesReachableFrom()