CycloBranch
TRotationInfo Struct Reference

An auxiliary structure representing a branch permutation of a branched peptide. More...

#include <cCandidate.h>

Public Member Functions

 TRotationInfo ()
 The constructor.
 
void clear ()
 Clear the structure.
 
bool startsWithBracket ()
 Test whether tcomposition starts with a bracket. More...
 
bool endsWithBracket ()
 Test whether tcomposition ends with a bracket. More...
 

Public Attributes

int id
 Id of the rotation.
 
vector< int > bricks
 Vector of ids of bricks.
 
int middlebranchstart
 Position of a brick where a branch of a branched peptide starts.
 
int middlebranchend
 Position of a brick where a branch of a branched peptide ends.
 
int startmodifID
 Id of a terminal modification (at the beginning of a spectrum).
 
int endmodifID
 Id of a terminal modification (at the end of a spectrum).
 
int middlemodifID
 Id of a terminal modification of a branched peptide (in the middle of a spectrum).
 
string tcomposition
 Ids of bricks separated by '-', the branch is specified by '(' and ')'; example: 1-2-3(4-5)6-7.
 

Detailed Description

An auxiliary structure representing a branch permutation of a branched peptide.

Member Function Documentation

◆ endsWithBracket()

bool TRotationInfo::endsWithBracket ( )
inline

Test whether tcomposition ends with a bracket.

Return values
booltrue when tcomposition ends with a bracket

◆ startsWithBracket()

bool TRotationInfo::startsWithBracket ( )
inline

Test whether tcomposition starts with a bracket.

Return values
booltrue when tcomposition starts with a bracket

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