#include <coutvect.h>
Inheritance diagram for cOutVector::
Public Methods | |
Constructors, destructor, assignment | |
cOutVector (const char *name=NULL, int tuple=1) | |
cOutVector (const cOutVector &r) | |
virtual | ~cOutVector () |
cOutVector& | operator= (const cOutVector &) |
Redefined cObject member functions. | |
virtual void | setName (const char *name) |
virtual cObject* | dup () const |
virtual void | info (char *buf) |
Configuring and writing to output vectors. | |
virtual bool | record (double value) |
virtual bool | record (double value1, double value2) |
virtual void | enable () |
virtual void | disable () |
virtual bool | isEnabled () |
long | valuesReceived () |
long | valuesStored () |
|
Constructor. Accepts the object name. The second argument can be 1 or 2. |
|
Copy constructor. |
|
Destructor. |
|
Disables recording data via this object. record() methods will return false without doing anything. |
|
Dupping is not implemented for cOutVector. This function gives an error (throws cException) when called. Reimplemented from cObject. |
|
Enables recording data via this object. (It is enabled by default.) |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cObject. |
|
Returns true if recording the data is enabled, false otherwise. |
|
Assignment is not supported by this class: this method throws a cException when called. |
|
Records two values with the current simulation time as timestamp. It can be used only in the case if the instance of cOutVector was created with tuple=2, otherwise it throws cException. The return value is true if the data was actually recorded, and false if it was not recorded (because of filtering, etc.) |
|
Records the value with the current simulation time as timestamp. It can be used only in the case if the instance of cOutVector was created with tuple=1, otherwise it throws cException. The return value is true if the data was actually recorded, and false if it was not recorded (because of filtering, etc.) |
|
Sets the name of the object. It is not possible to call this method after the first call to record(). Reimplemented from cObject. |
|
Returns the total number of values passed to the record() method of this output vector object. This includes the values passed while the object was disabled (see disable()). |
|
Returns the number of values actually stored by this output vector object. The values passed while the object was disabled (via disable(), environment configuration, filtering, etc.) do not count. |