A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/bio__tree__format__label_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/phy_tree/bio_tree_format_label.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

45  size_t

srt_var = string::npos;

46  size_t

end_var = string::npos;

47

string::size_type last_pos = 0;

50

srt_var = retval.find(

"$("

, last_pos);

52  if

(srt_var != string::npos) {

53

end_var = retval.find(

")"

, srt_var);

55  if

(end_var != string::npos) {

57  size_t

embedded_key = retval.find(

"$("

, srt_var + 1);

58  if

(embedded_key != string::npos && embedded_key < end_var) {

59

last_pos = embedded_key;

65  string key

= retval.substr(srt_var + 2, (end_var - srt_var) - 2);

70

elt.

m_Value

= retval.substr(last_pos, (srt_var - last_pos));

72

m_LabelElements.push_back(elt);

74

last_pos = end_var + 1;

77

}

while

(srt_var != string::npos && end_var != string::npos);

80  if

(last_pos < retval.length()) {

82

elt.

m_Value

= retval.substr(last_pos, retval.length() - last_pos);

84

m_LabelElements.push_back(elt);

92  ITERATE

(vector<LabelElt>, it, m_LabelElements) {

93

retval += (*it).m_Value;

Features storage for the bio tree node.

CBioTreeFormatLabel(const CBioTreeFeatureDictionary &dict, const std::string &format)

std::string FormatLabel(const CBioTreeFeatureList &features) const

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string.

unsigned int TBioTreeFeatureId

Feature Id.

TBioTreeFeatureId GetId(const string &feature_name) const

If feature is already registered returns its id by name.

const string & GetFeatureValue(TBioTreeFeatureId id) const

Get feature value by id.

The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format

const struct ncbi::grid::netcache::search::fields::KEY key


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4