?? rsesreducts.h
字號:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960629
// Description...:
// Revisions.....:
//===================================================================
#ifndef __RSESREDUCTS_H__
#define __RSESREDUCTS_H__
#include <copyright.h>
#include <kernel/structures/reducts.h>
//-------------------------------------------------------------------
// Class prototypes.
//===================================================================
class TRedRulMem;
//-------------------------------------------------------------------
// Class.........: RSESReducts
// Author........: Aleksander 豩rn
// Date..........: 960629
// Description...: Wrapper class for reduct (and rule) memory from
// the RSES library.
// Revisions.....:
//===================================================================
class RSESReducts : public Reducts {
private:
//- Friend declarations............................................
friend class RSESStaticReducer;
friend class RSESRuleGenerator;
friend class RSESReductShortener;
friend class RSESClassifier;
friend class RSESRules;
private:
//- Private variables..............................................
TRedRulMem *reducts_; // From the RSES library.
bool is_owner_; // Does this wrapper "own" the embedded TRedRulMem object?
private:
//- Build individual wrappers from scratch.........................
bool BuildWrappers(RSESRules *rules = NULL);
//- Take and propagate ownership...................................
void TakeOwnership(bool ownership);
protected:
//- Constructors...................................................
RSESReducts(const RSESReducts &in);
public:
//- Constructors/destructor........................................
RSESReducts();
virtual ~RSESReducts();
//- Methods inherited from Identifier..............................
DECLAREIDMETHODS()
//- Methods inherited from Persistent..............................
virtual bool Load(ifstream &stream);
virtual bool Save(ofstream &stream) const;
//- Methods inherited from Structure...............................
virtual Structure *Duplicate() const;
virtual void Clear();
//- Methods inherited from ParentStructure.........................
virtual bool InsertChild(Structure *child, int i);
virtual bool AppendChild(Structure *child);
//- Methods inherited from Structures..............................
virtual bool InsertStructure(Structure *structure, int i);
virtual bool AppendStructure(Structure *structure);
virtual bool RemoveStructure(int i);
virtual bool RemoveAllStructures();
virtual Structures *DuplicateStructure(int i) const;
//- Methods inherited from Reducts.................................
virtual bool Sort(int property, bool ascending);
virtual bool PostCreation(const DecisionTable &table, const Discerner &discerner, bool modulo);
virtual bool AppendReduct(Reduct *reduct, const DecisionTable &table, int object_no, bool masked, bool modulo, bool verify);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -