source: XIOS/dev/branch_openmp/src/indent.hpp @ 1331

Last change on this file since 1331 was 1331, checked in by yushan, 6 years ago

dev_omp

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 735 bytes
RevLine 
[313]1#ifndef __XIOS_INDENT_HPP__
2#define __XIOS_INDENT_HPP__
[219]3
[313]4#include <ostream>
[219]5
[335]6namespace xios
[219]7{
[313]8  class Cindent 
9  {
10    public:
11    static int defaultIncSize;
[1331]12    #pragma omp threadprivate(defaultIncSize)
[313]13    static int index ;
[1331]14    #pragma omp threadprivate(index)
[313]15    int incSize ;
16    int offset ;
17    bool reset ;
18    public :
[219]19
[313]20    Cindent(int i=0, bool r=false) ;
21    Cindent operator++(int) ;
22    Cindent operator--(int) ;
23    Cindent operator++() ;
24    Cindent operator--() ;
25    Cindent operator+=(int n) ;
26    Cindent operator-=(int n) ;
27    std::ostream& iendl(std::ostream& o) const ;
28  };
29 
30  std::ostream& operator <<(std::ostream& o, const Cindent& indent) ;
[219]31
[313]32  extern Cindent iendl;
33  extern Cindent ireset;
[219]34
[313]35} 
36#endif
Note: See TracBrowser for help on using the repository browser.