Lines Matching refs:idx
210 GateRef GateAccessor::GetValueIn(GateRef gate, size_t idx) const in GetValueIn()
213 ASSERT(idx < gatePtr->GetInValueCount()); in GetValueIn()
215 return circuit_->GetIn(gate, valueIndex + idx); in GetValueIn()
229 GateRef GateAccessor::GetIn(GateRef gate, size_t idx) const in GetIn()
231 return circuit_->GetIn(gate, idx); in GetIn()
234 GateRef GateAccessor::GetState(GateRef gate, size_t idx) const in GetState()
236 ASSERT(idx < circuit_->LoadGatePtr(gate)->GetStateCount()); in GetState()
237 return circuit_->GetIn(gate, idx); in GetState()
243 for (size_t idx = 0; idx < curGate->GetStateCount(); idx++) { in GetInStates() local
244 ins.push_back(circuit_->GetGateRef(curGate->GetInGateConst(idx))); in GetInStates()
251 for (size_t idx = 0; idx < curGate->GetNumIns(); idx++) { in GetIns() local
252 ins.push_back(circuit_->GetGateRef(curGate->GetInGateConst(idx))); in GetIns()
317 bool GateAccessor::IsInGateNull(GateRef gate, size_t idx) const in IsInGateNull()
319 return circuit_->IsInGateNull(gate, idx); in IsInGateNull()
392 GateRef GateAccessor::GetDep(GateRef gate, size_t idx) const in GetDep()
395 ASSERT(idx < gatePtr->GetDependCount()); in GetDep()
397 return circuit_->GetIn(gate, dependIndex + idx); in GetDep()
410 void GateAccessor::SetDep(GateRef gate, GateRef depGate, size_t idx) in SetDep() argument
413 ASSERT(idx < gatePtr->GetDependCount()); in SetDep()
415 gatePtr->ModifyIn(dependIndex + idx, circuit_->LoadGatePtr(depGate)); in SetDep()
446 size_t idx = useIt.GetIndex(); in DeleteExceptionDep() local
448 circuit_->DecreaseIn(merge, idx - 1); in DeleteExceptionDep()
452 circuit_->DecreaseIn(useGate, idx); in DeleteExceptionDep()
470 size_t idx = useIt.GetIndex(); in DecreaseIn() local
471 circuit_->DecreaseIn(*useIt, idx); in DecreaseIn()
480 void GateAccessor::NewIn(GateRef gate, size_t idx, GateRef in) in NewIn() argument
482 circuit_->NewIn(gate, idx, in); in NewIn()
513 void GateAccessor::DeleteIn(GateRef gate, size_t idx) in DeleteIn() argument
515 ASSERT(idx < circuit_->LoadGatePtrConst(gate)->GetNumIns()); in DeleteIn()
516 ASSERT(!circuit_->IsInGateNull(gate, idx)); in DeleteIn()
517 circuit_->LoadGatePtr(gate)->DeleteIn(idx); in DeleteIn()