std::string Beagle::GP::DivideT<T>::deparse(std::vector<std::string>& lSubTrees) const { Beagle_AssertM(getNumberArguments()==2); Beagle_AssertM(lSubTrees.size() == 2); std::ostringstream lOSS; lOSS << "(" << lSubTrees[0] << "/" << lSubTrees[1] << ")"; return lOSS.str(); }
/*! * \brief Get distance between two towns in the map. * \param inIndexFirstTown Index of first town in the map. * \param inIndexSecondTown Index of second town in the map. * \return Distance between the two towns. */ inline double getDistance(unsigned int inIndexFirstTown, unsigned int inIndexSecondTown) const { Beagle_StackTraceBeginM(); Beagle_AssertM(mDistancesMatrix.getCols() != 0); Beagle_AssertM(mDistancesMatrix.getRows() != 0); Beagle_AssertM(inIndexFirstTown < mNumberOfTowns->getWrappedValue()); Beagle_AssertM(inIndexSecondTown < mNumberOfTowns->getWrappedValue()); return mDistancesMatrix(inIndexFirstTown, inIndexSecondTown); Beagle_StackTraceEndM("double getDistance(unsigned int, unsigned int) const"); }
const std::type_info* Beagle::GP::DivideT<T>::getArgType(unsigned int inN, Beagle::GP::Context& ioContext) const { Beagle_StackTraceBeginM(); Beagle_AssertM(inN<2); return &typeid(T); Beagle_StackTraceEndM(); }
const std::type_info* Beagle::GP::IfThenElseT<ProcessedType,ConditionType>::getArgType(unsigned int inN, Beagle::GP::Context& ioContext) const { Beagle_StackTraceBeginM(); Beagle_AssertM(inN<4); return &typeid(ProcessedType); Beagle_StackTraceEndM(); }