NCBI C++ ToolKit
Functions
njn_integer.hpp File Reference
#include <corelib/ncbistl.hpp>
#include "njn_ioutil.hpp"
+ Include dependency graph for njn_integer.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.

Functions

template<class Int >
Int minimum (Int i, Int j)
 
template<class Int >
Int maximum (Int i, Int j)
 
template<class Int >
Int mod (Int i, Int j)
 
template<class Int >
Int euclidAlgorithm (Int i_, Int j_)
 
template<class Int , class ConstIntegerPtr >
Int euclidAlgorithmVector (ConstIntegerPtr begin_, ConstIntegerPtr end_)
 
template<class Int >
Int minusOnePower (Int i)
 
template<class Real , class Int >
Real integerPower (Real x, Int n)
 
template<class Real , class UnsignedInteger >
Real integerPositivePower (Real x, UnsignedInteger n)
 
template<class Int , class IntTwo >
Int intPower (Int x, IntTwo n)
 

Function Documentation

◆ euclidAlgorithm()

template<class Int >
Int euclidAlgorithm ( Int  i_,
Int  j_ 
)

Definition at line 90 of file njn_integer.hpp.

Referenced by euclidAlgorithmVector().

◆ euclidAlgorithmVector()

template<class Int , class ConstIntegerPtr >
Int euclidAlgorithmVector ( ConstIntegerPtr  begin_,
ConstIntegerPtr  end_ 
)

Definition at line 109 of file njn_integer.hpp.

References assert, euclidAlgorithm(), and gcd().

◆ integerPositivePower()

template<class Real , class UnsignedInteger >
Real integerPositivePower ( Real  x,
UnsignedInteger  n 
)

Definition at line 175 of file njn_integer.hpp.

References i, and n.

◆ integerPower()

template<class Real , class Int >
Real integerPower ( Real  x,
Int  n 
)

Definition at line 135 of file njn_integer.hpp.

References abort(), i, and n.

Referenced by n_meanPowerAssoc().

◆ intPower()

template<class Int , class IntTwo >
Int intPower ( Int  x,
IntTwo  n 
)

Definition at line 205 of file njn_integer.hpp.

References assert, i, and n.

◆ maximum()

template<class Int >
Int maximum ( Int  i,
Int  j 
)

Definition at line 59 of file njn_integer.hpp.

References i.

◆ minimum()

template<class Int >
Int minimum ( Int  i,
Int  j 
)

Definition at line 51 of file njn_integer.hpp.

References i.

Referenced by CMSPeak::AddHit(), and TestBinding().

◆ minusOnePower()

template<class Int >
Int minusOnePower ( Int  i)

Definition at line 128 of file njn_integer.hpp.

References i.

◆ mod()

template<class Int >
Int mod ( Int  i,
Int  j 
)

Definition at line 67 of file njn_integer.hpp.

References abort(), and i.

Referenced by bm::serializer< BV >::add_model(), CModHandler::AddMods(), AddModToDefline(), AddOrgMod(), CSourceModParser::ApplyMods(), BOOST_AUTO_TEST_CASE(), CNCHeartBeat::CheckConfFile(), CheckQualsInSourceFeat(), CAutoDefSourceModifierInfo::Compare(), CompareOrgModValue(), CreateRawBioSources(), ExtendCDSToStopCodon(), ExtendToStopCodon(), CCleanup::ExtendToStopCodon(), CSourceModParser::FindMod(), FindModifierOnBioseq(), fta_sort_biosource(), CExtendCDSToStop::GetCommand(), GetGBBlock(), CGlTextureFont::GetMaxWidth(), CTextUtils::GetMaxWidth(), CSourceModParser::GetModAllowedValues(), CSourceModParser::GetModAllowedValuesAsOneString(), CSrcModPanel::GetModifierData(), CWriteUtil::GetOrgModSubType(), GetSprotDescr(), GetTaxnameNameFromDescrs(), HasMod(), CDbIndex_Impl< LEGACY >::OffsetIterator(), CCompareWithBiosample::OnClickOk(), CDefaultModErrorReporter::operator()(), SIsOldName::operator()(), SRemovableOldname::operator()(), SRemovableOrgModNote::operator()(), operator+=(), CAutoDefSourceModifierInfo::operator<(), CAutoDefSourceModifierInfo::operator>(), CSourceModParser::ParseTitle(), PopulateSubNames(), CFindASN1Dlg::ReplaceInOrg(), CRenderVector::Rotated(), s_AppendMods(), s_AppendPrimerNames(), s_AppendPrimerSeqs(), s_PreprocessNoteMods(), s_TitleFromSegment(), SetMolinfoFromGIBBMod(), sRunTest(), sUpdateCase(), tds_poll(), CMacroFunction_ApplyStrucVoucherPart::TheFunction(), CSeqTranslator::TranslateToProtein(), CBioSource::UpdateWithBioSample(), CFeatureTableReader::x_AddProteinFeatureToProtein(), CSourceFeatureItem::x_AddQuals(), COrgAdvancedPanel::x_ApplyChangesToSource(), COrgGeneralPanel::x_ApplyChangesToSource(), CSourceModParser::x_ApplyDBLinkMods(), CSourceModParser::x_ApplyGenomeProjectsDBMods(), CSourceModParser::x_ApplyMods(), CSourceModParser::x_ApplyTPAMods(), CFeaturePropagator::x_ExtendToStopCodon(), CDeflineGenerator::x_GetModifiers(), CSourceModParser::x_HandleBadModValue(), CAgpconvertApplication::x_HandleTaxArgs(), CSourceModParser::x_HandleUnkModValue(), COrgAdvancedPanel::x_Reset(), CDescrModApply::x_SetComment(), CDescrModApply::x_SetDBLinkField(), CDescrModApply::x_SetFileTrack(), CDescrModApply::x_SetGBblockIds(), CDescrModApply::x_SetGBblockKeywords(), CDescrModApply::x_SetGenomeProjects(), CModAdder::x_SetHist(), CDescrModApply::x_SetOrgMod(), CDescrModApply::x_SetPMID(), CSourceItem::x_SetSource(), CDescrModApply::x_SetSubtype(), CDescrModApply::x_SetTpaAssembly(), x_Translate(), CDescrModApply::x_TryPCRPrimerMod(), and CFeatModApply::x_TryProtRefMod().

Modified on Fri Sep 20 14:58:18 2024 by modify_doxy.py rev. 669887