Start refactoring source property implementations.

This commit is contained in:
Peter Johnson
2016-12-22 21:19:50 -08:00
parent ce69783871
commit d6ef2c04a5
7 changed files with 132 additions and 111 deletions

View File

@@ -45,13 +45,13 @@ class CvSourceImpl : public SourceImpl {
CS_Status* status);
// Property data
class PropertyData : public PropertyBase {
class PropertyData : public PropertyImpl {
public:
PropertyData() = default;
PropertyData(llvm::StringRef name_) : PropertyBase{name_} {}
PropertyData(llvm::StringRef name_) : PropertyImpl{name_} {}
PropertyData(llvm::StringRef name_, CS_PropertyKind kind_, int minimum_,
int maximum_, int step_, int defaultValue_, int value_)
: PropertyBase{name_, kind_, step_, defaultValue_, value_} {
: PropertyImpl{name_, kind_, step_, defaultValue_, value_} {
hasMinimum = true;
minimum = minimum_;
hasMaximum = true;
@@ -63,7 +63,7 @@ class CvSourceImpl : public SourceImpl {
};
protected:
std::unique_ptr<PropertyBase> CreateEmptyProperty(
std::unique_ptr<PropertyImpl> CreateEmptyProperty(
llvm::StringRef name) const override;
bool CacheProperties(CS_Status* status) const override;