| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <bucket.h>
Public Member Functions | |
| Bucket (std::size_t val) | |
| Bucket (const Bucket &other) | |
| std::size_t | getId () const | 
| void | push_back (std::size_t cart) | 
| std::size_t | size () const | 
| bool | operator< (const Bucket &bucket_two) const | 
| const std::vector< std::size_t > & | getCartList () const | 
| std::size_t | front () const | 
| get the first cart id of the list   | |
| std::size_t | back () const | 
| get the last cart id of the list   | |
Private Attributes | |
| std::size_t | m_itemId | 
| std::vector< std::size_t > | m_cartList | 
| pappso::spectree::Bucket::Bucket | ( | std::size_t | val | ) | 
Bucket creation with appropriated initialisation for the identifiers and the mass value.
| val | the mass value (item id) associated to the bucket | 
Definition at line 45 of file bucket.cpp.
References m_itemId.
Referenced by Bucket(), and operator<().
| pappso::spectree::Bucket::Bucket | ( | const Bucket & | other | ) | 
Definition at line 50 of file bucket.cpp.
References Bucket(), m_cartList, and m_itemId.
| std::size_t pappso::spectree::Bucket::back | ( | ) | const | 
| std::size_t pappso::spectree::Bucket::front | ( | ) | const | 
| const std::vector< std::size_t > & pappso::spectree::Bucket::getCartList | ( | ) | const | 
| std::size_t pappso::spectree::Bucket::getId | ( | ) | const | 
Accessor to the mass value (item id) associated to the bucket.
Definition at line 68 of file bucket.cpp.
References m_itemId.
| bool pappso::spectree::Bucket::operator< | ( | const Bucket & | bucket_two | ) | const | 
Implementation of the comparable interface in order to be able to compare two buckets and sort a collection of buckets lexicographically.
| b | The bucket to compare with the current one | 
Definition at line 74 of file bucket.cpp.
References Bucket(), and m_cartList.
| void pappso::spectree::Bucket::push_back | ( | std::size_t | cart | ) | 
Insertion of a new identifier in the bucket. Insertion happen to the end.
| cart | The cart identifier to add in the bucket | 
Definition at line 56 of file bucket.cpp.
References m_cartList.
| std::size_t pappso::spectree::Bucket::size | ( | ) | const | 
Return the number of identifiers contained in the bucket.
Definition at line 62 of file bucket.cpp.
References m_cartList.
      
  | 
  private | 
Spectrum identifiers stored in an optimized array to reduce the memory occupation (fastutils). This list can only be filled, sorted or accessed in read-only.
Definition at line 127 of file bucket.h.
Referenced by Bucket(), back(), front(), getCartList(), operator<(), push_back(), and size().
      
  | 
  private |