| | |
The CrossLinkedRegion class provides abstractions to work with cross-links and detect the region of oligomers that are linked together. More...
| Header: | #include <CrossLinkedRegion.hpp> |
| CrossLinkedRegion() | |
| CrossLinkedRegion(std::size_t index_start, std::size_t index_stop) | |
| CrossLinkedRegion(const MsXpS::libXpertMassCore::CrossLinkedRegion &other) | |
| ~CrossLinkedRegion() | |
| std::size_t | appendCrossLink(const MsXpS::libXpertMassCore::CrossLinkSPtr &cross_link_sp) |
| std::size_t | appendCrossLinks(const std::vector<MsXpS::libXpertMassCore::CrossLinkSPtr> &cross_links) |
| const std::vector<MsXpS::libXpertMassCore::CrossLinkSPtr> & | getCrossLinksCstRef() const |
| std::vector<MsXpS::libXpertMassCore::CrossLinkSPtr> & | getCrossLinksRef() |
| std::size_t | getStartIndex() |
| std::size_t | getStopIndex() |
| std::size_t | removeCrossLink(MsXpS::libXpertMassCore::CrossLinkSPtr &cross_link_sp) |
| std::size_t | removeCrossLinkAt(std::size_t index) |
| void | setStartIndex(std::size_t index) |
| void | setStopIndex(std::size_t index) |
| MsXpS::libXpertMassCore::CrossLinkedRegion & | operator=(const MsXpS::libXpertMassCore::CrossLinkedRegion &other) |
| std::vector<MsXpS::libXpertMassCore::CrossLinkSPtr> | m_crossLinks |
| std::size_t | m_startIndex |
| std::size_t | m_stopIndex |
In the following representation, a polymer sequence has a number of CrossLink instances that are intertwined:
[3] [4] [5] [6] [9] [11] [13] o---o---o---o---o--o---o---o---o---o---o---o---o---o---o | |__| | | | | | | +-----------+ +-------+ | | +------------------+
In this example, there are two cross-linked regions: [3–9] and [11–13].
The first cross-linked region has a start index of 3 and a stop index of 9 and involves three cross-links.
The second cross-linked region only involves a single cross-link involving two monomers at indices 11 and 13.
This class is most useful when performing fragmentations of Oligomer instances.
Constructs a CrossLinkedRegion instance with indices index_start and index_stop.
Constructs a CrossLinkedRegion instance as a copy of other.
The copy of the CrossLink instances is shallow (the shared pointers are copied).
[noexcept] CrossLinkedRegion::~CrossLinkedRegion()Destructs a CrossLinkedRegion instance.
Adds a the cross_link_sp CrossLink to the back of the CrossLink container.
Returns the size of the container of CrossLink instances.
Adds the CrossLink item in the cross_links container to the back of the member CrossLink container.
Returns the size of the container of CrossLink instances.
Returns a const reference to the container of CrossLink instances.
Returns a reference to the container of CrossLink instances.
Returns the start index of this instance.
Returns the stop index of this instance.
Removes the cross_link_sp CrossLink item from the member CrossLink container.
Returns the size of the container of CrossLink instances.
Removes the CrossLink at index from the member CrossLink container.
Returns the size of the container of CrossLink instances.
Sets the start index of this instance to index.
Sets the stop index of this instance to index.
Assigns other to this instance.
The copy of the CrossLink instances is shallow (the shared pointers are copied).
This variable holds the CrossLink instances that are contained in this CrossLinkedRegion instance.
This variable holds the start index of this cross-linked region.
This variable holds the stop index of this cross-linked region.