NCBI C++ ToolKit
Classes | Typedefs | Functions
criteria.hpp File Reference

This is the header file for defining and working with criteria functions. More...

#include <corelib/ncbifile.hpp>
#include <corelib/ncbistr.hpp>
#include <objects/blastdb/Blast_def_line.hpp>
+ Include dependency graph for criteria.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SDIRecord
 Structure which corresponds to format of records in DI files. More...
 
class  ICriteria
 ICriteria. More...
 
class  CCriteria_EST_HUMAN
 CCriteria_EST_HUMAN. More...
 
class  CCriteria_EST_MOUSE
 CCriteria_EST_MOUSE. More...
 
class  CCriteria_EST_OTHERS
 CCriteria_EST_OTHERS. More...
 
class  CCriteria_SWISSPROT
 CCriteria_SWISSPROT. More...
 
class  CCriteria_PDB
 CCriteria_PDB. More...
 
class  CCriteria_REFSEQ
 CCriteria_REFSEQ. More...
 
class  CCriteria_REFSEQ_RNA
 CCriteria_REFSEQ_RNA. More...
 
class  CCriteria_REFSEQ_GENOMIC
 CCriteria_REFSEQ_GENOMIC. More...
 
class  CCriteriaSet
 CCriteriaSet. More...
 

Typedefs

typedef map< string, ICriteria *, ncbi::PNocaseTCriteriaMap
 

Functions

objects::CBlast_def_line::TMemberships CCriteriaSet_CalculateMemberships (const SDIRecord &direcord)
 CCriteriaSet_CalculateMemberships. More...
 
int CCriteriaSet_CalculateMemberships (const SDIRecord &direcord, objects::CBlast_def_line &defline)
 Overloaded version of CCriteriaSet_CalculateMemberships. More...
 

Detailed Description

This is the header file for defining and working with criteria functions.

Author
Thomas W. Rackers

Defines classes: ICriteria CCriteria_EST_HUMAN CCriteria_EST_MOUSE CCriteria_EST_OTHERS CCriteria_SWISSPROT CCriteria_PDB CCriteria_REFSEQ CCriteria_REFSEQ_RNA CCriteria_REFSEQ_GENOMIC CCriteriaSet

Implemented for: Linux, MS-Windows

Definition in file criteria.hpp.

Typedef Documentation

◆ TCriteriaMap

Definition at line 385 of file criteria.hpp.

Function Documentation

◆ CCriteriaSet_CalculateMemberships() [1/2]

objects::CBlast_def_line::TMemberships CCriteriaSet_CalculateMemberships ( const SDIRecord direcord)

CCriteriaSet_CalculateMemberships.

This function uses a predefined subset of the available criteria functions to create a membership bitmap.

Parameters
direcordstruct containing data derived from a single DI record
Returns
TMemberships object (typedef'ed to list<int>)
Parameters
direcordDI record data

Definition at line 206 of file criteria.cpp.

References _VERIFY, CCriteriaSet::AddCriteria(), ICriteria::eDO_NOT_USE, ICriteria::eUNASSIGNED, CCriteriaSet::GetCriteriaMap(), ICriteria::GetLabel(), ICriteria::GetMembershipBit(), int, ICriteria::is(), ITERATE, NcbiCout, NcbiEndl, NON_CONST_ITERATE, and NULL.

Referenced by BOOST_AUTO_TEST_CASE(), and CCriteriaSet_CalculateMemberships().

◆ CCriteriaSet_CalculateMemberships() [2/2]

int CCriteriaSet_CalculateMemberships ( const SDIRecord direcord,
objects::CBlast_def_line &  defline 
)

Overloaded version of CCriteriaSet_CalculateMemberships.

Returns
0 on success and non-zero on failure
Parameters
deflineDI record data The

Definition at line 307 of file criteria.cpp.

References CCriteriaSet_CalculateMemberships().

Modified on Mon May 27 04:38:25 2024 by modify_doxy.py rev. 669887