1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030895: Coding Rules - specify std namespace explicitly for std::cout and streams

"endl" manipulator for Message_Messenger is renamed to "Message_EndLine".

The following entities from std namespace are now used
with std:: explicitly specified (from Standard_Stream.hxx):
std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream,
std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr,
std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision,
std::hex,std::dec.
This commit is contained in:
tiv
2019-08-02 10:32:16 +03:00
committed by bugmaster
parent 3977d18aca
commit 0423218095
972 changed files with 8554 additions and 8550 deletions

View File

@@ -207,7 +207,7 @@ Standard_Boolean FEmTool_Assembly::Solve()
#ifdef OCCT_DEBUG
if (!IsSolved) {
cout << "Solve Echec H = " << endl;
std::cout << "Solve Echec H = " << std::endl;
H->OutM();
}
#endif
@@ -289,7 +289,7 @@ Standard_Boolean FEmTool_Assembly::Solve()
}
//-----------------------------------------------------------------------
// for(i = FirstIndexes.Lower(); i <= FirstIndexes.Upper(); i++)
// cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << endl;
// std::cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << std::endl;
// FirstIndexes.Init(1); // temporary GHGt is full matrix
GHGt = new FEmTool_ProfileMatrix(FirstIndexes);
}

View File

@@ -254,32 +254,32 @@ Standard_Boolean FEmTool_ProfileMatrix::IsInProfile(const Standard_Integer i,
void FEmTool_ProfileMatrix::OutM() const
{
Standard_Integer i, j;
cout<<"Matrix A"<<endl;
std::cout<<"Matrix A"<<std::endl;
for(i = 1; i <= RowNumber(); i++) {
for(j = 1; j < i - profile(1, i); j++)
cout<<"0 ";
std::cout<<"0 ";
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
cout<<ProfileMatrix->Value(j)<<" ";
cout<<endl;
std::cout<<ProfileMatrix->Value(j)<<" ";
std::cout<<std::endl;
}
cout<<"NextCoeff"<<endl;
std::cout<<"NextCoeff"<<std::endl;
for(i = 1; i <= profile(2, RowNumber()); i++)
cout<<NextCoeff->Value(i)<<" ";
cout<<endl;
std::cout<<NextCoeff->Value(i)<<" ";
std::cout<<std::endl;
}
void FEmTool_ProfileMatrix::OutS() const
{
Standard_Integer i, j;
cout<<"Matrix S"<<endl;
std::cout<<"Matrix S"<<std::endl;
for(i = 1; i <= RowNumber(); i++) {
for(j = 1; j < i - profile(1, i); j++)
cout<<"0 ";
std::cout<<"0 ";
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
cout<<SMatrix->Value(j)<<" ";
cout<<endl;
std::cout<<SMatrix->Value(j)<<" ";
std::cout<<std::endl;
}
}