Changeset 2863


Ignore:
Timestamp:
01/20/10 07:34:44 (15 years ago)
Author:
Mathieu Morlighem
Message:

removed all ostreams from Bamg

Location:
issm/trunk/src/c/Bamgx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/Mesh2.h

    r2861 r2863  
    99//From MeshIo
    1010#include <cstdio>
    11 #include <iostream>
    1211#include <cstring>
    1312#include <cstdlib>
     
    4039#ifdef RAND_MAX
    4140 const long HalfRandMax = RAND_MAX/2;
    42  return rand() <HalfRandMax;
     41 return rand() < HalfRandMax;
    4342#else
    4443 return rand() & 16384; // 2^14 (for sun because RAND_MAX is not def in stdlib.h)
  • issm/trunk/src/c/Bamgx/R2.h

    r2862 r2863  
    1 #include <iostream>
    2 
    31namespace bamg {
    42        template <class R,class RR> class P2xP2;
     
    2624        template <class R,class RR>
    2725          class P2xP2 { // x ligne 1 y ligne2
    28 
    29                   friend std::ostream& operator <<(std::ostream& f, const P2xP2<R,RR> & c)
    30                          { f << '[' << c.x << ',' << c.y << ']' <<std::flush ; return f; }
    3126
    3227                  friend P2<R,RR> operator*(P2<R,RR> c,P2xP2<R,RR> cc)
     
    8479          inline P2<R,RR> Orthogonal (const P2<R,RR> x) {
    8580                  return  P2<R,RR>(-x.y,x.x);}
    86 
    87         template <class R,class RR>
    88           inline  std::ostream& operator <<(std::ostream& f, const P2<R,RR> & c)
    89                  { f << '[' << c.x << ',' << c.y <<']' <<std::flush ; return f; }
    9081}
Note: See TracChangeset for help on using the changeset viewer.