CycloBranch
cDeNovoGraphNode Class Reference

The class representing a node in the de novo graph. More...

#include <cDeNovoGraphNode.h>

Public Member Functions

 cDeNovoGraphNode ()
 The constructor.
 
void clear ()
 Clear the class.
 
double getMZRatio ()
 Get the mz ratio of the node. More...
 
void setMZRatio (double mzratio)
 Set the mz ratio of the node. More...
 
double getIntensity ()
 Get the intensity of the node. More...
 
void setIntensity (double intensity)
 Set the intensity of the node. More...
 
void insertTempEdge (cEdge &e)
 Insert an edge into a temporary unordered set. More...
 
void insertEdge (cEdge &e)
 Insert an edge into a vector of edges. More...
 
void sortEdgesByPPMError ()
 Sort a vector of edges by ppm error.
 
void sortEdgesByTargetNodeIntensity ()
 Sort a vector of edges by target node intensity.
 
void createVectorOfEdges ()
 Create a vector of edges from an unordered set of temporary edges.
 
int size ()
 Get the number of edges. More...
 
cEdgeoperator[] (int position)
 Overloaded operator []. More...
 
void removeEdge (int position)
 Remove an edge. More...
 
void clearEdges ()
 Clear edges.
 
void addIonAnnotation (eFragmentIonType iontype)
 Add ion annotation. More...
 
bool checkIonAnnotation (eFragmentIonType iontype)
 Check ion annotation. More...
 

Detailed Description

The class representing a node in the de novo graph.

Member Function Documentation

◆ addIonAnnotation()

void cDeNovoGraphNode::addIonAnnotation ( eFragmentIonType  iontype)

Add ion annotation.

Parameters
iontypetype of fragment ion

◆ checkIonAnnotation()

bool cDeNovoGraphNode::checkIonAnnotation ( eFragmentIonType  iontype)

Check ion annotation.

Parameters
iontypetype of fragment ion
Return values
booltrue when the ion type was assigned to the node

◆ getIntensity()

double cDeNovoGraphNode::getIntensity ( )

Get the intensity of the node.

Return values
doubleintensity

◆ getMZRatio()

double cDeNovoGraphNode::getMZRatio ( )

Get the mz ratio of the node.

Return values
doublemz ratio

◆ insertEdge()

void cDeNovoGraphNode::insertEdge ( cEdge e)

Insert an edge into a vector of edges.

Parameters
ereference to an edge

◆ insertTempEdge()

void cDeNovoGraphNode::insertTempEdge ( cEdge e)

Insert an edge into a temporary unordered set.

Parameters
ereference to an edge

◆ operator[]()

cEdge & cDeNovoGraphNode::operator[] ( int  position)

Overloaded operator [].

Parameters
positionposition of an edge
Return values
edgereference to an edge

◆ removeEdge()

void cDeNovoGraphNode::removeEdge ( int  position)

Remove an edge.

Parameters
positionposition of removed edge

◆ setIntensity()

void cDeNovoGraphNode::setIntensity ( double  intensity)

Set the intensity of the node.

Parameters
intensityintensity

◆ setMZRatio()

void cDeNovoGraphNode::setMZRatio ( double  mzratio)

Set the mz ratio of the node.

Parameters
mzratiomz ratio

◆ size()

int cDeNovoGraphNode::size ( )

Get the number of edges.

Return values
intnumber of edges

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