#include "cache.h"
#include "integral.h"
Go to the source code of this file.
◆ getIN
Value:
{ \
Ival ivalue; \
bool found=false; \
for (ArrayS##n::iterator it##
n=ics##
n.begin(); it##
n != ics##
n.end(); ++it##
n) { \
found=true; \
break; \
} \
} \
if ( ! found ) { \
ics##
n.insert(EntryS##
n(k,ivalue)); \
} \
}
std::complex< double > ncomplex
◆ getMinorN
Value:
{ \
for (Array##n::iterator it##
n=cm##
n.begin(); it##
n!=cm##
n.end(); ++it##
n) { \
break; \
} \
} \
\
return minor; \
}
Definition at line 622 of file eemmg-lib-new/src/cache.cpp.
622#define getMinorN(n) \
623Minor##n::Ptr MCache::getMinor##n(const Kinem##n &k) \
624{ \
625 Minor##n::Ptr minor; \
626 for (Array##n::iterator it##n=cm##n.begin(); it##n!=cm##n.end(); ++it##n) { \
627 if (it##n->key == k) { \
628 minor=it##n->val; \
629 break; \
630 } \
631 } \
632
633
634
◆ getSave
Value:ICache::Save##
n * ICache::getS##
n(
int ep,
const Kinem##
n &kin,
int coefn) \
{ \
for (Array##n::iterator it##
n=ic##
n[
ep].begin(); it##
n != ic##
n[
ep].end(); ++it##
n) { \
if (it##
n->key == kin) { \
break; \
} \
} \
Save##n::Ptr sptr(
new Save##
n(
ncomplex(sNAN.d64, 0))); \
ic##
n[
ep].insert(Entry##
n(kin, sptr)); \
} \
} \
Definition at line 525 of file eemmg-lib-new/src/cache.cpp.
525#define getSave(n) \
526ICache::Save##n * ICache::getS##n(int ep, const Kinem##n &kin, int coefn) \
527{ \
528 Save##n *s##n=0; \
529 for (Array##n::iterator it##n=ic##n[ep].begin(); it##n != ic##n[ep].end(); ++it##n) { \
530 if (it##n->key == kin) { \
531 s##n=it##n->val.get(); \
532 break; \
533 } \
534 } \
535 if (s##n == 0) { \
536 Save##n::Ptr sptr(new Save##n(ncomplex(sNAN.d64, 0))); \
537 s##n=sptr.get(); \
538 ic##n[ep].insert(Entry##n(kin, sptr)); \
539 } \
540 return s##n; \
541} \
542
◆ getMinorN()
Definition at line 636 of file eemmg-lib-new/src/cache.cpp.
646{
648 for (Array5::iterator it5=cm5.begin(); it5!=cm5.end(); ++it5) {
649 if (it5->key == k) {
650 minor=it5->val;
651 break;
652 }
653 }
654 if (minor==0) {
656 cm5.insert(Entry5(k,minor));
static Ptr create(const Kinem5 &k)