123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- // This file includes wrapper signatures compatible
- // with HTuple in HALCON 10.0 or older
- // Special signatures
- Hlong Num() const
- {
- return Length();
- }
- void Reset()
- {
- Clear();
- }
- HTuple Getenv()
- {
- return TupleEnvironment();
- }
- HTuple ToString(const HTuple& pattern) const
- {
- return TupleString(pattern[0].S());
- }
- HTuple Subset(const HTuple& index) const
- {
- return TupleSelect(index);
- }
- // General shortened operator names without Tuple prefix
- HTuple Substring(const HTuple& Index1, const HTuple& Index2) const
- {
- return TupleSubstr(Index1, Index2);
- }
- HTuple HistoRange(const HTuple& Min, const HTuple& Max, const HTuple& NumBins,
- HTuple* BinSize) const
- {
- return TupleHistoRange(Min, Max, NumBins, BinSize);
- }
- HTuple RegexpSelect(const HTuple& Expression) const
- {
- return TupleRegexpSelect(Expression);
- }
- HTuple RegexpTest(const HTuple& Expression) const
- {
- return TupleRegexpTest(Expression);
- }
- HTuple RegexpReplace(const HTuple& Expression, const HTuple& Replace) const
- {
- return TupleRegexpReplace(Expression, Replace);
- }
- HTuple RegexpMatch(const HTuple& Expression) const
- {
- return TupleRegexpMatch(Expression);
- }
- HTuple Rand()
- {
- return TupleRand(*this);
- }
- HTuple Sgn() const
- {
- return TupleSgn();
- }
- HTuple Max2(const HTuple& T2) const
- {
- return TupleMax2(T2);
- }
- HTuple Min2(const HTuple& T2) const
- {
- return TupleMin2(T2);
- }
- HTuple Max() const
- {
- return TupleMax();
- }
- HTuple Min() const
- {
- return TupleMin();
- }
- HTuple Cumul() const
- {
- return TupleCumul();
- }
- HTuple SelectRank(const HTuple& RankIndex) const
- {
- return TupleSelectRank(RankIndex);
- }
- HTuple Median() const
- {
- return TupleMedian();
- }
- HTuple Sum() const
- {
- return TupleSum();
- }
- HTuple Mean() const
- {
- return TupleMean();
- }
- HTuple Deviation() const
- {
- return TupleDeviation();
- }
- HTuple Uniq() const
- {
- return TupleUniq();
- }
- HTuple Find(const HTuple& T2) const
- {
- return TupleFind(T2);
- }
- HTuple SortIndex() const
- {
- return TupleSortIndex();
- }
- HTuple Sort() const
- {
- return TupleSort();
- }
- HTuple Inverse() const
- {
- return TupleInverse();
- }
- HTuple Concat(const HTuple& T2) const
- {
- return TupleConcat(T2);
- }
- HTuple SelectRange(const HTuple& Leftindex, const HTuple& Rightindex) const
- {
- return TupleSelectRange(Leftindex, Rightindex);
- }
- HTuple LastN(const HTuple& Index) const
- {
- return TupleLastN(Index);
- }
- HTuple FirstN(const HTuple& Index) const
- {
- return TupleFirstN(Index);
- }
- HTuple Remove(const HTuple& Index) const
- {
- return TupleRemove(Index);
- }
- HTuple Select(const HTuple& Index) const
- {
- return TupleSelect(Index);
- }
- HTuple StrBitSelect(const HTuple& Index) const
- {
- return TupleStrBitSelect(Index);
- }
- HTuple Environment() const
- {
- return TupleEnvironment();
- }
- HTuple Split(const HTuple& T2) const
- {
- return TupleSplit(T2);
- }
- HTuple StrLastN(const HTuple& T2) const
- {
- return TupleStrLastN(T2);
- }
- HTuple StrFirstN(const HTuple& T2) const
- {
- return TupleStrFirstN(T2);
- }
- HTuple Strrchr(const HTuple& T2) const
- {
- return TupleStrrchr(T2);
- }
- HTuple Strchr(const HTuple& T2) const
- {
- return TupleStrchr(T2);
- }
- HTuple Strrstr(const HTuple& T2) const
- {
- return TupleStrrstr(T2);
- }
- HTuple Strstr(const HTuple& T2) const
- {
- return TupleStrstr(T2);
- }
- HTuple Strlen() const
- {
- return TupleStrlen();
- }
- HTuple LessEqual(const HTuple& T2) const
- {
- return TupleLessEqual(T2);
- }
- HTuple Less(const HTuple& T2) const
- {
- return TupleLess(T2);
- }
- HTuple GreaterEqual(const HTuple& T2) const
- {
- return TupleGreaterEqual(T2);
- }
- HTuple Greater(const HTuple& T2) const
- {
- return TupleGreater(T2);
- }
- HTuple NotEqual(const HTuple& T2) const
- {
- return TupleNotEqual(T2);
- }
- HTuple Equal(const HTuple& T2) const
- {
- return TupleEqual(T2);
- }
- HTuple Not() const
- {
- return TupleNot();
- }
- HTuple Xor(const HTuple& T2) const
- {
- return TupleXor(T2);
- }
- HTuple Or(const HTuple& T2) const
- {
- return TupleOr(T2);
- }
- HTuple And(const HTuple& T2) const
- {
- return TupleAnd(T2);
- }
- HTuple Bnot() const
- {
- return TupleBnot();
- }
- HTuple Bxor(const HTuple& T2) const
- {
- return TupleBxor(T2);
- }
- HTuple Bor(const HTuple& T2) const
- {
- return TupleBor(T2);
- }
- HTuple Band(const HTuple& T2) const
- {
- return TupleBand(T2);
- }
- HTuple Rsh(const HTuple& Shift) const
- {
- return TupleRsh(Shift);
- }
- HTuple Lsh(const HTuple& Shift) const
- {
- return TupleLsh(Shift);
- }
- HTuple Chrt() const
- {
- return TupleChrt();
- }
- HTuple Ords() const
- {
- return TupleOrds();
- }
- HTuple Chr() const
- {
- return TupleChr();
- }
- HTuple Ord() const
- {
- return TupleOrd();
- }
- HTuple String(const HTuple& Format) const
- {
- return TupleString(Format);
- }
- HTuple IsNumber() const
- {
- return TupleIsNumber();
- }
- HTuple Number() const
- {
- return TupleNumber();
- }
- HTuple Round() const
- {
- return TupleRound();
- }
- HTuple Int() const
- {
- return TupleInt();
- }
- HTuple Real() const
- {
- return TupleReal();
- }
- HTuple Ldexp(const HTuple& T2) const
- {
- return TupleLdexp(T2);
- }
- HTuple Fmod(const HTuple& T2) const
- {
- return TupleFmod(T2);
- }
- HTuple Mod(const HTuple& T2) const
- {
- return TupleMod(T2);
- }
- HTuple Ceil() const
- {
- return TupleCeil();
- }
- HTuple Floor() const
- {
- return TupleFloor();
- }
- HTuple Pow(const HTuple& T2) const
- {
- return TuplePow(T2);
- }
- HTuple Log10() const
- {
- return TupleLog10();
- }
- HTuple Log() const
- {
- return TupleLog();
- }
- HTuple Exp() const
- {
- return TupleExp();
- }
- HTuple Tanh() const
- {
- return TupleTanh();
- }
- HTuple Cosh() const
- {
- return TupleCosh();
- }
- HTuple Sinh() const
- {
- return TupleSinh();
- }
- HTuple Rad() const
- {
- return TupleRad();
- }
- HTuple Deg() const
- {
- return TupleDeg();
- }
- HTuple Atan2(const HTuple& X) const
- {
- return TupleAtan2(X);
- }
- HTuple Atan() const
- {
- return TupleAtan();
- }
- HTuple Acos() const
- {
- return TupleAcos();
- }
- HTuple Asin() const
- {
- return TupleAsin();
- }
- HTuple Tan() const
- {
- return TupleTan();
- }
- HTuple Cos() const
- {
- return TupleCos();
- }
- HTuple Sin() const
- {
- return TupleSin();
- }
- HTuple Fabs() const
- {
- return TupleFabs();
- }
- HTuple Sqrt() const
- {
- return TupleSqrt();
- }
- HTuple Abs() const
- {
- return TupleAbs();
- }
- HTuple Neg() const
- {
- return TupleNeg();
- }
- HTuple Div(const HTuple& Q2) const
- {
- return TupleDiv(Q2);
- }
- HTuple Mult(const HTuple& P2) const
- {
- return TupleMult(P2);
- }
- HTuple Sub(const HTuple& D2) const
- {
- return TupleSub(D2);
- }
- HTuple Add(const HTuple& S2) const
- {
- return TupleAdd(S2);
- }
- // Legacy operator overloads
- HTuple operator()(Hlong min, Hlong max) const
- {
- return TupleSelectRange(min, max);
- }
- HTuple operator()(const HTuple& min, const HTuple& max) const
- {
- return TupleSelectRange(min, max);
- }
|