本文整理汇总了C++中Beagle_StackTraceBeginM函数的典型用法代码示例。如果您正苦于以下问题:C++ Beagle_StackTraceBeginM函数的具体用法?C++ Beagle_StackTraceBeginM怎么用?C++ Beagle_StackTraceBeginM使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Beagle_StackTraceBeginM函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setFileName
/*!
* \brief Set the file name where the exception is detected (throwed).
* \param inFileName File name where the exception is detected.
*/
inline void setFileName(const std::string& inFileName)
{
Beagle_StackTraceBeginM();
mFileName = inFileName;
Beagle_StackTraceEndM("void TargetedException::setFileName(const std::string& inFileName)");
}
示例2: insertNegativeOp
/*!
* \brief Insert an operator in the negative set of the if-then-else operator.
* \param inOperator Operator to insert.
* \warning Insert your operators before the initialization!
*/
void insertNegativeOp(Beagle::Operator::Handle inOperator) {
Beagle_StackTraceBeginM();
mNegativeOpSet.push_back(inOperator);
Beagle_StackTraceEndM();
}
示例3: setConditionValue
/*!
* \brief Set parameter value of condition to use.
*/
inline void setConditionValue(std::string inValue) {
Beagle_StackTraceBeginM();
mConditionValue = inValue;
Beagle_StackTraceEndM();
}
示例4: setValid
/*!
* \brief Validate the fitness.
*/
inline void setValid() {
Beagle_StackTraceBeginM();
mValid = true;
Beagle_StackTraceEndM();
}
示例5: getPositiveSet
/*!
* \brief Return a constant reference to the positive operator set.
* \return Positive operator set constant reference.
*/
inline const Beagle::Operator::Bag& getPositiveSet() const {
Beagle_StackTraceBeginM();
return mPositiveOpSet;
Beagle_StackTraceEndM();
}
示例6: getWrappedValue
/*!
* \brief Get the wrapped type value.
* \return A constant reference to the wrapped value.
*/
inline const T& getWrappedValue() const {
Beagle_StackTraceBeginM();
return mWrappedValue;
Beagle_StackTraceEndM();
}
示例7: isValid
/*!
* \brief Return validity of the fitness.
* \return True if fitness is valid, false if not.
*/
inline bool isValid() const {
Beagle_StackTraceBeginM();
return mValid;
Beagle_StackTraceEndM();
}
示例8: Beagle_StackTraceBeginM
/*!
* \brief Test whether an string is not equal to another.
* \param inLeftString Left string compared.
* \param inRightString Right string compared.
* \return True if left string is not equal to the right one, false if it is.
* \par Note:
* The operator is defined relatively to the function isEqual of Beagle::String.
*/
inline bool operator!=(const Beagle::String& inLeftString, const Beagle::String& inRightString)
{
Beagle_StackTraceBeginM();
return ( inLeftString.isEqual(inRightString) == false);
Beagle_StackTraceEndM("bool operator!=(const String& inLeftString, const String& inRightString)");
}
示例9: setNumThreads
/*! \brief Set the number of threads that OpenMP will use in the parallel sections.
* \param iNumThreads is the number of threads to use.
*/
inline virtual void setNumThreads(unsigned int inNumThreads){
Beagle_StackTraceBeginM();
omp_set_num_threads(inNumThreads);
Beagle_StackTraceEndM("unsigned int OpenMP::setNumThreads(unsigned int)");
}
示例10: getThreadNum
/*! \brief
* \return
*/
inline unsigned int getThreadNum() const{
Beagle_StackTraceBeginM();
return omp_get_thread_num();
Beagle_StackTraceEndM("unsigned int OpenMP::getThreadNum() const");
}
示例11: inParallelSection
/*! \brief
* \return
*/
inline bool inParallelSection() const{
Beagle_StackTraceBeginM();
return (omp_in_parallel()>0)?true:false;
Beagle_StackTraceEndM("unsigned int OpenMP::inParallelSection() const");
}
示例12: getNumProcs
/*! \brief Ask OpenMP how many processors are available.
* \return The number of processors on this machine.
*/
inline unsigned int getNumProcs() const{
Beagle_StackTraceBeginM();
return omp_get_num_procs();
Beagle_StackTraceEndM("unsigned int OpenMP::getNumProcs() const");
}
示例13: setLineNumber
/*!
* \brief Set the line number in the file where the exception is detected (throwed).
* \param inLineNumber Line number in the file where the exception is detected.
*/
inline void setLineNumber(unsigned int inLineNumber)
{
Beagle_StackTraceBeginM();
mLineNumber = inLineNumber;
Beagle_StackTraceEndM("void TargetedException::setLineNumber(unsigned int inLineNumber)");
}
示例14: getNumberOfEmigrants
/*!
* \brief Return number of emigrants available in current migration buffer.
* \return Number of emigrants available in current migration buffer.
*/
inline unsigned int getNumberOfEmigrants() const
{
Beagle_StackTraceBeginM();
return mEmigrants.size();
Beagle_StackTraceEndM("unsigned int MigrationBuffer::getNumberOfEmigrants() const");
}
示例15: Beagle_StackTraceBeginM
/*!
* \brief Test whether an unsigned long is less than, or equal to another.
* \param inLeftULong Left unsigned long compared.
* \param inRightULong Right unsigned long compared.
* \return True if left unsigned long is less than, or equal to the right one, false if not.
* \par Note:
* The operator is defined relatively to the functions isLess and isEqual of Beagle::ULong.
*/
inline bool operator<=(const Beagle::ULong& inLeftULong, const Beagle::ULong& inRightULong)
{
Beagle_StackTraceBeginM();
return ( inLeftULong.isLess(inRightULong) || inLeftULong.isEqual(inRightULong) );
Beagle_StackTraceEndM("bool operator<=(const ULong& inLeftULong, const ULong& inRightULong)");
}