CycloBranch
cPubchemCIDReader Struct Reference

The functor used to get the CIDs of compounds with the same formula. More...

#include <cPubChemSearchWidget.h>

Public Types

typedef string result_type
 result_type
 

Public Member Functions

string getCIDList (const string &compound)
 Get the list of CIDs. More...
 
void getCommaSeparatedCIDs (string &cids, string &reducedcids)
 Get a list of CIDs separated by comma. More...
 
void attachVectorOfCIDs (string &cids, vector< string > &cidsvector)
 Attach a vector of CIDs. More...
 
int getNumberOfCIDs (string &cids)
 Get the number of compounds with the same formula. More...
 
string operator() (const string &compound)
 Overloaded operator (). More...
 

Detailed Description

The functor used to get the CIDs of compounds with the same formula.

Member Function Documentation

◆ attachVectorOfCIDs()

void cPubchemCIDReader::attachVectorOfCIDs ( string &  cids,
vector< string > &  cidsvector 
)
inline

Attach a vector of CIDs.

Parameters
cidsinput list of CIDs
cidsvectorinput/output vector of CIDs

◆ getCIDList()

string cPubchemCIDReader::getCIDList ( const string &  compound)
inline

Get the list of CIDs.

Parameters
compoundformula
Return values
stringlist of CIDs

◆ getCommaSeparatedCIDs()

void cPubchemCIDReader::getCommaSeparatedCIDs ( string &  cids,
string &  reducedcids 
)
inline

Get a list of CIDs separated by comma.

Parameters
cidsinput list of CIDs
reducedcidsoutput list of CIDs separated by comma

◆ getNumberOfCIDs()

int cPubchemCIDReader::getNumberOfCIDs ( string &  cids)
inline

Get the number of compounds with the same formula.

Parameters
cidslist of CIDs
Return values
intnumber of CIDs

◆ operator()()

string cPubchemCIDReader::operator() ( const string &  compound)
inline

Overloaded operator ().

Parameters
compoundformula
Return values
stringlist of CIDs

The documentation for this struct was generated from the following file: