1 #ifndef CPPAD_CG_INDEX_OPERATION_NODE_INCLUDED
2 #define CPPAD_CG_INDEX_OPERATION_NODE_INCLUDED
34 inline bool isDefinedLocally()
const {
39 const std::vector<Argument<Base> >& args = this->
getArguments();
40 CPPADCG_ASSERT_KNOWN(!args.empty(),
"Invalid number of arguments");
41 CPPADCG_ASSERT_KNOWN(args.back().getOperation() !=
nullptr,
"Invalid argument type");
42 return *args.back().getOperation();
46 const std::vector<Argument<Base> >& args = this->
getArguments();
47 CPPADCG_ASSERT_KNOWN(!args.empty(),
"Invalid number of arguments");
50 CPPADCG_ASSERT_KNOWN(aNode !=
nullptr && aNode->
getOperationType() == CGOpCode::IndexDeclaration,
"Invalid argument operation type");
56 std::vector<Argument<Base> >& args = this->
getArguments();
59 args[0] = indexAssign.getIndex();
60 args[1] = indexAssign;
CGOpCode getOperationType() const
const std::vector< Argument< Base > > & getArguments() const