libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::spectree::ItemCart Class Reference

#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
 
ItemCartoperator= (const ItemCart &other)
 

Protected Attributes

std::size_t m_id
 
std::vector< std::size_t > m_itemList
 

Detailed Description

Todo:
write docs

Definition at line 48 of file itemcart.h.

Constructor & Destructor Documentation

◆ ItemCart() [1/3]

pappso::spectree::ItemCart::ItemCart ( )

Default constructor

Definition at line 42 of file itemcart.cpp.

43{
44}

◆ ItemCart() [2/3]

pappso::spectree::ItemCart::ItemCart ( std::size_t  id,
const std::vector< std::size_t > &  item_list 
)

Definition at line 46 of file itemcart.cpp.

47 : m_id(id), m_itemList(item_list)
48{
49}
std::vector< std::size_t > m_itemList
Definition itemcart.h:78

◆ ItemCart() [3/3]

pappso::spectree::ItemCart::ItemCart ( const ItemCart other)

Copy constructor

Parameters
otherTODO

Definition at line 52 of file itemcart.cpp.

53{
54 m_id = other.m_id;
55 m_itemList = other.m_itemList;
56}

References m_id, and m_itemList.

◆ ~ItemCart()

pappso::spectree::ItemCart::~ItemCart ( )
virtual

Destructor

Definition at line 58 of file itemcart.cpp.

59{
60}

Member Function Documentation

◆ getId()

std::size_t pappso::spectree::ItemCart::getId ( ) const

Definition at line 63 of file itemcart.cpp.

64{
65 return m_id;
66}

References m_id.

Referenced by pappso::spectree::BucketClustering::addItemCart().

◆ getItemList()

const std::vector< std::size_t > & pappso::spectree::ItemCart::getItemList ( ) const

Definition at line 77 of file itemcart.cpp.

78{
79 return m_itemList;
80}

References m_itemList.

Referenced by pappso::spectree::BucketClustering::addItemCart().

◆ operator=()

ItemCart & pappso::spectree::ItemCart::operator= ( const ItemCart other)

Definition at line 69 of file itemcart.cpp.

70{
71 m_id = other.m_id;
72 m_itemList = other.m_itemList;
73 return *this;
74}

References m_id, and m_itemList.

Member Data Documentation

◆ m_id

std::size_t pappso::spectree::ItemCart::m_id
protected

Definition at line 77 of file itemcart.h.

Referenced by ItemCart(), getId(), and operator=().

◆ m_itemList

std::vector<std::size_t> pappso::spectree::ItemCart::m_itemList
protected

Definition at line 78 of file itemcart.h.

Referenced by ItemCart(), getItemList(), and operator=().


The documentation for this class was generated from the following files: