OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CRESULTFILTER_H
17 #define __OMNETPP_CRESULTFILTER_H
19 #include "simkerneldefs.h"
20 #include "cresultlistener.h"
21 #include "onstartup.h"
23 #include "cownedobject.h"
42 #define Register_ResultFilter(NAME, CLASSNAME) \
43 __REGISTER_CLASS_X(CLASSNAME, omnetpp::cResultFilter, "result filter", omnetpp::internal::resultFilters.getInstance()->add(new omnetpp::cResultFilterType(NAME,omnetpp::opp_typename(typeid(CLASSNAME)))) )
58 #define Register_ResultFilter2(NAME, CLASSNAME, DESCRIPTION) \
59 __REGISTER_CLASS_X(CLASSNAME, omnetpp::cResultFilter, "result filter", omnetpp::internal::resultFilters.getInstance()->add(new omnetpp::cResultFilterType(NAME,omnetpp::opp_typename(typeid(CLASSNAME)),DESCRIPTION)) )
96 virtual void callEmitInitialValue()
override;
97 virtual void forEachChild(
cVisitor *v)
override;
98 virtual void emitInitialValue()
override;
102 virtual void init(
Context *ctx);
105 virtual double getInitialDoubleValue()
const {
return NAN;}
106 virtual void addDelegate(cResultListener *delegate);
107 virtual bool hasDelegate(cResultListener *delegate);
108 virtual int getNumDelegates()
const;
109 cResultListener *getDelegate(
int k)
const {
return delegates[k];}
110 std::vector<cResultListener*> getDelegates()
const;
165 std::string description;
166 std::string className;
172 cResultFilterType(
const char *name,
const char *className,
const char *description=
nullptr);
const typedef simtime_t & simtime_t_cref
Constant reference to a simtime_t.
Definition: simtime_t.h:48
Base class for filters that expect to receive an object.
Definition: cresultfilter.h:146
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
cComponent * component
The module/channel for which the statistic is being recorded; usually the module on which the @statis...
Definition: cresultfilter.h:79
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
uint64_t uintval_t
Unsigned integer type which is guaranteed to be at least 64 bits wide. It is used throughout the libr...
Definition: simkerneldefs.h:109
cProperty * attrsProperty
An optional property from which extra attributes can be taken; usually the @statistic property.
Definition: cresultfilter.h:80
Base class for filters that expect to receive an numeric value.
Definition: cresultfilter.h:122
int64_t intval_t
Signed integer type which is guaranteed to be at least 64 bits wide. It is used throughout the librar...
Definition: simkerneldefs.h:101
Definition: cresultfilter.h:78
Common base for module and channel classes.
Definition: ccomponent.h:49
Base class for result filters.
Definition: cresultfilter.h:72
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication.
Definition: cownedobject.h:242
const char * getDescription() const
Definition: cresultfilter.h:182
Common abstract base class for result filters and result recorders.
Definition: cresultlistener.h:34
Registers a cResultFilter.
Definition: cresultfilter.h:162
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38