/usr/include/polybori/CacheManager.h is in libpolybori-dev 0.5~rc1-2.1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | // -*- c++ -*-
//*****************************************************************************
/** @file CacheManager.h
*
* @author Alexander Dreyer
* @date 2006-11-22
*
* This file contains the user variant for the (internal) CCacheManagement,
* which can find the active ring.
*
* @par Copyright:
* (c) 2006 by The PolyBoRi Team
*
* @internal
* @version \$Id: CacheManager.h,v 1.9 2008/07/08 21:41:58 alexanderdreyer Exp $
*
* @par History:
* @verbatim
* $Log: CacheManager.h,v $
* Revision 1.9 2008/07/08 21:41:58 alexanderdreyer
* Merge: from developer's repository
*
* Revision 1.4 2007/12/17 16:12:02 dreyer
* CHANGE: reviewed and optimized merge frim sf.net
*
* Revision 1.3 2007/12/13 15:53:49 dreyer
* CHANGE: Ordering in BoolePolyRing again; BooleEnv manages active ring
*
* Revision 1.2 2007/11/06 15:03:35 dreyer
* CHANGE: More generic copyright
*
* Revision 1.1 2006/11/22 15:46:22 dreyer
* ADD: CacheManager replacing CCacheManagement for external use
* CHANGE: CacheManager used, where necessary
* CHANGE: multiplesOf, uses cached recursion
*
* @endverbatim
**/
//*****************************************************************************
// include basic definitions
#include "pbori_defs.h"
// get internal cache management classes
#include "CCacheManagement.h"
#ifndef CacheManager_h_
#define CacheManager_h_
BEGIN_NAMESPACE_PBORI
class BooleEnv;
template <class CacheType>
class CacheManager:
public CCacheManagement<CacheType, CacheType::nargs> {
public:
/// Define base type
typedef CCacheManagement<CacheType, CacheType::nargs> base;
typedef typename base::manager_type manager_type;
/// Constructor
CacheManager(const manager_type& mgr):
base(mgr) {}
/// Destructor
~CacheManager() {}
};
template <class CacheType>
class CommutativeCacheManager:
public CCommutativeCacheManagement<CacheType> {
public:
/// Define base type
typedef CCommutativeCacheManagement<CacheType> base;
typedef typename base::manager_type manager_type;
/// Constructor
CommutativeCacheManager(const manager_type& mgr):
base(mgr) {}
/// Destructor
~CommutativeCacheManager() {}
};
END_NAMESPACE_PBORI
#endif
|