?? rsesreducer.cpp
字號:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...:
// Revisions.....:
//===================================================================
#include <stdafx.h> // Precompiled headers.
#include <copyright.h>
#include <kernel/rses/algorithms/rsesreducer.h>
#include <kernel/rses/structures/rsesdecisiontable.h>
//-------------------------------------------------------------------
// Methods for class RSESReducer.
//===================================================================
//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================
RSESReducer::RSESReducer() {
}
RSESReducer::~RSESReducer() {
}
//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================
IMPLEMENTIDMETHODS(RSESReducer, RSESREDUCER, Reducer)
//-------------------------------------------------------------------
// Methods inherited from Algorithm.
//===================================================================
//-------------------------------------------------------------------
// Method........: IsApplicable
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================
bool
RSESReducer::IsApplicable(const Structure &structure, bool warn) const {
if (!structure.IsA(RSESDECISIONTABLE))
return false;
Handle<RSESDecisionTable> rsestable = dynamic_cast(RSESDecisionTable *, const_cast(Structure *, &structure));
return !rsestable->HasExceededMaximumDimensions(warn);
}
//-------------------------------------------------------------------
// Methods inherited from Reducer
//===================================================================
//-------------------------------------------------------------------
// Method........: UseIDG
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no IDG support.
// Revisions.....:
//===================================================================
bool
RSESReducer::UseIDG() const {
return false;
}
bool
RSESReducer::UseIDG(bool idg) {
return (idg == UseIDG());
}
//-------------------------------------------------------------------
// Method........: GetIDGFilename/SetIDGFilename
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no IDG support.
// Revisions.....:
//===================================================================
const String &
RSESReducer::GetIDGFilename() const {
return Undefined::String();
}
bool
RSESReducer::SetIDGFilename(const String &filename) {
return (filename == GetIDGFilename());
}
//-------------------------------------------------------------------
// Method........: UseBRT
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no BRT support.
// Revisions.....:
//===================================================================
bool
RSESReducer::UseBRT() const {
return false;
}
bool
RSESReducer::UseBRT(bool brt) {
return (brt == UseBRT());
}
//-------------------------------------------------------------------
// Method........: GetBRTPrecision/SetBRTPrecision
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no BRT support.
// Revisions.....:
//===================================================================
float
RSESReducer::GetBRTPrecision() const {
return Undefined::Float();
}
bool
RSESReducer::SetBRTPrecision(float precision) {
return (precision == GetBRTPrecision());
}
//-------------------------------------------------------------------
// Method........: PrecomputeMatrix
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Not relevant for RSES, does not seem to do it
// anyway.
// Revisions.....:
//===================================================================
bool
RSESReducer::PrecomputeMatrix() const {
return false;
}
bool
RSESReducer::PrecomputeMatrix(bool precompute) {
return (precompute == PrecomputeMatrix());
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -