Lines Matching refs:parent2

62       parent2(rhs),  in RandomVariableBase()
101 return op->eval(parent1->getValue(), parent2 == nullptr ? 0 : parent2->getValue()); in getValue()
139 if (mVar->parent2 != nullptr && mVar->parent2->type == RandomVariableType::CONST) { in RandomVariable()
140 mVar->parent2 = RandomVariable(mVar->parent2->value).get(); in RandomVariable()
143 if (mVar->parent2 != nullptr) mVar->parent2->children.push_back(mVar); in RandomVariable()
287 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval() local
292 fillRange(childOut, std::max(child.first, parent1.first + parent2.first), in eval()
293 std::min(child.second, parent1.second + parent2.second)); in eval()
297 fillRange(parent1Out, std::max(parent1.first, child.first - parent2.second), in eval()
298 std::min(parent1.second, child.second - parent2.first)); in eval()
299 fillRange(parent2Out, std::max(parent2.first, child.first - parent1.second), in eval()
300 std::min(parent2.second, child.second - parent1.first)); in eval()
322 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval() local
324 fillRange(childOut, std::max(child.first, parent1.first - parent2.second), in eval()
325 std::min(child.second, parent1.second - parent2.first)); in eval()
326 fillRange(parent1Out, std::max(parent1.first, child.first + parent2.first), in eval()
327 std::min(parent1.second, child.second + parent2.second)); in eval()
328 fillRange(parent2Out, std::max(parent2.first, parent1.first - child.second), in eval()
329 std::min(parent2.second, parent1.second - child.first)); in eval()
599 int ind2 = var->parent2 == nullptr ? -1 : mIndexMap[var->parent2]; in add()
676 var->parent2 == nullptr ? 0 : var->parent2->value); in eval()
720 if (var->parent2 != nullptr) ss << " var" << var->parent2->index; in toString()
783 var->parent2 == nullptr ? nullptr : &context->at(var->parent2).committed, in evalSubnetSingleOpHelper()
785 var->parent2 == nullptr ? nullptr : &context->at(var->parent2).staging, in evalSubnetSingleOpHelper()
876 } else if (var1->parent2 == var2) { in setBridgeFlag()
894 if (var->parent2 != nullptr) adj.push_back(var->parent2); in annotateBridgeHelper()
929 auto parent2 = var->parent2; in add() local
931 if (mBridgeInfo[var].isParent2Bridge) var->parent2 = nullptr; in add()
934 var->parent2 = parent2; in add()
950 res.back().evalOrder.push_back(var->parent2); in get()
951 res.back().bridgeNodes.push_back(var->parent2); in get()
1009 constructorHelper(var->parent2, visited); in constructorHelper()
1129 RandomVariableNode parent1 = node->parent1, parent2 = node->parent2; in unsetEqual() local
1133 if (parent2 != nullptr) { in unsetEqual()
1135 parent2->children.erase( in unsetEqual()
1136 std::find_if(parent2->children.begin(), parent2->children.end(), weakPtrEqual)); in unsetEqual()
1137 node->parent2 = nullptr; in unsetEqual()