MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / TypeArray

Function TypeArray

src/fflib/AFunction.cpp:343–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341
342
343aType TypeArray(aType b,aType a)
344{ // type of b[a]
345 aType r=map_type_of_map[make_pair(a->right(),b->right())];
346 if (!r) {
347 cerr << "\nSorry is not possible to make a map "<< *b->right() << " [" << *a->right() << "]" << endl;
348 cerr << "in map_type_of_map , list: " << endl;
349 Map_type_of_map::const_iterator i;
350 for(i=map_type_of_map.begin();i!=map_type_of_map.end();i++)
351 cerr << "\t " << *i->first.second << " [" << *i->first.first << "]" << "=" << *i->second << endl;
352 CompileError();
353 }
354 return r;
355}
356
357aType TypeTemplate(aType b,aType a)
358{ // type of b[a]

Callers 2

ArrayDCLFunction · 0.85
lg.tab.cppFile · 0.85

Calls 4

CompileErrorFunction · 0.85
rightMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected