Lines Matching defs:Idx
27 static void ValidateIndex(unsigned Idx) {
28 assert(Idx < N && "Invalid node index!");
54 void AddNode(unsigned Idx) {
55 ValidateIndex(Idx);
56 Elements |= 1U << Idx;
60 void DeleteNode(unsigned Idx) {
61 ValidateIndex(Idx);
62 Elements &= ~(1U << Idx);
66 bool count(unsigned Idx) {
67 ValidateIndex(Idx);
68 return (Elements & (1U << Idx)) != 0;
128 NodeType *AccessNode(unsigned Idx) const {
129 ValidateIndex(Idx);
132 return const_cast<NodeType *>(&Nodes[Idx]);
137 NodeSubset NodesReachableFrom(unsigned Idx) const {
143 Reachable.AddNode(Idx);