Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rémi Cailletaud
yade
Commits
719d790f
Commit
719d790f
authored
Jul 02, 2014
by
Anton Gladky
Browse files
Remove most of "using namespace std;"
parent
5786e832
Changes
44
Hide whitespace changes
Inline
Side-by-side
lib/factory/DynLibManager.cpp
View file @
719d790f
...
...
@@ -9,7 +9,6 @@
#include "DynLibManager.hpp"
#include<fstream>
#include<stdexcept>
#include<boost/filesystem/operations.hpp>
...
...
@@ -18,9 +17,6 @@
#include "ClassFactory.hpp"
//using namespace std;
CREATE_LOGGER
(
DynLibManager
);
...
...
lib/import/STLReader.hpp
View file @
719d790f
...
...
@@ -14,8 +14,6 @@
#include <cmath>
#include "utils.hpp"
using
namespace
std
;
class
STLReader
{
public:
...
...
lib/import/utils.hpp
View file @
719d790f
#pragma once
#include<utility>
using
namespace
std
;
template
<
class
T
>
pair
<
T
,
T
>
minmax
(
const
T
&
a
,
const
T
&
b
)
std
::
pair
<
T
,
T
>
minmax
(
const
T
&
a
,
const
T
&
b
)
{
return
(
a
<
b
)
?
pair
<
T
,
T
>
(
a
,
b
)
:
pair
<
T
,
T
>
(
b
,
a
);
return
(
a
<
b
)
?
std
::
pair
<
T
,
T
>
(
a
,
b
)
:
std
::
pair
<
T
,
T
>
(
b
,
a
);
}
template
<
class
T
>
...
...
lib/multimethods/DynLibDispatcher.hpp
View file @
719d790f
...
...
@@ -35,9 +35,6 @@
#include<string>
#include<ostream>
using
namespace
std
;
struct
DynLibDispatcher_Item2D
{
int
ix1
,
ix2
;
std
::
string
functorName
;
DynLibDispatcher_Item2D
(
int
a
,
int
b
,
std
::
string
c
)
:
ix1
(
a
),
ix2
(
b
),
functorName
(
c
){};
};
struct
DynLibDispatcher_Item1D
{
int
ix1
;
std
::
string
functorName
;
DynLibDispatcher_Item1D
(
int
a
,
std
::
string
c
)
:
ix1
(
a
),
functorName
(
c
){};
};
///
...
...
lib/smoothing/WeightedAverage2d.hpp
View file @
719d790f
...
...
@@ -15,6 +15,11 @@
#include<boost/python/object.hpp>
#include<boost/version.hpp>
#include<boost/math/distributions/normal.hpp>
#include<yade/lib/base/Math.hpp>
#ifndef FOREACH
#define FOREACH BOOST_FOREACH
#endif
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include<boost/shared_ptr.hpp>
...
...
@@ -24,13 +29,8 @@
using
std
::
shared_ptr
;
#endif
#ifndef FOREACH
#define FOREACH BOOST_FOREACH
#endif
using
namespace
std
;
#include<yade/lib/base/Math.hpp>
using
std
::
vector
;
using
std
::
string
;
template
<
typename
T
>
struct
GridContainer
{
...
...
lib/triangulation/FlowBoundingSphere.hpp
View file @
719d790f
...
...
@@ -17,7 +17,6 @@
typedef
pair
<
pair
<
int
,
int
>
,
vector
<
double
>
>
Constriction
;
using
namespace
std
;
namespace
CGT
{
template
<
class
_Tesselation
>
...
...
lib/triangulation/FlowBoundingSphere.ipp
View file @
719d790f
...
...
@@ -31,8 +31,6 @@
// #define USE_FAST_MATH 1
using namespace std;
namespace CGT
{
...
...
lib/triangulation/FlowBoundingSphereLinSolv.hpp
View file @
719d790f
...
...
@@ -30,8 +30,6 @@ extern "C" {
///_____ Declaration ____
using
namespace
std
;
namespace
CGT
{
template
<
class
_Tesselation
,
class
FlowType
=
FlowBoundingSphere
<
_Tesselation
>
>
...
...
lib/triangulation/FlowBoundingSphereLinSolv.ipp
View file @
719d790f
...
...
@@ -39,8 +39,6 @@ extern "C" { void openblas_set_num_threads(int num_threads); }
namespace CGT
{
using namespace std;
#ifdef PARDISO
#ifdef AIX
#define F77_FUNC(func) func
...
...
@@ -989,4 +987,4 @@ double t4 = taucs_ctime();
} //namespace CGT
#endif //FLOW_ENGINE
\ No newline at end of file
#endif //FLOW_ENGINE
lib/triangulation/KinematicLocalisationAnalyser.hpp
View file @
719d790f
...
...
@@ -16,6 +16,10 @@
#include "Tenseur3.h"
namespace
CGT
{
using
std
::
pair
;
using
std
::
ofstream
;
#define SPHERE_DISCRETISATION 20; //number of "teta" intervals on the unit sphere
#define LINEAR_DISCRETISATION 200; //number of intervals on segments like [UNmin,UNmax]
...
...
lib/triangulation/Network.ipp
View file @
719d790f
...
...
@@ -14,8 +14,6 @@
#define FAST
using namespace std;
namespace CGT {
// template<class Tesselation> const double Network<Tesselation>::FAR = 50000;
...
...
lib/triangulation/PeriodicFlowLinSolv.hpp
View file @
719d790f
...
...
@@ -11,8 +11,6 @@
#ifdef FLOW_ENGINE
using
namespace
std
;
namespace
CGT
{
template
<
class
_Tesselation
>
...
...
lib/triangulation/PeriodicFlowLinSolv.ipp
View file @
719d790f
...
...
@@ -24,8 +24,6 @@
namespace CGT
{
using namespace std;
#ifdef PARDISO
#ifdef AIX
#define F77_FUNC(func) func
...
...
@@ -251,4 +249,4 @@ int PeriodicFlowLinSolv<_Tesselation>::setLinearSystemFullGS(Real dt)
} //namespace CGT
#endif //FLOW_ENGINE
\ No newline at end of file
#endif //FLOW_ENGINE
lib/triangulation/Tenseur3.cpp
View file @
719d790f
#include "Tenseur3.h"
#include "RegularTriangulation.h"
using
namespace
std
;
namespace
CGT
{
Real
Tens
::
Norme2
(
void
)
...
...
lib/triangulation/Tenseur3.h
View file @
719d790f
...
...
@@ -6,6 +6,11 @@
namespace
CGT
{
using
std
::
endl
;
using
std
::
cout
;
using
std
::
cerr
;
using
std
::
string
;
#define NORMALIZE(vecteur) ((vecteur) = (vecteur)*(1.0/sqrt(pow((vecteur)[0],2)+pow((vecteur)[1],2)+pow((vecteur)[2],2))))
class
Tens
;
...
...
lib/triangulation/Tesselation.ipp
View file @
719d790f
...
...
@@ -6,13 +6,18 @@
* GNU General Public License v2 or later. See file LICENSE for details. *
*************************************************************************/
using namespace std;
//FIXME: handle that a better way
#define MAX_ID 200000
namespace CGT {
using std::cerr;
using std::cout;
using std::endl;
using std::max;
using std::vector;
using std::ifstream;
template<class TT>
_Tesselation<TT>::_Tesselation ( void )
{
...
...
@@ -322,4 +327,4 @@ bool PeriodicTesselation<Tesselation>::redirect ( void )
return true;
}
} //namespace CGT
\ No newline at end of file
} //namespace CGT
lib/triangulation/Timer.cpp
View file @
719d790f
#include <string.h>
#include "Timer.h"
using
namespace
std
;
Real_timer
::
Real_timer
()
:
T1
(
0
),
T2
(
0
),
elapsed
(
0.0
),
started
(
0.0
),
interv
(
0
),
running
(
true
)
{
T1
=
clock
();
...
...
lib/triangulation/Timer.h
View file @
719d790f
...
...
@@ -4,6 +4,8 @@
#include <iostream>
#include <time.h>
using
std
::
string
;
// SECTION: A Timer Measuring Real-Time
// ========================================================================
//
...
...
lib/triangulation/TriaxialState.h
View file @
719d790f
...
...
@@ -21,7 +21,9 @@
*/
namespace
CGT
{
using
namespace
std
;
using
std
::
string
;
using
std
::
min
;
class
TriaxialState
{
...
...
lib/triangulation/basicVTKwritter.cpp
View file @
719d790f
#include "basicVTKwritter.hpp"
using
namespace
std
;
bool
basicVTKwritter
::
open
(
const
char
*
filename
,
const
char
*
comment
)
{
file
.
open
(
filename
,
ios_base
::
out
);
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment