Lines Matching refs:Args
40 // 1) A way to bundle the args that your new Foo operation will take, as
44 // typedef args::Package<const FstClass &,
47 // Note: this package of args is going to be passed by non-const pointer.
49 // 2) A function template that is able to perform Foo, given the args and
53 // void Foo(FooArgs *args) {
55 // const Fst<Arc> &ifst = args->arg1.GetFst<Arc>();
56 // MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>();
67 // // package the args
68 // FooArgs args(ifst, ofst);
70 // Apply<Operation<FooArgs> >("Foo", ifst->ArcType(), &args);
151 // for instance, it might be a struct containing all the args.
158 typedef ArgPack Args;
159 typedef void (*OpType)(ArgPack *args);
183 typename OpReg::Args *args) {
194 op(args);