43 vector<string> acronyms;
44 vector<string> references;
46 map<string, int> summarymap;
86 void setName(
const string& name);
288 void store(ofstream& os);
295 void load(ifstream& is);
int getNumberOfBricks(const string &composition)
Get the number of bricks in a composition.
Definition: cBrick.cpp:6
eResidueLossType
Residue loss types.
Definition: cBrick.h:24
The class representing a building block (brick).
Definition: cBrick.h:41
string getReverseComposition()
Reverse the composition of the brick.
Definition: cBrick.cpp:92
void setAcronyms(const string &acronyms)
Set acronyms of all izomers corresponding to the brick.
Definition: cBrick.cpp:135
void setArtificial(bool artificial)
Set a flag determining whether the brick is a calculated mass block or a regular brick.
Definition: cBrick.cpp:385
void setMass(double mass)
Set the mass of the brick.
Definition: cBrick.cpp:111
void setResidueLossType(eResidueLossType residuelosstype)
Set the residue loss type.
Definition: cBrick.cpp:395
string & getLosses()
Access to a string variable which stores a list of neutral losses.
Definition: cBrick.cpp:72
string & getName()
Access to a string variable which stores a full name of the brick.
Definition: cBrick.cpp:47
void createSummaryMap()
Create a map of atoms from the molecular formula.
Definition: cBrick.cpp:129
double getMass() const
Get the mass of the brick.
Definition: cBrick.cpp:106
string getReferencesAsString()
Get all references.
Definition: cBrick.cpp:256
cBrick()
The constructor.
Definition: cBrick.cpp:21
void setLosses(const string &str)
Set the list of losses.
Definition: cBrick.cpp:157
void normalizeComposition()
Normalize the composition of the brick (ids of bricks are sorted in ascending order).
Definition: cBrick.cpp:189
void clear()
Clear all variables.
Definition: cBrick.cpp:26
void explodeToStringComposition(vector< string > &bricks)
Explode the composition of the brick into a vector of strings (ids of subbricks).
Definition: cBrick.cpp:224
string & getComposition()
Access to a string containing composition of the brick (ids of bricks separated by '-')
Definition: cBrick.cpp:87
vector< string > & getAcronyms()
Access to a vector of strings which stores acronyms of all izomers corresponding to the brick.
Definition: cBrick.cpp:67
string getFirstAcronymAsString()
Get the first acronym.
Definition: cBrick.cpp:268
map< string, int > & getSummaryMap()
Access to a map which stores a molecular formula of the brick.
Definition: cBrick.cpp:62
void setName(const string &name)
Set a full name of the brick.
Definition: cBrick.cpp:52
void setReferences(const string &references)
Set references (e.g., to ChemSpider) of all izomers corresponding to the brick.
Definition: cBrick.cpp:167
bool empty()
Test whether the brick is empty.
Definition: cBrick.cpp:41
void load(ifstream &is)
Load the structure from an input stream.
Definition: cBrick.cpp:420
string getAcronymsWithReferencesAsHTMLString()
Get all acronyms with HTML links to theirs references.
Definition: cBrick.cpp:276
string getAcronymsAsString()
Get all acronyms.
Definition: cBrick.cpp:244
void store(ofstream &os)
Store the structure into an output stream.
Definition: cBrick.cpp:405
void setComposition(const string &composition, bool normalize)
Set the composition of the brick.
Definition: cBrick.cpp:116
vector< int > & getLossIDs()
Access to a vector of identifiers of neutral losses.
Definition: cBrick.cpp:77
void setSummary(const string &summary)
Set the summary molecular formula of the brick.
Definition: cBrick.cpp:124
string & getSummary()
Access to a string variable which stores a molecular formula of the brick.
Definition: cBrick.cpp:57
bool isArtificial()
Get a flag determining whether the brick is a calculated mass block or a regular brick.
Definition: cBrick.cpp:390
vector< string > & getReferences()
Access to a vector of strings which stores references (e.g., to ChemSpider) of all izomers correspond...
Definition: cBrick.cpp:82
void explodeToIntComposition(vector< int > &bricks)
Explode the composition of the brick into a vector of intergers (ids of subbricks).
Definition: cBrick.cpp:204
void setLossIDs(vector< int > &lossids)
Set a vector of identifiers of neutral losses.
Definition: cBrick.cpp:162
eResidueLossType getResidueLossType()
Get the residue loss type.
Definition: cBrick.cpp:400
Auxiliary funtions and structures.