libpappsomspp
Library for mass spectrometry
|
container for spectree items More...
#include <itemcart.h>
Public Member Functions | |
ItemCart () | |
ItemCart (std::size_t id, const std::vector< std::size_t > &item_list) | |
ItemCart (const ItemCart &other) | |
virtual | ~ItemCart () |
const std::vector< std::size_t > & | getItemList () const |
std::size_t | getId () const |
ItemCart & | operator= (const ItemCart &other) |
Protected Attributes | |
std::size_t | m_id |
std::vector< std::size_t > | m_itemList |
container for spectree items
ItemCart is the basic container to use SpecTree algorithm each cart has an id (long integer) and a list of items (list of integers)
SpecTree will be able to quickly count common items between every cart
Definition at line 54 of file itemcart.h.
pappso::spectree::ItemCart::ItemCart | ( | ) |
pappso::spectree::ItemCart::ItemCart | ( | std::size_t | id, |
const std::vector< std::size_t > & | item_list ) |
Definition at line 46 of file itemcart.cpp.
pappso::spectree::ItemCart::ItemCart | ( | const ItemCart & | other | ) |
Copy constructor
other | TODO |
Definition at line 52 of file itemcart.cpp.
References m_id, and m_itemList.
|
virtual |
std::size_t pappso::spectree::ItemCart::getId | ( | ) | const |
Definition at line 63 of file itemcart.cpp.
References m_id.
Referenced by pappso::spectree::BucketClustering::addItemCart().
const std::vector< std::size_t > & pappso::spectree::ItemCart::getItemList | ( | ) | const |
Definition at line 77 of file itemcart.cpp.
References m_itemList.
Referenced by pappso::spectree::BucketClustering::addItemCart().
Definition at line 69 of file itemcart.cpp.
References m_id, and m_itemList.
|
protected |
Definition at line 83 of file itemcart.h.
Referenced by ItemCart(), getId(), and operator=().
|
protected |
Definition at line 84 of file itemcart.h.
Referenced by ItemCart(), getItemList(), and operator=().