| 7803 | |
| 7804 | |
| 7805 | Array<CoefficientFunction*> FindCacheCF (CoefficientFunction & func) |
| 7806 | { |
| 7807 | Array<CoefficientFunction*> cachecf; |
| 7808 | func.TraverseTree |
| 7809 | ( [&] (CoefficientFunction & nodecf) |
| 7810 | { |
| 7811 | if (dynamic_cast<CacheCoefficientFunction*> (&nodecf)) |
| 7812 | { |
| 7813 | if (cachecf.Contains(&nodecf)) return; |
| 7814 | cachecf.Append (&nodecf); |
| 7815 | } |
| 7816 | }); |
| 7817 | return cachecf; |
| 7818 | } |
| 7819 | |
| 7820 | |
| 7821 | void PrecomputeCacheCF (const Array<CoefficientFunction*> & cachecfs, BaseMappedIntegrationRule & mir, |
no test coverage detected