NCBI C++ ToolKit
Macros | Typedefs | Functions | Variables
Org_ref.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/Dbtag.hpp>
#include "common_tax.inc"
+ Include dependency graph for Org_ref.cpp:
+ 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.

Macros

#define MAKE_COMMON(o1, o2, o3, Field)   if (o1.IsSet##Field() && o2.IsSet##Field() && NStr::Equal(o1.Get##Field(), o2.Get##Field())) o3.Set##Field(o1.Get##Field());
 
#define NO_FLAG(a, f)   (( a & f ) == 0)
 

Typedefs

typedef map< string, CRef< COrg_ref >, PNocaseTOrgrefMap
 

Functions

bool s_FindWholeWord (string taxname, string value)
 
void s_MakeCommonStringList (const list< string > &list1, const list< string > &list2, list< string > &list3)
 
 DEFINE_STATIC_FAST_MUTEX (s_OrgRefMapMutex)
 
static void s_ProcessOrgRefMapLine (const CTempString &line)
 
static void s_InitializeOrgRefMap (void)
 

Variables

static const char *const s_taxonName = "taxon"
 
static const string s_nomenclature = "nomenclature="
 
static TOrgrefMap s_OrgRefMap
 
static vector< strings_CommonTaxnameList
 
static bool s_OrgRefMapInitialized = false
 

Macro Definition Documentation

◆ MAKE_COMMON

#define MAKE_COMMON (   o1,
  o2,
  o3,
  Field 
)    if (o1.IsSet##Field() && o2.IsSet##Field() && NStr::Equal(o1.Get##Field(), o2.Get##Field())) o3.Set##Field(o1.Get##Field());

Definition at line 261 of file Org_ref.cpp.

◆ NO_FLAG

#define NO_FLAG (   a,
  f 
)    (( a & f ) == 0)

Definition at line 515 of file Org_ref.cpp.

Typedef Documentation

◆ TOrgrefMap

Definition at line 342 of file Org_ref.cpp.

Function Documentation

◆ DEFINE_STATIC_FAST_MUTEX()

DEFINE_STATIC_FAST_MUTEX ( s_OrgRefMapMutex  )

◆ s_FindWholeWord()

bool s_FindWholeWord ( string  taxname,
string  value 
)

◆ s_InitializeOrgRefMap()

static void s_InitializeOrgRefMap ( void  )
static

◆ s_MakeCommonStringList()

void s_MakeCommonStringList ( const list< string > &  list1,
const list< string > &  list2,
list< string > &  list3 
)

Definition at line 263 of file Org_ref.cpp.

References NStr::Equal(), and ITERATE.

Referenced by COrg_ref::MakeCommon().

◆ s_ProcessOrgRefMapLine()

static void s_ProcessOrgRefMapLine ( const CTempString line)
static

Variable Documentation

◆ s_CommonTaxnameList

vector<string> s_CommonTaxnameList
static

Definition at line 344 of file Org_ref.cpp.

Referenced by COrg_ref::GetTaxnameList(), and s_ProcessOrgRefMapLine().

◆ s_nomenclature

const string s_nomenclature = "nomenclature="
static

Definition at line 69 of file Org_ref.cpp.

◆ s_OrgRefMap

TOrgrefMap s_OrgRefMap
static

Definition at line 343 of file Org_ref.cpp.

Referenced by s_ProcessOrgRefMapLine(), and COrg_ref::TableLookup().

◆ s_OrgRefMapInitialized

bool s_OrgRefMapInitialized = false
static

Definition at line 345 of file Org_ref.cpp.

Referenced by s_InitializeOrgRefMap().

◆ s_taxonName

const char* const s_taxonName = "taxon"
static

Definition at line 68 of file Org_ref.cpp.

Referenced by COrg_ref::FilterOutParts(), COrg_ref::GetTaxId(), and COrg_ref::SetTaxId().

Modified on Sun May 05 05:16:47 2024 by modify_doxy.py rev. 669887