MADNESS  0.10.1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
madness::profiling::TaskEventListBase Class Referenceabstract

Task event list base class. More...

#include <thread.h>

Inheritance diagram for madness::profiling::TaskEventListBase:
Inheritance graph
[legend]
Collaboration diagram for madness::profiling::TaskEventListBase:
Collaboration graph
[legend]

Public Member Functions

 TaskEventListBase ()
 Default constructor. More...
 
virtual ~TaskEventListBase ()=default
 Virtual destructor. More...
 
void insert (TaskEventListBase *list)
 Insert list after this list. More...
 
TaskEventListBasenext () const
 Get the next event list in the linked list. More...
 

Private Member Functions

 TaskEventListBase (const TaskEventListBase &)=delete
 
TaskEventListBaseoperator= (const TaskEventListBase &)=delete
 
virtual std::ostream & print_events (std::ostream &) const =0
 Print the events. More...
 

Private Attributes

TaskEventListBasenext_
 The next task event in the list. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const TaskEventListBase &tel)
 Output a task event list to an output stream. More...
 

Detailed Description

Task event list base class.

This base class allows the data to be stored in a linked list.

Constructor & Destructor Documentation

◆ TaskEventListBase() [1/2]

madness::profiling::TaskEventListBase::TaskEventListBase ( const TaskEventListBase )
privatedelete

◆ TaskEventListBase() [2/2]

madness::profiling::TaskEventListBase::TaskEventListBase ( )
inline

Default constructor.

◆ ~TaskEventListBase()

virtual madness::profiling::TaskEventListBase::~TaskEventListBase ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ insert()

void madness::profiling::TaskEventListBase::insert ( TaskEventListBase list)
inline

Insert list after this list.

Parameters
[in]listThe list to be inserted.

References next_.

Referenced by madness::profiling::TaskProfiler::new_list().

◆ next()

TaskEventListBase* madness::profiling::TaskEventListBase::next ( ) const
inline

Get the next event list in the linked list.

Returns
The next event list.

References next_.

Referenced by madness::profiling::TaskProfiler::~TaskProfiler(), and madness::profiling::TaskProfiler::write_to_file().

◆ operator=()

TaskEventListBase& madness::profiling::TaskEventListBase::operator= ( const TaskEventListBase )
privatedelete

◆ print_events()

virtual std::ostream& madness::profiling::TaskEventListBase::print_events ( std::ostream &  ) const
privatepure virtual

Print the events.

Implemented in madness::profiling::TaskEventList.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const TaskEventListBase tel 
)
friend

Output a task event list to an output stream.

Parameters
[in,out]osThe ouptut stream.
[in]telThe task event list to be output.
Returns
The modified output stream.

Member Data Documentation

◆ next_

TaskEventListBase* madness::profiling::TaskEventListBase::next_
private

The next task event in the list.

Referenced by insert(), and next().


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