BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MCache Class Reference

#include <cache.h>

Inheritance diagram for MCache:

Static Public Member Functions

static Minor5::Ptr getMinor5 (const Kinem5 &k)
static Minor4::Ptr getMinor4 (const Kinem4 &k)
static Minor3::Ptr getMinor3 (const Kinem3 &k)
static Minor2::Ptr getMinor2 (const Kinem2 &k)
static void insertMinor5 (const Kinem5 &k, Minor5::Ptr &m)
static void insertMinor4 (const Kinem4 &k, Minor4::Ptr &m)
static void insertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
static void insertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
static void smartinsertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
static void smartinsertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
static void Clear ()

Additional Inherited Members

Static Protected Attributes inherited from Cache
static const int size6 = 2
static const int size5 = size6 * 6
static const int size4 = size6 * 15
static const int size3 = size6 * 20
static const int size2 = size6 * 15
static const int size1 = size6 * 6

Detailed Description

Definition at line 402 of file cache.h.

Member Function Documentation

◆ Clear()

void MCache::Clear ( )
static

Definition at line 63 of file cache.cpp.

63 {
64 cm5.reset();
65 cm4.reset();
66 cm3.reset();
67 cm2.reset();
68}

Referenced by ICache::setMu2().

◆ getMinor2()

Minor2::Ptr MCache::getMinor2 ( const Kinem2 & k)
static

Referenced by ICache::getB(), and ICache::getB().

◆ getMinor3()

Minor3::Ptr MCache::getMinor3 ( const Kinem3 & k)
static

◆ getMinor4()

Minor4::Ptr MCache::getMinor4 ( const Kinem4 & k)
static

Definition at line 656 of file cache.cpp.

660 {
661 Minor4::Ptr minor;
662 for ( Array4::iterator it4 = cm4.begin(); it4 != cm4.end(); ++it4 )
663 {
664 if ( it4->key == k )
665 {
666 minor = it4->val;
667 break;
668 }
669 }
670 if ( minor == 0 )
671 {
672 Minor5::create( k );
673 minor = cm4.begin()->val;
674 cm4.insert( Entry4( k, minor ) );
NIter< Entry4, N > iterator
Definition pointer.h:85
SPtr< Minor4 > Ptr
Definition minor.h:498
static Ptr create(const Kinem5 &k)
Definition minor.h:193

Referenced by ICache::getD(), ICache::getD(), ICache::getD(), and ICache::getD().

◆ getMinor5()

Minor5::Ptr MCache::getMinor5 ( const Kinem5 & k)
static

◆ insertMinor2()

void MCache::insertMinor2 ( const Kinem2 & k,
Minor2::Ptr & m )
static

◆ insertMinor3()

void MCache::insertMinor3 ( const Kinem3 & k,
Minor3::Ptr & m )
static

◆ insertMinor4()

void MCache::insertMinor4 ( const Kinem4 & k,
Minor4::Ptr & m )
static

◆ insertMinor5()

void MCache::insertMinor5 ( const Kinem5 & k,
Minor5::Ptr & m )
static

◆ smartinsertMinor2()

void MCache::smartinsertMinor2 ( const Kinem2 & k,
Minor2::Ptr & m )
static

Definition at line 690 of file cache.cpp.

694 {
695 for ( Array2::iterator it2 = cm2.begin(); it2 != cm2.end(); ++it2 )
696 {
697 if ( it2->key == k )
698 {
699 cm2.remove( it2 );
700 break;

◆ smartinsertMinor3()

void MCache::smartinsertMinor3 ( const Kinem3 & k,
Minor3::Ptr & m )
static

Definition at line 678 of file cache.cpp.

682 {
683 for ( Array3::iterator it3 = cm3.begin(); it3 != cm3.end(); ++it3 )
684 {
685 if ( it3->key == k )
686 {
687 cm3.remove( it3 );
688 break;

The documentation for this class was generated from the following files: