当前位置: 首页>>代码示例>>C++>>正文


C++ END_SECTION类代码示例

本文整理汇总了C++中END_SECTION的典型用法代码示例。如果您正苦于以下问题:C++ END_SECTION类的具体用法?C++ END_SECTION怎么用?C++ END_SECTION使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了END_SECTION类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: HMMState

the_hmm.addNewState(state_B_2);
the_hmm.addNewState(state_C_2);
the_hmm.addNewState(state_AB_3);
the_hmm.addNewState(state_C_3);
the_hmm.addNewState(state_end);

HiddenMarkovModel* ptr = nullptr;
HiddenMarkovModel* nullPointer = nullptr;
HMMState* state_ptr = nullptr;
HMMState* state_ptr2 = nullptr;
HMMState* state_ptr3 = new HMMState("base", true);
HMMState* state_nullPointer = nullptr;

// Hidden Markov Model State Tests
START_SECTION([EXTRA](HMMState()))
	state_ptr = new HMMState();
  TEST_NOT_EQUAL(state_ptr, state_nullPointer)
END_SECTION

START_SECTION([EXTRA](virtual ~HMMState()))
	delete state_ptr;
END_SECTION

state_ptr = nullptr;

START_SECTION([EXTRA](HMMState(const String& name, bool hidden = true)))
	state_ptr = new HMMState("state_name_hidden", true);
  TEST_NOT_EQUAL(state_ptr, state_nullPointer)
	state_ptr2 = new HMMState("state_name_emitting", false);
  TEST_NOT_EQUAL(state_ptr2, state_nullPointer)
END_SECTION
开发者ID:OpenMS,项目名称:OpenMS,代码行数:31,代码来源:HiddenMarkovModel_test.cpp

示例2: START_SECTION

CVMappingTerm* ptr = nullptr;
CVMappingTerm* nullPointer = nullptr;
START_SECTION(CVMappingTerm())
{
	ptr = new CVMappingTerm();
	TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(virtual ~CVMappingTerm())
{
	delete ptr;
}
END_SECTION

ptr = new CVMappingTerm();

START_SECTION((CVMappingTerm(const CVMappingTerm &rhs)))
{
 	CVMappingTerm cvmt;
	cvmt.setAccession("my_test_accession");
	TEST_STRING_EQUAL(CVMappingTerm(cvmt).getAccession(), "my_test_accession")

	cvmt.setUseTermName(true);
	TEST_EQUAL(CVMappingTerm(cvmt).getUseTermName(), true)
	cvmt.setUseTermName(false);
	TEST_EQUAL(CVMappingTerm(cvmt).getUseTermName(), false)

	cvmt.setUseTerm(true);
	TEST_EQUAL(CVMappingTerm(cvmt).getUseTerm(), true)
开发者ID:OpenMS,项目名称:OpenMS,代码行数:30,代码来源:CVMappingTerm_test.cpp

示例3: START_TEST

#include <OpenMS/FORMAT/DTAFile.h>

using namespace OpenMS;
using namespace std;

///////////////////////////

START_TEST(NeutralLossDiffFilter, "$Id$")

/////////////////////////////////////////////////////////////

NeutralLossDiffFilter* e_ptr = 0;
NeutralLossDiffFilter* e_nullPointer = 0;

START_SECTION((NeutralLossDiffFilter()))
	e_ptr = new NeutralLossDiffFilter;
  TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION

START_SECTION((~NeutralLossDiffFilter()))
	delete e_ptr;
END_SECTION

e_ptr = new NeutralLossDiffFilter();

START_SECTION((NeutralLossDiffFilter(const NeutralLossDiffFilter& source)))
	NeutralLossDiffFilter copy(*e_ptr);
	TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
	TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
开发者ID:BioinformaticsArchive,项目名称:OpenMS,代码行数:30,代码来源:NeutralLossDiffFilter_test.cpp

示例4: START_SECTION

MascotGenericFile* ptr = 0;
MascotGenericFile* nullPointer = 0;
START_SECTION(MascotGenericFile())
{
  ptr = new MascotGenericFile();
  TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(virtual ~MascotGenericFile())
{
  delete ptr;
}
END_SECTION

ptr = new MascotGenericFile();

START_SECTION((template < typename MapType > void load(const String &filename, MapType &exp)))
{
  PeakMap exp;
  ptr->load(OPENMS_GET_TEST_DATA_PATH("MascotInfile_test.mascot_in"), exp);
  TEST_EQUAL(exp.size(), 1)

  TEST_EQUAL(exp.begin()->size(), 9)
}
END_SECTION

START_SECTION((void store(std::ostream &os, const String &filename, const PeakMap &experiment, bool compact = false)))
{
  PeakMap exp;
开发者ID:burlab,项目名称:OpenMS,代码行数:30,代码来源:MascotGenericFile_test.cpp

示例5: START_TEST

///////////////////////////

START_TEST(ZhangSimilarityScore, "$Id$")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace OpenMS;
using namespace std;

ZhangSimilarityScore* ptr = 0;
ZhangSimilarityScore* nullPointer = 0;

START_SECTION(ZhangSimilarityScore())
	ptr = new ZhangSimilarityScore();
	TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION

START_SECTION(~ZhangSimilarityScore())
	delete ptr;
END_SECTION

ptr = new ZhangSimilarityScore();

START_SECTION(ZhangSimilarityScore(const ZhangSimilarityScore& source))
	ZhangSimilarityScore copy(*ptr);
	TEST_EQUAL(copy.getName(), ptr->getName());
	TEST_EQUAL(copy.getParameters(), ptr->getParameters());
END_SECTION
开发者ID:BioITer,项目名称:OpenMS,代码行数:29,代码来源:ZhangSimilarityScore_test.C

示例6: TEST_NOT_EQUAL

	TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(~ClusterAnalyzer())
{
	delete ptr;
}
END_SECTION

START_SECTION((ClusterAnalyzer(const ClusterAnalyzer &source)))
{
  NOT_TESTABLE
}
END_SECTION

	ptr = new ClusterAnalyzer();

START_SECTION((std::vector< float > averageSilhouetteWidth(const std::vector< BinaryTreeNode > &tree, const DistanceMatrix< float > &original)))
{
	DistanceMatrix<float> matrix(6,666);
	matrix.setValue(1,0,0.5f);
	matrix.setValue(2,0,0.8f);
	matrix.setValue(2,1,0.3f);
	matrix.setValue(3,0,0.6f);
	matrix.setValue(3,1,0.8f);
	matrix.setValue(3,2,0.8f);
	matrix.setValue(4,0,0.8f);
	matrix.setValue(4,1,0.8f);
	matrix.setValue(4,2,0.8f);
	matrix.setValue(4,3,0.4f);
开发者ID:OpenMS,项目名称:OpenMS,代码行数:31,代码来源:ClusterAnalyzer_test.cpp

示例7: START_TEST

///////////////////////////

START_TEST(PILISModel_test, "$Id$")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace OpenMS;
using namespace std;

PILISModel* ptr = 0;
PILISModel* nullPointer = 0;
const AASequence peptide = AASequence::fromString("DFPIANGER");
START_SECTION(PILISModel())
  ptr = new PILISModel();
  TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION

START_SECTION(~PILISModel())
  delete ptr;
END_SECTION

ptr = new PILISModel();

START_SECTION(PILISModel(const PILISModel& model))
  PILISModel copy(*ptr);
  TEST_EQUAL(copy.getParameters(), ptr->getParameters())
END_SECTION

START_SECTION(PILISModel& operator = (const PILISModel& mode))
开发者ID:chahuistle,项目名称:OpenMS,代码行数:30,代码来源:PILISModel_test.cpp

示例8: START_TEST

#include <map>

using namespace OpenMS;
using namespace std;

///////////////////////////

START_TEST(ComplementMarker, "$Id$")

/////////////////////////////////////////////////////////////

ComplementMarker* e_ptr = nullptr;
ComplementMarker* e_nullPointer = nullptr;

START_SECTION((ComplementMarker()))
	e_ptr = new ComplementMarker;
  TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION

START_SECTION((~ComplementMarker()))
	delete e_ptr;
END_SECTION

e_ptr = new ComplementMarker();

START_SECTION((ComplementMarker(const ComplementMarker& source)))
	ComplementMarker copy(*e_ptr);
	TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
	TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
开发者ID:grosenberger,项目名称:OpenMS,代码行数:30,代码来源:ComplementMarker_test.cpp

示例9: START_TEST

#include <OpenMS/KERNEL/StandardTypes.h>
#include <OpenMS/FORMAT/DTAFile.h>

using namespace OpenMS;
using namespace std;

///////////////////////////

START_TEST(SpectrumCheapDPCorr, "$Id$")

/////////////////////////////////////////////////////////////

SpectrumCheapDPCorr* e_ptr = 0;
SpectrumCheapDPCorr* e_nullPointer = 0;
START_SECTION(SpectrumCheapDPCorr())
	e_ptr = new SpectrumCheapDPCorr;
	TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION

START_SECTION(~SpectrumCheapDPCorr())
	delete e_ptr;
END_SECTION

e_ptr = new SpectrumCheapDPCorr();

START_SECTION(SpectrumCheapDPCorr(const SpectrumCheapDPCorr& source))
	SpectrumCheapDPCorr copy(*e_ptr);
	TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
	TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
开发者ID:chahuistle,项目名称:OpenMS,代码行数:30,代码来源:SpectrumCheapDPCorr_test.cpp

示例10: START_TEST

#include <OpenMS/FORMAT/DTAFile.h>

using namespace OpenMS;
using namespace std;

///////////////////////////

START_TEST(PeakMarker, "$Id$")

/////////////////////////////////////////////////////////////

PeakMarker* e_ptr = 0;
PeakMarker* e_nullPointer = 0;

START_SECTION((PeakMarker()))
	e_ptr = new PeakMarker;
  TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION

START_SECTION((~PeakMarker()))
	delete e_ptr;
END_SECTION

e_ptr = new PeakMarker();

START_SECTION((PeakMarker(const PeakMarker& source)))
	PeakMarker copy(*e_ptr);
	TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
	TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
开发者ID:chahuistle,项目名称:OpenMS,代码行数:30,代码来源:PeakMarker_test.cpp

示例11: START_TEST

#include <OpenMS/FORMAT/IdXMLFile.h>
#include <OpenMS/FORMAT/FeatureXMLFile.h>
///////////////////////////

using namespace OpenMS;
using namespace std;

START_TEST(PrecursorIonSelection, "$Id$")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

PrecursorIonSelection* ptr = 0;
PrecursorIonSelection* nullPointer = 0;
START_SECTION(PrecursorIonSelection())
  ptr = new PrecursorIonSelection();
	TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION

START_SECTION(~PrecursorIonSelection())
  delete ptr;
END_SECTION

ptr = new PrecursorIonSelection();

START_SECTION(PrecursorIonSelection(const PrecursorIonSelection& source))
  ptr->setMaxScore(23.5);
  PrecursorIonSelection copy(*ptr);
  TEST_EQUAL(copy.getParameters(), ptr->getParameters())
  TEST_REAL_SIMILAR(copy.getMaxScore(), ptr->getMaxScore())
END_SECTION
开发者ID:chahuistle,项目名称:OpenMS,代码行数:31,代码来源:PrecursorIonSelection_test.cpp

示例12: START_SECTION

SingleLinkage* ptr = 0;
SingleLinkage* nullPointer = 0;
START_SECTION(SingleLinkage())
{
	ptr = new SingleLinkage();
	TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(~SingleLinkage())
{
	delete ptr;
}
END_SECTION

ptr = new SingleLinkage();

START_SECTION((SingleLinkage(const SingleLinkage &source)))
{
	SingleLinkage copy(*ptr);
	TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
END_SECTION

START_SECTION((SingleLinkage& operator=(const SingleLinkage &source)))
{
	SingleLinkage copy;
	copy = *ptr;
	TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
开发者ID:chahuistle,项目名称:OpenMS,代码行数:30,代码来源:SingleLinkage_test.cpp

示例13: START_SECTION

CVMappings* ptr = 0;
CVMappings* nullPointer = 0;
START_SECTION(CVMappings())
{
	ptr = new CVMappings();
	TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(virtual ~CVMappings())
{
	delete ptr;
}
END_SECTION

ptr = new CVMappings();

START_SECTION((CVMappings(const CVMappings &rhs)))
{
	CVMappings cvm;
  CVMappingRule r1, r2;
  vector<CVMappingRule> rules;
  rules.push_back(r1);
  rules.push_back(r2);
	cvm.setMappingRules(rules);
	TEST_EQUAL(CVMappings(cvm).getMappingRules() == rules, true)

	CVReference ref1, ref2;
  ref1.setIdentifier("Ref1");
  ref2.setIdentifier("Ref2");
开发者ID:FabianAicheler,项目名称:OpenMS,代码行数:30,代码来源:CVMappings_test.cpp

示例14: START_TEST

///////////////////////////

START_TEST(SvmTheoreticalSpectrumGenerator, "$Id$")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace OpenMS;
using namespace std;

SvmTheoreticalSpectrumGenerator* ptr = 0;
SvmTheoreticalSpectrumGenerator* nullPointer = 0;

START_SECTION(SvmTheoreticalSpectrumGenerator())
  ptr = new SvmTheoreticalSpectrumGenerator();
  TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION

START_SECTION(SvmTheoreticalSpectrumGenerator(const SvmTheoreticalSpectrumGenerator& source))
  SvmTheoreticalSpectrumGenerator copy(*ptr);
  TEST_EQUAL(copy.getParameters(), ptr->getParameters())
END_SECTION

START_SECTION(~SvmTheoreticalSpectrumGenerator())
  delete ptr;
END_SECTION

ptr = new SvmTheoreticalSpectrumGenerator();
AASequence peptide = AASequence::fromString("IFSQVGK");
开发者ID:chahuistle,项目名称:OpenMS,代码行数:29,代码来源:SvmTheoreticalSpectrumGenerator_test.cpp

示例15: START_SECTION

BinnedSharedPeakCount* ptr = 0;
BinnedSharedPeakCount* nullPointer = 0;
START_SECTION(BinnedSharedPeakCount())
{
	ptr = new BinnedSharedPeakCount();
	TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION

START_SECTION(~BinnedSharedPeakCount())
{
	delete ptr;
}
END_SECTION

ptr = new BinnedSharedPeakCount();

START_SECTION((BinnedSharedPeakCount(const BinnedSharedPeakCount &source)))
{
	BinnedSharedPeakCount copy(*ptr);
	TEST_EQUAL(copy.getName(), ptr->getName());
	TEST_EQUAL(copy.getParameters(), ptr->getParameters());
}
END_SECTION
START_SECTION((BinnedSharedPeakCount& operator=(const BinnedSharedPeakCount &source)))
{
	BinnedSharedPeakCount copy;
	copy = *ptr;
	TEST_EQUAL(copy.getName(), ptr->getName());
	TEST_EQUAL(copy.getParameters(), ptr->getParameters());
开发者ID:BioinformaticsArchive,项目名称:OpenMS,代码行数:30,代码来源:BinnedSharedPeakCount_test.cpp


注:本文中的END_SECTION类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。