00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef HCOREDATABASE_HH_
00021 #define HCOREDATABASE_HH_
00022
00023
00024 #include "cpsp/HCore.hh"
00025 #include <biu/LatticeDescriptor.hh>
00026
00027 namespace cpsp
00028 {
00032 class HCoreDatabase
00033 {
00034 public:
00035 HCoreDatabase() {};
00036 virtual ~HCoreDatabase() {};
00037
00038
00039
00043 virtual bool initCoreAccess( const biu::LatticeDescriptor& latDescr,
00044 const unsigned int size,
00045 const unsigned int minContacts=0,
00046 const unsigned int maxContacts=UINT_MAX-2
00047 ) = 0;
00048
00055 virtual bool getNextCore(HCore& toFill) = 0;
00056
00058 virtual unsigned int getActCoreSize() = 0;
00059
00062 virtual unsigned int getActMinHHcontacts() = 0;
00063
00066 virtual void setActMinHHcontacts(const unsigned int minContacts) = 0;
00067
00070 virtual unsigned int getActMaxHHcontacts() = 0;
00071
00074 virtual bool isConnected() const = 0;
00075
00076 };
00077
00078 }
00079
00080 #endif