private:
//! Creates a BooleanOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
};
/*! \brief
private:
//! Creates an IntegerOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
/*! \brief
* Needed to initialize IntegerOptionStorage from this class without
private:
//! Creates an Int64OptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
/*! \brief
* Needed to initialize Int64OptionStorage from this class without
private:
//! Creates a DoubleOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
bool bTime_;
private:
//! Creates a FloatOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
bool bTime_;
private:
//! Creates a StringOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer &managers) const;
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer &managers) const override;
const char *const *enumValues_;
int enumValuesCount_;
}
}
- virtual int valueCount() { return static_cast<int>(intStore_.size()); }
- virtual ArrayRef<int> values() { return intStore_; }
- virtual void clear()
+ int valueCount() override { return static_cast<int>(intStore_.size()); }
+ ArrayRef<int> values() override { return intStore_; }
+ void clear() override
{
intStore_.clear();
if (storeVector_ != nullptr)
storeVector_->clear();
}
}
- virtual void reserve(size_t count)
+ void reserve(size_t count) override
{
intStore_.reserve(intStore_.size() + count);
if (storeVector_ != nullptr)
storeVector_->reserve(storeVector_->size() + count);
}
}
- virtual void append(const int &value)
+ void append(const int &value) override
{
const size_t count = intStore_.size();
intStore_.push_back(value);
}
//! Creates a EnumOptionStorage object.
- virtual AbstractOptionStorage *createStorage(
- const OptionManagerContainer & /*managers*/) const
+ AbstractOptionStorage *createStorage(
+ const OptionManagerContainer & /*managers*/) const override
{
// TODO: Implement storeCount() if necessary.
return internal::createEnumOptionStorage(