mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024547: Convertation of the generic classes to the non-generic (math).
- class "math_DoubleTab" was converted to the non-generic class. Some changes were made in the class "math_Matrix". And some stylish changes were made. - class "math_SingleTab" was converted to the non-generic template class. And classes "math_Vector" and "math_IntegerVector" converted to the non-cdl, because they use template class "math_Vector". Some stylish changes were made.
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
#include <math_Memory.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
|
||||
inline Item& math_DoubleTab::Value (const Standard_Integer RowIndex,
|
||||
inline Standard_Real& math_DoubleTab::Value (const Standard_Integer RowIndex,
|
||||
const Standard_Integer ColIndex) const
|
||||
{
|
||||
return ((Item**)Addr)[RowIndex][ColIndex];
|
||||
return ((Standard_Real**)Addr)[RowIndex][ColIndex];
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ inline void math_DoubleTab::Copy(math_DoubleTab& Other)const
|
||||
{
|
||||
memmove((void*)(& Other.Value(Other.LowR,Other.LowC)),
|
||||
(void*) (& Value(LowR,LowC)),
|
||||
(int)((UppR - LowR + 1) * (UppC - LowC + 1) * sizeof(Item)));
|
||||
(int)((UppR - LowR + 1) * (UppC - LowC + 1) * sizeof(Standard_Real)));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user