1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CFA_RULE_SET_H 6 #define CFA_RULE_SET_H 7 8 9 #include "CfaRule.h" 10 11 12 class CfaRuleSet { 13 public: 14 CfaRuleSet(); 15 16 status_t Init(uint32 registerCount); 17 CfaRuleSet* Clone() const; 18 19 CfaCfaRule* GetCfaCfaRule() { return &fCfaCfaRule; } 20 const CfaCfaRule* GetCfaCfaRule() const { return &fCfaCfaRule; } 21 22 CfaRule* RegisterRule(uint32 index) const; 23 24 private: 25 CfaCfaRule fCfaCfaRule; 26 CfaRule* fRegisterRules; 27 uint32 fRegisterCount; 28 }; 29 30 31 #endif // CFA_RULE_SET_H 32