Matrix Science header

ms_peptide_quant_key_vector.hpp

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 $ #
00012 #       $Date: 2013/10/03 16:22:19 $ #
00013 #   $Revision: 1.1 $ #
00014 # $NoKeywords::                                                            $ #
00015 ##############################################################################
00016 */
00017 
00018 #ifndef MS_PEPQUANTKEYVECTOR_HPP
00019 #define MS_PEPQUANTKEYVECTOR_HPP
00020 
00021 #ifdef _WIN32
00022 #pragma warning(disable:4251)   // Don't want all classes to be exported
00023 #pragma warning(disable:4786)   // Debug symbols too long
00024 #   ifndef _MATRIX_USE_STATIC_LIB
00025 #       ifdef MS_MASCOTRESFILE_EXPORTS
00026 #           define MS_MASCOTRESFILE_API __declspec(dllexport)
00027 #       else
00028 #           define MS_MASCOTRESFILE_API __declspec(dllimport)
00029 #       endif
00030 #   else
00031 #       define MS_MASCOTRESFILE_API
00032 #   endif
00033 #else
00034 #   define MS_MASCOTRESFILE_API
00035 #endif
00036 
00037 // Includes from the standard template library
00038 #include <vector>
00039 #include <list>
00040 
00041 namespace matrix_science {
00042     class ms_peptide_quant_key;
00043 }
00044 
00045 namespace matrix_science {
00051 
00052 
00061     class MS_MASCOTRESFILE_API ms_peptide_quant_key_vector
00062     {
00063         public:
00065             ms_peptide_quant_key_vector();
00066 
00067 #ifndef SWIG
00068 
00069             explicit ms_peptide_quant_key_vector(const std::vector<ms_peptide_quant_key> &v);
00070 
00072             explicit ms_peptide_quant_key_vector(const std::list<ms_peptide_quant_key> &v);
00073 #endif
00074 
00076             ms_peptide_quant_key_vector(const ms_peptide_quant_key_vector& src);
00077 
00079             ~ms_peptide_quant_key_vector();
00080 
00081 #ifndef SWIG
00082 
00083             ms_peptide_quant_key_vector& operator=(const ms_peptide_quant_key_vector& right);
00084             
00086             const std::vector<ms_peptide_quant_key>& toVector() const;
00087 #endif
00088 
00090             void copyFrom(const ms_peptide_quant_key_vector *src);
00091 
00093             int size() const;
00094 
00096             bool empty() const;
00097 
00099             void push(const ms_peptide_quant_key &key);
00100 
00102             ms_peptide_quant_key pop();
00103 
00105             ms_peptide_quant_key get(int idx) const;
00106 
00108             void set(int idx, const ms_peptide_quant_key &key);
00109 
00111             void clear();
00112 
00114             void swap(ms_peptide_quant_key_vector &right);
00115 
00116         private:
00117             std::vector<ms_peptide_quant_key> data_;
00118     }; // end of quantitation_group
00120 }   // matrix_science namespace
00121 
00122 #endif // MS_PEPQUANTKEYVECTOR_HPP
00123 
00124 /*------------------------------- End of File -------------------------------*/
00125 
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51