protected:
struct ExtractorBase
{
- virtual ~ExtractorBase() { }
+ virtual ~ExtractorBase() = default;
};
template<typename T>
std::vector<std::string> suffixes;
std::vector<ExtractorBase *> extractors;
- CollectionItemTypeBase() { }
+ CollectionItemTypeBase() = default;
public:
virtual ~CollectionItemTypeBase();
typedef std::list<std::string> NameList;
protected:
- CollectionSource() { }
+ CollectionSource() = default;
public:
- virtual ~CollectionSource() { }
+ virtual ~CollectionSource() = default;
/// Determines whether an object is available from this source.
virtual bool is_loadable(const CollectionItemTypeBase &type, const std::string &name) const = 0;
data_error(const std::string &, unsigned, const std::string &);
data_error(const std::string &, unsigned, const std::exception &);
data_error(const std::string &, unsigned, const data_error &);
- virtual ~data_error() throw() { }
+ virtual ~data_error() throw() = default;
const std::string &get_source() const { return source; }
unsigned get_line() const { return line; }
{
public:
parse_error(const std::string &);
- virtual ~parse_error() throw() { }
+ virtual ~parse_error() throw() = default;
};
{
public:
syntax_error(const std::string &t);
- virtual ~syntax_error() throw() { }
+ virtual ~syntax_error() throw() = default;
};
{
public:
bad_definition(const std::string &w);
- virtual ~bad_definition() throw() { }
+ virtual ~bad_definition() throw() = default;
};
{
public:
nesting_error(const std::string &);
- virtual ~nesting_error() throw() { }
+ virtual ~nesting_error() throw() = default;
};
{
public:
unknown_keyword(const std::string &);
- virtual ~unknown_keyword() throw() { }
+ virtual ~unknown_keyword() throw() = default;
};
{
public:
invalid_signature(const std::string &, const std::string &);
- virtual ~invalid_signature() throw() { }
+ virtual ~invalid_signature() throw() = default;
};
Loader();
public:
- virtual ~Loader() { }
+ virtual ~Loader() = default;
/** Loads statements from a parser. */
void load(Parser &p);
class LoaderAction
{
protected:
- LoaderAction() { }
+ LoaderAction() = default;
public:
- virtual ~LoaderAction() { }
+ virtual ~LoaderAction() = default;
/** Called to process a statement. */
virtual void execute(Loader &, const Statement &) const = 0;
ObjectMap objects;
public:
- PackSource() { }
+ PackSource() = default;
PackSource(const PackSource &);
PackSource &operator=(const PackSource &);
private:
ParserMode(Input &i, const std::string &s): in(i), src(s) { }
public:
- virtual ~ParserMode() { }
+ virtual ~ParserMode() = default;
virtual Statement parse() = 0;
virtual void process_control_statement(const Statement &) { }
std::string keyword;
std::string signature;
- StatementKey() { }
+ StatementKey() = default;
StatementKey(const std::string &k, const std::string &s): keyword(k), signature(s) { }
bool operator<(const StatementKey &o) const
{
std::string name;
- Symbol() { }
+ Symbol() = default;
template<typename T>
Symbol(const T &n): name(lexical_cast<std::string>(n)) { }
WriterMode(Output &o): out(o) { }
public:
- virtual ~WriterMode() { }
+ virtual ~WriterMode() = default;
virtual void set_float_precision(unsigned) = 0;
virtual void write(const Statement &st) = 0;