Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TimedElement Class Referenceabstract

A base class for all elements with a start and end time. More...

#include <TimedElement.hpp>

Inheritance diagram for TimedElement:
Inheritance graph
[legend]

Public Member Functions

virtual types::TraceTime getStartTime () const =0
 Returns the start time of the current object. More...
 
virtual types::TraceTime getEndTime () const =0
 Returns the end time of the current object. More...
 
virtual types::TraceTime getDuration () const
 Returns the duration of the current object. More...
 

Detailed Description

A base class for all elements with a start and end time.

Definition at line 26 of file TimedElement.hpp.

Member Function Documentation

◆ getDuration()

virtual types::TraceTime TimedElement::getDuration ( ) const
inlinevirtual

Returns the duration of the current object.

This function calculates and returns the duration of the current object, which is the difference between its end time and start time. The function can be overridden in the derived classes if necessary.

Returns
The duration of the current object.

Reimplemented in SubTrace.

Definition at line 56 of file TimedElement.hpp.

◆ getEndTime()

virtual types::TraceTime TimedElement::getEndTime ( ) const
pure virtual

Returns the end time of the current object.

This pure virtual function returns the end time of the current object. The function has to be implemented in the derived classes.

Returns
The end time of the current object.

Implemented in BlockingP2PCommunicationEvent, CollectiveCommunicationEvent, Communication, NonBlockingP2PCommunicationEvent, Slot, SubTrace, and CommunicationEvent.

◆ getStartTime()

virtual types::TraceTime TimedElement::getStartTime ( ) const
pure virtual

Returns the start time of the current object.

This pure virtual function returns the start time of the current object. The function has to be implemented in the derived classes.

Returns
The start time of the current object.

Implemented in BlockingP2PCommunicationEvent, CollectiveCommunicationEvent, Communication, NonBlockingP2PCommunicationEvent, Slot, SubTrace, and CommunicationEvent.


The documentation for this class was generated from the following file: