__PIP_TYPENAME_DECLARE

This commit is contained in:
2026-08-11 22:55:59 +03:00
parent 5f222d6c0c
commit 8bf7738e8a
17 changed files with 148 additions and 41 deletions
+8
View File
@@ -210,4 +210,12 @@ typedef PILine<float> PILinef;
//! \~russian Псевдоним отрезка с координатами типа `double`.
typedef PILine<double> PILined;
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(PILined, "PILined")
__PIP_TYPENAME_DECLARE(PILinei, "PILinei")
__PIP_TYPENAME_DECLARE(PILinef, "PILinef")
__PIP_TYPENAME_DECLARE(PILineu, "PILineu")
#endif
#endif // PILINE_H
+7
View File
@@ -186,4 +186,11 @@ inline bool PIMathFloatNullCompare(const T v) {
return (abs(v) < float(1E-200));
}
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(complexf, "complexf")
__PIP_TYPENAME_DECLARE(complexd, "complexd")
__PIP_TYPENAME_DECLARE(complexld, "complexld")
#endif
#endif // PIMATHCOMPLEX_H
+6
View File
@@ -1652,6 +1652,12 @@ PIMathMatrix<complex<T>> hermitian(const PIMathMatrix<complex<T>> & m) {
return ret.transposed();
}
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(PIMathMatrixd, "PIMathMatrixd")
__PIP_TYPENAME_DECLARE(PIMathMatrixi, "PIMathMatrixi")
#endif
#undef PIMM_FOR
#undef PIMM_FOR_A
#undef PIMM_FOR_C
+6
View File
@@ -909,4 +909,10 @@ typedef PIMathVector<int> PIMathVectori;
//! \~russian Динамический вектор из \c double.
typedef PIMathVector<double> PIMathVectord;
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(PIMathVectord, "PIMathVectord")
__PIP_TYPENAME_DECLARE(PIMathVectori, "PIMathVectori")
#endif
#endif // PIMATHVECTOR_H
+8
View File
@@ -286,4 +286,12 @@ typedef PIPoint<float> PIPointf;
//! \~russian Псевдоним точки с координатами типа `double`.
typedef PIPoint<double> PIPointd;
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(PIPointd, "PIPointd")
__PIP_TYPENAME_DECLARE(PIPointi, "PIPointi")
__PIP_TYPENAME_DECLARE(PIPointf, "PIPointf")
__PIP_TYPENAME_DECLARE(PIPointu, "PIPointu")
#endif
#endif // PIPOINT_H
+9 -1
View File
@@ -5,7 +5,7 @@
//! \~russian Класс прямоугольника для 2D геометрии
/*
PIP - Platform Independent Primitives
Rect class for 2D geometry
Rect class for 2D geometry
Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru
This program is free software: you can redistribute it and/or modify
@@ -444,4 +444,12 @@ typedef PIRect<float> PIRectf;
//! \~russian Псевдоним прямоугольника с координатами типа `double`.
typedef PIRect<double> PIRectd;
#if !PIP_HAS_RTTI
__PIP_TYPENAME_DECLARE(PIRectd, "PIRectd")
__PIP_TYPENAME_DECLARE(PIRecti, "PIRecti")
__PIP_TYPENAME_DECLARE(PIRectf, "PIRectf")
__PIP_TYPENAME_DECLARE(PIRectu, "PIRectu")
#endif
#endif // PIRECT_H