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/unit__test__idmapper_8cpp_source.html below:

NCBI C++ ToolKit: src/objtools/readers/unit_test/unit_test_idmapper.cpp Source File

69

BOOST_CHECK_EQUAL(idh2, mapped_idh);

76

mapped_idh = mapper.

Map

(idh3);

77

BOOST_CHECK_EQUAL(idh3, mapped_idh);

98

loc1.

SetInt

().SetFrom( 0);

99

loc1.

SetInt

().SetTo (100);

105

BOOST_CHECK_EQUAL(idh2, mapped_idh);

124

loc1.

SetInt

().SetFrom( 10);

125

loc1.

SetInt

().SetTo (100);

129

loc2.

SetInt

().SetFrom( 0);

130

loc2.

SetInt

().SetTo (90);

137

loc3.

SetPnt

().SetPoint(55);

143

BOOST_CHECK_EQUAL(idh2, mapped_idh);

163

loc1.

SetInt

().SetFrom( 10);

164

loc1.

SetInt

().SetTo (100);

172

sub->

SetInt

().SetFrom(0);

173

sub->

SetInt

().SetTo(45);

175

loc2.

SetMix

().Set().push_back(sub);

178

sub->

SetInt

().SetFrom(0);

179

sub->

SetInt

().SetTo(44);

181

loc2.

SetMix

().Set().push_back(sub);

189

loc3.

SetPnt

().SetPoint(40);

195

BOOST_CHECK_EQUAL(idh2, mapped_idh);

201

loc3.

SetPnt

().SetPoint(60);

207

BOOST_CHECK_EQUAL(idh3, mapped_idh);

213

loc3.

SetInt

().SetFrom(45);

214

loc3.

SetInt

().SetTo(60);

219

BOOST_CHECK_EQUAL(loc4->

GetId

(), (

const CSeq_id

*)

nullptr

);

233

BOOST_CHECK( !loc_iter );

255

loc1.

SetInt

().SetFrom( 10);

256

loc1.

SetInt

().SetTo (100);

260

BOOST_CHECK_EQUAL(

GI_CONST

(224589800), mapped_idh.

GetGi

());

264

BOOST_CHECK_EQUAL(

GI_CONST

(224589800), mapped_idh.

GetGi

());

271

loc2.

SetInt

().SetFrom( 10);

272

loc2.

SetInt

().SetTo (100);

276

BOOST_CHECK_EQUAL(

GI_CONST

(224589811), mapped_idh.

GetGi

());

280

BOOST_CHECK_EQUAL(

GI_CONST

(224589811), mapped_idh.

GetGi

());

IdMapper implementation using hardcoded values.

IdMapper base class implementation.

virtual CSeq_id_Handle Map(const CSeq_id_Handle &)

Map a single given CSeq_id_Handle to another.

virtual void AddMapping(const CSeq_id_Handle &from, const CSeq_id_Handle &to)

Add a mapping to the internal mapping table.

Seq-loc iterator class – iterates all intervals from a seq-loc in the correct order.

unsigned int TSeqPos

Type for sequence locations and lengths.

static CSeq_id_Handle GetHandle(const CSeq_id &id)

Normal way of getting a handle, works for any seq-id.

void SetId(CSeq_id &id)

set the 'id' field in all parts of this location

CSeq_id_Handle GetSeq_id_Handle(void) const

const CSeq_id * GetId(void) const

Get the id of the location return NULL if has multiple ids or no id at all.

TRange GetRange(void) const

Get the range.

void Reset(void)

Reset reference object.

const TPnt & GetPnt(void) const

Get the variant data.

TPoint GetPoint(void) const

Get the Point member data.

TFrom GetFrom(void) const

Get the From member data.

E_Choice Which(void) const

Which variant is currently selected.

TTo GetTo(void) const

Get the To member data.

const TInt & GetInt(void) const

Get the variant data.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Utility stuff for more convenient using of Boost.Test library.

BOOST_AUTO_TEST_CASE(Test_SimpleIdMapper)

Test simple seq-id -> seq-id mapping, given a mapping table of seq-id -> seq-id.


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