#include <OutputHandlerHub.h>
Hub implementation of an OutputHandler that forwards each reported interaction to each of the registered OutputHandler instances.
◆ OutputHandlerHub() [1/2]
| IntaRNA::OutputHandlerHub::OutputHandlerHub |
( |
const OutputConstraint & |
outConstraint, |
|
|
const bool |
deleteOutListOnDestruction = true |
|
) |
| |
|
inline |
construction
- Parameters
-
| outConstraint | the output constraint applied to find the reported interaction |
| deleteOutListOnDestruction | whether or not the objects the hub is forwarding to are to be deleted on destruction |
◆ OutputHandlerHub() [2/2]
copy construction (will not delete the copied OutputHandler list!)
- Parameters
-
◆ ~OutputHandlerHub()
| IntaRNA::OutputHandlerHub::~OutputHandlerHub |
( |
| ) |
|
|
inlinevirtual |
◆ add()
| void IntaRNA::OutputHandlerHub::add |
( |
const Interaction & |
interaction | ) |
|
|
inlinevirtual |
◆ addOutputHandler()
| void IntaRNA::OutputHandlerHub::addOutputHandler |
( |
OutputHandler * |
handler | ) |
|
|
inlinevirtual |
Adds a new OutputHandler to the forwarding list.
- Parameters
-
| handler | pointer to the handler to forward to |
◆ getZ()
| Z_type IntaRNA::OutputHandlerHub::getZ |
( |
| ) |
const |
|
inlinevirtual |
Access to the partition function (initialized with 0) aggregated via incrementZ().
- Returns
- the maximal aggregated partition function Z among all handlers
Reimplemented from IntaRNA::OutputHandler.
◆ incrementZ()
| void IntaRNA::OutputHandlerHub::incrementZ |
( |
const Z_type |
subZ | ) |
|
|
inlinevirtual |
Increments the overall partition function with the given value.
Note, take care that multiple increments have to represent disjoint subsets of all interactions for the same pair of sequences, otherwise the aggregated overall partition function will be wrong!
- Parameters
-
| subZ | increment to be added to the overall partition function |
Reimplemented from IntaRNA::OutputHandler.
◆ isDeleteOnDestruction()
| bool IntaRNA::OutputHandlerHub::isDeleteOnDestruction |
( |
| ) |
const |
|
inlinevirtual |
Returns whether or not the OutputHandler instances this hub forwards to are deleted when this hub is deleted.
- Returns
- true: forward objects are deleted; false: not
◆ operator=()
Copies the outList of toCopy but wont delete it later.
NOTE: this (copy) hub will NOT delete the outList to avoid duplicated deletions. This should be done by the original hub (toCopy)
- Parameters
-
| toCopy | the handler to make this a copy of |
- Returns
- the altered range object (*this)
◆ reported()
| size_t IntaRNA::OutputHandlerHub::reported |
( |
| ) |
const |
|
inlinevirtual |
Returns the maximal number of reported interactions among all handlers within forwarding list
- Returns
- the maximal number of reported interactions among all handlers
Reimplemented from IntaRNA::OutputHandler.
◆ setDeleteOnDestruction()
| void IntaRNA::OutputHandlerHub::setDeleteOnDestruction |
( |
const bool |
deleteOnDestruction | ) |
|
|
inlinevirtual |
Defines whether or not the OutputHandler instances this hub forwards to are deleted when this hub is deleted.
- Parameters
-
| deleteOnDestruction | true: forward objects are deleted; false: not |
◆ deleteOutListOnDestruction
| bool IntaRNA::OutputHandlerHub::deleteOutListOnDestruction |
|
protected |
whether or not the elements in outList are to be deleted when this object is destroyed
◆ outList
The documentation for this class was generated from the following file: