Add the final keyword to classes

This commit is contained in:
Gunnar Beutner 2018-01-04 05:11:04 +00:00
parent 7fc25dcb98
commit efe99a3e5e
167 changed files with 221 additions and 276 deletions

View File

@ -25,7 +25,7 @@
namespace icinga
{
class AboutForm : public AboutFormBase
class AboutForm final : public AboutFormBase
{
public:
AboutForm(wxWindow *parent);

View File

@ -26,7 +26,7 @@
namespace icinga
{
class ConnectForm : public ConnectFormBase
class ConnectForm final : public ConnectFormBase
{
public:
ConnectForm(wxWindow *parent, const Url::Ptr& url);

View File

@ -26,7 +26,7 @@
using namespace icinga;
class IcingaStudio : public wxApp
class IcingaStudio final : public wxApp
{
public:
virtual bool OnInit(void) override

View File

@ -28,7 +28,7 @@
namespace icinga
{
class MainForm : public MainFormBase
class MainForm final : public MainFormBase
{
public:
MainForm(wxWindow *parent, const Url::Ptr& url);

View File

@ -35,7 +35,7 @@ namespace icinga
*
* @ingroup base
*/
class Array : public Object
class Array final : public Object
{
public:
DECLARE_OBJECT(Array);

View File

@ -91,7 +91,7 @@ void ConfigObject::ClearExtension(const String& key)
extensions->Remove(key);
}
class ModAttrValidationUtils : public ValidationUtils
class ModAttrValidationUtils final : public ValidationUtils
{
public:
virtual bool ValidateName(const String& type, const String& name) const override

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup base
*/
class ConfigIdentifier : public Object
class ConfigIdentifier final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(ConfigIdentifier);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup base
*/
class DateTime : public ObjectImpl<DateTime>
class DateTime final : public ObjectImpl<DateTime>
{
public:
DECLARE_OBJECT(DateTime);

View File

@ -35,7 +35,7 @@ namespace icinga
*
* @ingroup base
*/
class Dictionary : public Object
class Dictionary final : public Object
{
public:
DECLARE_OBJECT(Dictionary);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup base
*/
class FIFO : public Stream
class FIFO final : public Stream
{
public:
DECLARE_PTR_TYPEDEFS(FIFO);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup base
*/
class FileLogger : public ObjectImpl<FileLogger>
class FileLogger final : public ObjectImpl<FileLogger>
{
public:
DECLARE_OBJECT(FileLogger);

View File

@ -35,7 +35,7 @@ namespace icinga
*
* @ingroup base
*/
class Function : public ObjectImpl<Function>
class Function final : public ObjectImpl<Function>
{
public:
DECLARE_OBJECT(Function);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup base
*/
class NetworkStream : public Stream
class NetworkStream final : public Stream
{
public:
DECLARE_PTR_TYPEDEFS(NetworkStream);

View File

@ -27,7 +27,7 @@
namespace icinga
{
class ObjectType : public Type
class ObjectType final : public Type
{
public:
ObjectType(void);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup base
*/
class PerfdataValue : public ObjectImpl<PerfdataValue>
class PerfdataValue final : public ObjectImpl<PerfdataValue>
{
public:
DECLARE_OBJECT(PerfdataValue);

View File

@ -27,7 +27,7 @@
namespace icinga
{
class PrimitiveType : public Type
class PrimitiveType final : public Type
{
public:
PrimitiveType(const String& name, const String& base, const ObjectFactory& factory = ObjectFactory());

View File

@ -49,7 +49,7 @@ struct ProcessResult
*
* @ingroup base
*/
class Process : public Object
class Process final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(Process);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup base
*/
class RingBuffer : public Object
class RingBuffer final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(RingBuffer);

View File

@ -119,7 +119,7 @@ protected:
friend class SocketEvents;
};
class SocketEventEnginePoll : public SocketEventEngine
class SocketEventEnginePoll final : public SocketEventEngine
{
public:
virtual void Register(SocketEvents *se, Object *lifesupportObject);

View File

@ -26,7 +26,7 @@
namespace icinga {
class StdioStream : public Stream
class StdioStream final : public Stream
{
public:
DECLARE_PTR_TYPEDEFS(StdioStream);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup base
*/
class SyslogLogger : public ObjectImpl<SyslogLogger>
class SyslogLogger final : public ObjectImpl<SyslogLogger>
{
public:
DECLARE_OBJECT(SyslogLogger);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup base
*/
class TcpSocket : public Socket
class TcpSocket final : public Socket
{
public:
DECLARE_PTR_TYPEDEFS(TcpSocket);

View File

@ -33,7 +33,7 @@ class TimerHolder;
*
* @ingroup base
*/
class Timer : public Object
class Timer final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(Timer);

View File

@ -43,7 +43,7 @@ enum TlsAction
*
* @ingroup base
*/
class TlsStream : public Stream, private SocketEvents
class TlsStream final : public Stream, private SocketEvents
{
public:
DECLARE_PTR_TYPEDEFS(TlsStream);

View File

@ -117,7 +117,7 @@ private:
Object::Ptr m_Prototype;
};
class TypeType : public Type
class TypeType final : public Type
{
public:
DECLARE_PTR_TYPEDEFS(Type);

View File

@ -26,7 +26,7 @@
namespace icinga
{
class UnixSocket : public Socket
class UnixSocket final : public Socket
{
public:
DECLARE_PTR_TYPEDEFS(UnixSocket);

View File

@ -63,7 +63,7 @@ struct CheckableNextCheckExtractor
/**
* @ingroup checker
*/
class CheckerComponent : public ObjectImpl<CheckerComponent>
class CheckerComponent final : public ObjectImpl<CheckerComponent>
{
public:
DECLARE_OBJECT(CheckerComponent);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class ApiSetupCommand : public CLICommand
class ApiSetupCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(ApiSetupCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class CAListCommand : public CLICommand
class CAListCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(CAListCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class CASignCommand : public CLICommand
class CASignCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(CASignCommand);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup cli
*/
class ConsoleCommand : public CLICommand
class ConsoleCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(ConsoleCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class DaemonCommand : public CLICommand
class DaemonCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(DaemonCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class FeatureDisableCommand : public CLICommand
class FeatureDisableCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(FeatureDisableCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class FeatureEnableCommand : public CLICommand
class FeatureEnableCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(FeatureEnableCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class FeatureListCommand : public CLICommand
class FeatureListCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(FeatureListCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class NodeSetupCommand : public CLICommand
class NodeSetupCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(NodeSetupCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class NodeWizardCommand : public CLICommand
class NodeWizardCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(NodeWizardCommand);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup cli
*/
class ObjectListCommand : public CLICommand
class ObjectListCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(ObjectListCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKINewCACommand : public CLICommand
class PKINewCACommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKINewCACommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKINewCertCommand : public CLICommand
class PKINewCertCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKINewCertCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKIRequestCommand : public CLICommand
class PKIRequestCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKIRequestCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKISaveCertCommand : public CLICommand
class PKISaveCertCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKISaveCertCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKISignCSRCommand : public CLICommand
class PKISignCSRCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKISignCSRCommand);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup cli
*/
class PKITicketCommand : public CLICommand
class PKITicketCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(PKITicketCommand);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup cli
*/
class TroubleshootCommand : public CLICommand
class TroubleshootCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(TroubleshootCommand);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup cli
*/
class VariableGetCommand : public CLICommand
class VariableGetCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(VariableGetCommand);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup cli
*/
class VariableListCommand : public CLICommand
class VariableListCommand final : public CLICommand
{
public:
DECLARE_PTR_TYPEDEFS(VariableListCommand);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup compat
*/
class CheckResultReader : public ObjectImpl<CheckResultReader>
class CheckResultReader final : public ObjectImpl<CheckResultReader>
{
public:
DECLARE_OBJECT(CheckResultReader);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup compat
*/
class CompatLogger : public ObjectImpl<CompatLogger>
class CompatLogger final : public ObjectImpl<CompatLogger>
{
public:
DECLARE_OBJECT(CompatLogger);

View File

@ -33,7 +33,7 @@ namespace icinga
/**
* @ingroup compat
*/
class ExternalCommandListener : public ObjectImpl<ExternalCommandListener>
class ExternalCommandListener final : public ObjectImpl<ExternalCommandListener>
{
public:
DECLARE_OBJECT(ExternalCommandListener);

View File

@ -36,7 +36,7 @@ namespace icinga
/**
* @ingroup compat
*/
class StatusDataWriter : public ObjectImpl<StatusDataWriter>
class StatusDataWriter final : public ObjectImpl<StatusDataWriter>
{
public:
DECLARE_OBJECT(StatusDataWriter);

View File

@ -28,7 +28,7 @@
namespace icinga
{
class ActivationContext : public Object
class ActivationContext final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(ActivationContext);

View File

@ -152,7 +152,7 @@ std::shared_ptr<Expression> ConfigItem::GetFilter(void) const
return m_Filter;
}
class DefaultValidationUtils : public ValidationUtils
class DefaultValidationUtils final : public ValidationUtils
{
public:
virtual bool ValidateName(const String& type, const String& name) const override

View File

@ -36,7 +36,7 @@ namespace icinga
*
* @ingroup config
*/
class ConfigItem : public Object {
class ConfigItem final : public Object {
public:
DECLARE_PTR_TYPEDEFS(ConfigItem);

View File

@ -34,7 +34,7 @@ namespace icinga
*
* @ingroup config
*/
class ConfigItemBuilder : public Object
class ConfigItemBuilder final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(ConfigItemBuilder);

View File

@ -217,7 +217,7 @@ public:
std::unique_ptr<Expression> MakeIndexer(ScopeSpecifier scopeSpec, const String& index);
class OwnedExpression : public Expression
class OwnedExpression final : public Expression
{
public:
OwnedExpression(const std::shared_ptr<Expression>& expression)
@ -239,7 +239,7 @@ private:
std::shared_ptr<Expression> m_Expression;
};
class LiteralExpression : public Expression
class LiteralExpression final : public Expression
{
public:
LiteralExpression(const Value& value = Value());
@ -302,7 +302,7 @@ protected:
std::unique_ptr<Expression> m_Operand2;
};
class VariableExpression : public DebuggableExpression
class VariableExpression final : public DebuggableExpression
{
public:
VariableExpression(const String& variable, const DebugInfo& debugInfo = DebugInfo())
@ -324,7 +324,7 @@ private:
friend void BindToScope(std::unique_ptr<Expression>& expr, ScopeSpecifier scopeSpec);
};
class NegateExpression : public UnaryExpression
class NegateExpression final : public UnaryExpression
{
public:
NegateExpression(std::unique_ptr<Expression> operand, const DebugInfo& debugInfo = DebugInfo())
@ -335,7 +335,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalNegateExpression : public UnaryExpression
class LogicalNegateExpression final : public UnaryExpression
{
public:
LogicalNegateExpression(std::unique_ptr<Expression> operand, const DebugInfo& debugInfo = DebugInfo())
@ -346,7 +346,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class AddExpression : public BinaryExpression
class AddExpression final : public BinaryExpression
{
public:
AddExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -357,7 +357,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class SubtractExpression : public BinaryExpression
class SubtractExpression final : public BinaryExpression
{
public:
SubtractExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -368,7 +368,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class MultiplyExpression : public BinaryExpression
class MultiplyExpression final : public BinaryExpression
{
public:
MultiplyExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -379,7 +379,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class DivideExpression : public BinaryExpression
class DivideExpression final : public BinaryExpression
{
public:
DivideExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -390,7 +390,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ModuloExpression : public BinaryExpression
class ModuloExpression final : public BinaryExpression
{
public:
ModuloExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -401,7 +401,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class XorExpression : public BinaryExpression
class XorExpression final : public BinaryExpression
{
public:
XorExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -412,7 +412,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BinaryAndExpression : public BinaryExpression
class BinaryAndExpression final : public BinaryExpression
{
public:
BinaryAndExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -423,7 +423,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BinaryOrExpression : public BinaryExpression
class BinaryOrExpression final : public BinaryExpression
{
public:
BinaryOrExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -434,7 +434,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ShiftLeftExpression : public BinaryExpression
class ShiftLeftExpression final : public BinaryExpression
{
public:
ShiftLeftExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -445,7 +445,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ShiftRightExpression : public BinaryExpression
class ShiftRightExpression final : public BinaryExpression
{
public:
ShiftRightExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -456,7 +456,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class EqualExpression : public BinaryExpression
class EqualExpression final : public BinaryExpression
{
public:
EqualExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -467,7 +467,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class NotEqualExpression : public BinaryExpression
class NotEqualExpression final : public BinaryExpression
{
public:
NotEqualExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -478,7 +478,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LessThanExpression : public BinaryExpression
class LessThanExpression final : public BinaryExpression
{
public:
LessThanExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -489,7 +489,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GreaterThanExpression : public BinaryExpression
class GreaterThanExpression final : public BinaryExpression
{
public:
GreaterThanExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -500,7 +500,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LessThanOrEqualExpression : public BinaryExpression
class LessThanOrEqualExpression final : public BinaryExpression
{
public:
LessThanOrEqualExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -511,7 +511,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GreaterThanOrEqualExpression : public BinaryExpression
class GreaterThanOrEqualExpression final : public BinaryExpression
{
public:
GreaterThanOrEqualExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -522,7 +522,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class InExpression : public BinaryExpression
class InExpression final : public BinaryExpression
{
public:
InExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -533,7 +533,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class NotInExpression : public BinaryExpression
class NotInExpression final : public BinaryExpression
{
public:
NotInExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -544,7 +544,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalAndExpression : public BinaryExpression
class LogicalAndExpression final : public BinaryExpression
{
public:
LogicalAndExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -555,7 +555,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalOrExpression : public BinaryExpression
class LogicalOrExpression final : public BinaryExpression
{
public:
LogicalOrExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -566,7 +566,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class FunctionCallExpression : public DebuggableExpression
class FunctionCallExpression final : public DebuggableExpression
{
public:
FunctionCallExpression(std::unique_ptr<Expression> fname, std::vector<std::unique_ptr<Expression> >&& args, const DebugInfo& debugInfo = DebugInfo())
@ -581,7 +581,7 @@ public:
std::vector<std::unique_ptr<Expression> > m_Args;
};
class ArrayExpression : public DebuggableExpression
class ArrayExpression final : public DebuggableExpression
{
public:
ArrayExpression(std::vector<std::unique_ptr<Expression > >&& expressions, const DebugInfo& debugInfo = DebugInfo())
@ -595,7 +595,7 @@ private:
std::vector<std::unique_ptr<Expression> > m_Expressions;
};
class DictExpression : public DebuggableExpression
class DictExpression final : public DebuggableExpression
{
public:
DictExpression(std::vector<std::unique_ptr<Expression> >&& expressions = {}, const DebugInfo& debugInfo = DebugInfo())
@ -614,7 +614,7 @@ private:
friend void BindToScope(std::unique_ptr<Expression>& expr, ScopeSpecifier scopeSpec);
};
class SetExpression : public BinaryExpression
class SetExpression final : public BinaryExpression
{
public:
SetExpression(std::unique_ptr<Expression> operand1, CombinedSetOp op, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -630,7 +630,7 @@ private:
friend void BindToScope(std::unique_ptr<Expression>& expr, ScopeSpecifier scopeSpec);
};
class ConditionalExpression : public DebuggableExpression
class ConditionalExpression final : public DebuggableExpression
{
public:
ConditionalExpression(std::unique_ptr<Expression> condition, std::unique_ptr<Expression> true_branch, std::unique_ptr<Expression> false_branch, const DebugInfo& debugInfo = DebugInfo())
@ -646,7 +646,7 @@ private:
std::unique_ptr<Expression> m_FalseBranch;
};
class WhileExpression : public DebuggableExpression
class WhileExpression final : public DebuggableExpression
{
public:
WhileExpression(std::unique_ptr<Expression> condition, std::unique_ptr<Expression> loop_body, const DebugInfo& debugInfo = DebugInfo())
@ -662,7 +662,7 @@ private:
};
class ReturnExpression : public UnaryExpression
class ReturnExpression final : public UnaryExpression
{
public:
ReturnExpression(std::unique_ptr<Expression> expression, const DebugInfo& debugInfo = DebugInfo())
@ -673,7 +673,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BreakExpression : public DebuggableExpression
class BreakExpression final : public DebuggableExpression
{
public:
BreakExpression(const DebugInfo& debugInfo = DebugInfo())
@ -684,7 +684,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ContinueExpression : public DebuggableExpression
class ContinueExpression final : public DebuggableExpression
{
public:
ContinueExpression(const DebugInfo& debugInfo = DebugInfo())
@ -695,7 +695,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GetScopeExpression : public Expression
class GetScopeExpression final : public Expression
{
public:
GetScopeExpression(ScopeSpecifier scopeSpec)
@ -709,7 +709,7 @@ private:
ScopeSpecifier m_ScopeSpec;
};
class IndexerExpression : public BinaryExpression
class IndexerExpression final : public BinaryExpression
{
public:
IndexerExpression(std::unique_ptr<Expression> operand1, std::unique_ptr<Expression> operand2, const DebugInfo& debugInfo = DebugInfo())
@ -725,7 +725,7 @@ protected:
void BindToScope(std::unique_ptr<Expression>& expr, ScopeSpecifier scopeSpec);
class ThrowExpression : public DebuggableExpression
class ThrowExpression final : public DebuggableExpression
{
public:
ThrowExpression(std::unique_ptr<Expression> message, bool incompleteExpr, const DebugInfo& debugInfo = DebugInfo())
@ -740,7 +740,7 @@ private:
bool m_IncompleteExpr;
};
class ImportExpression : public DebuggableExpression
class ImportExpression final : public DebuggableExpression
{
public:
ImportExpression(std::unique_ptr<Expression> name, const DebugInfo& debugInfo = DebugInfo())
@ -754,7 +754,7 @@ private:
std::unique_ptr<Expression> m_Name;
};
class ImportDefaultTemplatesExpression : public DebuggableExpression
class ImportDefaultTemplatesExpression final : public DebuggableExpression
{
public:
ImportDefaultTemplatesExpression(const DebugInfo& debugInfo = DebugInfo())
@ -765,7 +765,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class FunctionExpression : public DebuggableExpression
class FunctionExpression final : public DebuggableExpression
{
public:
FunctionExpression(const String& name, const std::vector<String>& args,
@ -783,7 +783,7 @@ private:
std::shared_ptr<Expression> m_Expression;
};
class ApplyExpression : public DebuggableExpression
class ApplyExpression final : public DebuggableExpression
{
public:
ApplyExpression(const String& type, const String& target, std::unique_ptr<Expression> name,
@ -813,7 +813,7 @@ private:
std::shared_ptr<Expression> m_Expression;
};
class ObjectExpression : public DebuggableExpression
class ObjectExpression final : public DebuggableExpression
{
public:
ObjectExpression(bool abstract, std::unique_ptr<Expression> type, std::unique_ptr<Expression> name, std::unique_ptr<Expression> filter,
@ -840,7 +840,7 @@ private:
std::shared_ptr<Expression> m_Expression;
};
class ForExpression : public DebuggableExpression
class ForExpression final : public DebuggableExpression
{
public:
ForExpression(const String& fkvar, const String& fvvar, std::unique_ptr<Expression> value, std::unique_ptr<Expression> expression, const DebugInfo& debugInfo = DebugInfo())
@ -857,7 +857,7 @@ private:
std::unique_ptr<Expression> m_Expression;
};
class LibraryExpression : public UnaryExpression
class LibraryExpression final : public UnaryExpression
{
public:
LibraryExpression(std::unique_ptr<Expression> expression, const DebugInfo& debugInfo = DebugInfo())
@ -875,7 +875,7 @@ enum IncludeType
IncludeZones
};
class IncludeExpression : public DebuggableExpression
class IncludeExpression final : public DebuggableExpression
{
public:
IncludeExpression(const String& relativeBase, std::unique_ptr<Expression> path, std::unique_ptr<Expression> pattern, std::unique_ptr<Expression> name,
@ -898,7 +898,7 @@ private:
String m_Package;
};
class BreakpointExpression : public DebuggableExpression
class BreakpointExpression final : public DebuggableExpression
{
public:
BreakpointExpression(const DebugInfo& debugInfo = DebugInfo())
@ -909,7 +909,7 @@ protected:
virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class UsingExpression : public DebuggableExpression
class UsingExpression final : public DebuggableExpression
{
public:
UsingExpression(std::unique_ptr<Expression> name, const DebugInfo& debugInfo = DebugInfo())
@ -923,7 +923,7 @@ private:
std::unique_ptr<Expression> m_Name;
};
class TryExceptExpression : public DebuggableExpression
class TryExceptExpression final : public DebuggableExpression
{
public:
TryExceptExpression(std::unique_ptr<Expression> tryBody, std::unique_ptr<Expression> exceptBody, const DebugInfo& debugInfo = DebugInfo())

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup ido
*/
class CommandDbObject : public DbObject
class CommandDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(CommandDbObject);

View File

@ -36,7 +36,7 @@ class DbObject;
*
* @ingroup ido
*/
class DbType : public Object
class DbType final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(DbType);

View File

@ -39,7 +39,7 @@ enum DbValueType
*
* @ingroup ido
*/
struct DbValue : public Object
struct DbValue final : public Object
{
public:
DECLARE_PTR_TYPEDEFS(DbValue);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class EndpointDbObject : public DbObject
class EndpointDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(EndpointDbObject);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup ido
*/
class HostDbObject : public DbObject
class HostDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(HostDbObject);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class HostGroupDbObject : public DbObject
class HostGroupDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(HostGroupDbObject);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class ServiceDbObject : public DbObject
class ServiceDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(ServiceDbObject);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class ServiceGroupDbObject : public DbObject
class ServiceGroupDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(ServiceGroupDbObject);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup ido
*/
class TimePeriodDbObject : public DbObject
class TimePeriodDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(TimePeriodDbObject);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup ido
*/
class UserDbObject : public DbObject
class UserDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(UserDbObject);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class UserGroupDbObject : public DbObject
class UserGroupDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(UserGroupDbObject);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup ido
*/
class ZoneDbObject : public DbObject
class ZoneDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(ZoneDbObject);

View File

@ -45,7 +45,7 @@ struct IdoAsyncQuery
*
* @ingroup ido
*/
class IdoMysqlConnection : public ObjectImpl<IdoMysqlConnection>
class IdoMysqlConnection final : public ObjectImpl<IdoMysqlConnection>
{
public:
DECLARE_OBJECT(IdoMysqlConnection);

View File

@ -37,7 +37,7 @@ typedef std::shared_ptr<PGresult> IdoPgsqlResult;
*
* @ingroup ido
*/
class IdoPgsqlConnection : public ObjectImpl<IdoPgsqlConnection>
class IdoPgsqlConnection final : public ObjectImpl<IdoPgsqlConnection>
{
public:
DECLARE_OBJECT(IdoPgsqlConnection);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup demo
*/
class Demo : public ObjectImpl<Demo>
class Demo final : public ObjectImpl<Demo>
{
public:
DECLARE_OBJECT(Demo);

View File

@ -30,7 +30,7 @@ namespace icinga
*
* @ingroup hello
*/
class HelloApplication : public ObjectImpl<HelloApplication>
class HelloApplication final : public ObjectImpl<HelloApplication>
{
public:
DECLARE_OBJECT(HelloApplication);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup icinga
*/
class CheckCommand : public ObjectImpl<CheckCommand>
class CheckCommand final : public ObjectImpl<CheckCommand>
{
public:
DECLARE_OBJECT(CheckCommand);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup icinga
*/
class CheckResult : public ObjectImpl<CheckResult>
class CheckResult final : public ObjectImpl<CheckResult>
{
public:
DECLARE_OBJECT(CheckResult);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup icinga
*/
class Comment : public ObjectImpl<Comment>
class Comment final : public ObjectImpl<Comment>
{
public:
DECLARE_OBJECT(Comment);

View File

@ -36,7 +36,7 @@ class Service;
*
* @ingroup icinga
*/
class Dependency : public ObjectImpl<Dependency>
class Dependency final : public ObjectImpl<Dependency>
{
public:
DECLARE_OBJECT(Dependency);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup icinga
*/
class Downtime : public ObjectImpl<Downtime>
class Downtime final : public ObjectImpl<Downtime>
{
public:
DECLARE_OBJECT(Downtime);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup icinga
*/
class EventCommand : public ObjectImpl<EventCommand>
class EventCommand final : public ObjectImpl<EventCommand>
{
public:
DECLARE_OBJECT(EventCommand);

View File

@ -35,7 +35,7 @@ class Service;
*
* @ingroup icinga
*/
class Host : public ObjectImpl<Host>, public MacroResolver
class Host final : public ObjectImpl<Host>, public MacroResolver
{
public:
DECLARE_OBJECT(Host);

View File

@ -34,7 +34,7 @@ class ConfigItem;
*
* @ingroup icinga
*/
class HostGroup : public ObjectImpl<HostGroup>
class HostGroup final : public ObjectImpl<HostGroup>
{
public:
DECLARE_OBJECT(HostGroup);

View File

@ -32,7 +32,7 @@ namespace icinga
*
* @ingroup icinga
*/
class IcingaApplication : public ObjectImpl<IcingaApplication>, public MacroResolver
class IcingaApplication final : public ObjectImpl<IcingaApplication>, public MacroResolver
{
public:
DECLARE_OBJECT(IcingaApplication);

View File

@ -77,7 +77,7 @@ class Service;
*
* @ingroup icinga
*/
class Notification : public ObjectImpl<Notification>
class Notification final : public ObjectImpl<Notification>
{
public:
DECLARE_OBJECT(Notification);

View File

@ -33,7 +33,7 @@ class Notification;
*
* @ingroup icinga
*/
class NotificationCommand : public ObjectImpl<NotificationCommand>
class NotificationCommand final : public ObjectImpl<NotificationCommand>
{
public:
DECLARE_OBJECT(NotificationCommand);

View File

@ -38,7 +38,7 @@ class Service;
*
* @ingroup icinga
*/
class ScheduledDowntime : public ObjectImpl<ScheduledDowntime>
class ScheduledDowntime final : public ObjectImpl<ScheduledDowntime>
{
public:
DECLARE_OBJECT(ScheduledDowntime);

View File

@ -37,7 +37,7 @@ namespace icinga
*
* @ingroup icinga
*/
class Service : public ObjectImpl<Service>, public MacroResolver
class Service final : public ObjectImpl<Service>, public MacroResolver
{
public:
DECLARE_OBJECT(Service);

View File

@ -34,7 +34,7 @@ class ConfigItem;
*
* @ingroup icinga
*/
class ServiceGroup : public ObjectImpl<ServiceGroup>
class ServiceGroup final : public ObjectImpl<ServiceGroup>
{
public:
DECLARE_OBJECT(ServiceGroup);

View File

@ -31,7 +31,7 @@ namespace icinga
*
* @ingroup icinga
*/
class TimePeriod : public ObjectImpl<TimePeriod>
class TimePeriod final : public ObjectImpl<TimePeriod>
{
public:
DECLARE_OBJECT(TimePeriod);

View File

@ -33,7 +33,7 @@ namespace icinga
*
* @ingroup icinga
*/
class User : public ObjectImpl<User>
class User final : public ObjectImpl<User>
{
public:
DECLARE_OBJECT(User);

View File

@ -34,7 +34,7 @@ class ConfigItem;
*
* @ingroup icinga
*/
class UserGroup : public ObjectImpl<UserGroup>
class UserGroup final : public ObjectImpl<UserGroup>
{
public:
DECLARE_OBJECT(UserGroup);

View File

@ -32,8 +32,8 @@ set(livestatus_SOURCES
countaggregator.cpp countaggregator.hpp
downtimestable.cpp downtimestable.hpp
endpointstable.cpp endpointstable.hpp
filter.cpp filter.hpp
historytable.cpp historytable.hpp
filter.hpp
historytable.hpp
hostgroupstable.cpp hostgroupstable.hpp
hoststable.cpp hoststable.hpp
invavgaggregator.cpp invavgaggregator.hpp

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class AndFilter : public CombinerFilter
class AndFilter final : public CombinerFilter
{
public:
DECLARE_PTR_TYPEDEFS(AndFilter);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class AttributeFilter : public Filter
class AttributeFilter final : public Filter
{
public:
DECLARE_PTR_TYPEDEFS(AttributeFilter);

View File

@ -29,7 +29,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
struct AvgAggregatorState : public AggregatorState
struct AvgAggregatorState final : public AggregatorState
{
AvgAggregatorState(void)
: Avg(0), AvgCount(0)
@ -42,7 +42,7 @@ struct AvgAggregatorState : public AggregatorState
/**
* @ingroup livestatus
*/
class AvgAggregator : public Aggregator
class AvgAggregator final : public Aggregator
{
public:
DECLARE_PTR_TYPEDEFS(AvgAggregator);

View File

@ -35,12 +35,12 @@ class CombinerFilter : public Filter
public:
DECLARE_PTR_TYPEDEFS(CombinerFilter);
CombinerFilter(void);
void AddSubFilter(const Filter::Ptr& filter);
protected:
std::vector<Filter::Ptr> m_Filters;
CombinerFilter(void);
};
}

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class CommandsTable : public Table
class CommandsTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(CommandsTable);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class CommentsTable : public Table
class CommentsTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(CommentsTable);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class ContactGroupsTable : public Table
class ContactGroupsTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(ContactGroupsTable);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class ContactsTable : public Table
class ContactsTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(ContactsTable);

View File

@ -29,7 +29,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
struct CountAggregatorState : public AggregatorState
struct CountAggregatorState final : public AggregatorState
{
CountAggregatorState(void)
: Count(0)
@ -41,7 +41,7 @@ struct CountAggregatorState : public AggregatorState
/**
* @ingroup livestatus
*/
class CountAggregator : public Aggregator
class CountAggregator final : public Aggregator
{
public:
DECLARE_PTR_TYPEDEFS(CountAggregator);

View File

@ -30,7 +30,7 @@ namespace icinga
/**
* @ingroup livestatus
*/
class DowntimesTable : public Table
class DowntimesTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(DowntimesTable);

Some files were not shown because too many files have changed in this diff Show More