00001 /* 00002 ############################################################################## 00003 # file: ms_peptide_quant_key_vector.hpp # 00004 # 'msparser' toolkit # 00005 # A vector of ms_peptide_quant_key objects # 00006 ############################################################################## 00007 # COPYRIGHT NOTICE # 00008 # Copyright 1998-2012 Matrix Science Limited All Rights Reserved. # 00009 # # 00010 ############################################################################## 00011 # $Author: villek@matrixscience.com $ # 00012 # $Date: 2018-07-30 16:23:53 +0100 $ # 00013 # $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_2_8_1-0-gea32989045 $ # 00014 # $NoKeywords:: $ # 00015 ############################################################################## 00016 */ 00017 00018 #ifndef MS_PEPQUANTKEYVECTOR_HPP 00019 #define MS_PEPQUANTKEYVECTOR_HPP 00020 00021 00022 // Includes from the standard template library 00023 #include <vector> 00024 #include <list> 00025 00026 namespace matrix_science { 00027 class ms_peptide_quant_key; 00028 } 00029 00030 namespace matrix_science { 00036 00037 00046 class MS_MASCOTRESFILE_API ms_peptide_quant_key_vector 00047 { 00048 public: 00050 ms_peptide_quant_key_vector(); 00051 00052 #ifndef SWIG 00053 00054 explicit ms_peptide_quant_key_vector(const std::vector<ms_peptide_quant_key> &v); 00055 00057 explicit ms_peptide_quant_key_vector(const std::list<ms_peptide_quant_key> &v); 00058 #endif 00059 00061 ms_peptide_quant_key_vector(const ms_peptide_quant_key_vector& src); 00062 00064 ~ms_peptide_quant_key_vector(); 00065 00066 #ifndef SWIG 00067 00068 ms_peptide_quant_key_vector& operator=(const ms_peptide_quant_key_vector& right); 00069 00071 const std::vector<ms_peptide_quant_key>& toVector() const; 00072 #endif 00073 00075 void copyFrom(const ms_peptide_quant_key_vector *src); 00076 00078 void append(const ms_peptide_quant_key_vector & src); 00079 00081 int size() const; 00082 00084 bool empty() const; 00085 00087 void push(const ms_peptide_quant_key &key); 00088 00090 ms_peptide_quant_key pop(); 00091 00093 ms_peptide_quant_key get(int idx) const; 00094 00096 void set(int idx, const ms_peptide_quant_key &key); 00097 00099 void clear(); 00100 00102 void swap(ms_peptide_quant_key_vector &right); 00103 00104 private: 00105 std::vector<ms_peptide_quant_key> data_; 00106 }; // end of quantitation_group 00108 } // matrix_science namespace 00109 00110 #endif // MS_PEPQUANTKEYVECTOR_HPP 00111 00112 /*------------------------------- End of File -------------------------------*/ 00113
Copyright © 2022 Matrix Science Ltd. All Rights Reserved. Generated on Thu Mar 31 2022 01:12:29 |