BOSS 7.0.6
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 209 of file cache.h.

Member Function Documentation

◆ Clear()

void MCache::Clear ( )
static

Definition at line 69 of file cache.cpp.

70{
71 cm5.reset();
72 cm4.reset();
73 cm3.reset();
74 cm2.reset();
75}
void reset()
Definition: pointer.h:112

Referenced by ICache::setMu2().

◆ getMinor2()

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

Referenced by ICache::getB().

◆ getMinor3()

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

Referenced by ICache::getC().

◆ getMinor4()

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

Definition at line 658 of file cache.cpp.

663{
664 Minor4::Ptr minor;
665 for (Array4::iterator it4=cm4.begin(); it4!=cm4.end(); ++it4) {
666 if (it4->key == k) {
667 minor=it4->val;
668 break;
669 }
670 }
671 if (minor==0) {
673 minor=cm4.begin()->val;
674 cm4.insert(Entry4(k,minor));
NIter< T, N > iterator
Definition: pointer.h:84
iterator begin()
Definition: pointer.h:85
T & insert(const T &el)
Definition: pointer.h:88
iterator end()
Definition: pointer.h:86
static Ptr create(const Kinem5 &k)
Definition: minor.h:219
Definition: pointer.h:25

Referenced by ICache::getD().

◆ getMinor5()

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

Referenced by ICache::getE().

◆ insertMinor2()

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

◆ insertMinor3()

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

◆ insertMinor4()

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

◆ insertMinor5()

static 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.

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

◆ smartinsertMinor3()

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

Definition at line 679 of file cache.cpp.

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

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