CycloBranch
cBrick.h File Reference

The representation of a brick. More...

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include "core/utilities.h"

Go to the source code of this file.

Classes

class  cBrick
 The class representing a building block (brick). More...
 

Enumerations

enum  eResidueLossType { h2o_loss = 0 , h2_loss }
 Residue loss types.
 

Functions

int getNumberOfBricks (const string &composition)
 Get the number of bricks in a composition. More...
 

Detailed Description

The representation of a brick.

Function Documentation

◆ getNumberOfBricks()

int getNumberOfBricks ( const string &  composition)

Get the number of bricks in a composition.

Parameters
compositionstring containing ids of bricks separated by '-'
Return values
numbernumber of bricks