/usr/share/gccxml-0.9/MIPSpro/7.3/iomanip is in gccxml 0.9.0+cvs20111013-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | /*
* Copyright (c) 1998
* Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. Silicon Graphics makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied warranty.
*/
#ifndef __SGI_STL_IOMANIP
#define __SGI_STL_IOMANIP
#if defined(__sgi) && !defined(__GNUC__) && !defined(_STANDARD_C_PLUS_PLUS)
#error This header file requires the -LANG:std option
#endif
#include <istream> // Includes <ostream> and <ios>
__STL_BEGIN_NAMESPACE
//----------------------------------------------------------------------
// Machinery for defining manipulators.
// Class that calls one of ios_base's single-argument member functions.
template <class _Arg>
struct _Ios_Manip_1 {
_Ios_Manip_1(_Arg (ios_base::*__f)(_Arg), const _Arg& __arg)
: _M_f(__f), _M_arg(__arg)
{}
void operator()(ios_base& __ios) const {
(__ios.*_M_f)(_M_arg);
}
_Arg (ios_base::*_M_f)(_Arg);
_Arg _M_arg;
};
// Class that calls one of ios_base's two-argument member functions.
struct _Ios_Setf_Manip {
ios_base::fmtflags _M_flag;
ios_base::fmtflags _M_mask;
bool _M_two_args;
_Ios_Setf_Manip(ios_base::fmtflags __f)
: _M_flag(__f), _M_mask(0), _M_two_args(false)
{}
_Ios_Setf_Manip(ios_base::fmtflags __f, ios_base::fmtflags __m)
: _M_flag(__f), _M_mask(__m), _M_two_args(true)
{}
void operator()(ios_base& __ios) const {
if (_M_two_args)
__ios.setf(_M_flag, _M_mask);
else
__ios.setf(_M_flag);
}
};
template <class _CharT, class _Traits, class _Arg>
inline basic_istream<_CharT, _Traits>&
operator>>(basic_istream<_CharT, _Traits>& __in,
const _Ios_Manip_1<_Arg>& __f)
{
__f(__in);
return __in;
}
template <class _CharT, class _Traits, class _Arg>
inline basic_ostream<_CharT, _Traits>&
operator<<(basic_ostream<_CharT, _Traits>& __os,
const _Ios_Manip_1<_Arg>& __f)
{
__f(__os);
return __os;
}
template <class _CharT, class _Traits>
inline basic_istream<_CharT, _Traits>&
operator>>(basic_istream<_CharT, _Traits>& __in, const _Ios_Setf_Manip& __f)
{
__f(__in);
return __in;
}
template <class _CharT, class _Traits>
inline basic_ostream<_CharT, _Traits>&
operator<<(basic_ostream<_CharT, _Traits>& __os, const _Ios_Setf_Manip& __f)
{
__f(__os);
return __os;
}
//----------------------------------------------------------------------
// The ios_base manipulators.
inline _Ios_Setf_Manip resetiosflags(ios_base::fmtflags __mask) {
return _Ios_Setf_Manip(0, __mask);
}
inline _Ios_Setf_Manip setiosflags(ios_base::fmtflags __flag) {
return _Ios_Setf_Manip(__flag);
}
inline _Ios_Setf_Manip setbase(int __n) {
ios_base::fmtflags __base = __n == 8 ? ios_base::oct :
__n == 10 ? ios_base::dec :
__n == 16 ? ios_base::hex :
ios_base::fmtflags(0);
return _Ios_Setf_Manip(__base, ios_base::basefield);
}
inline _Ios_Manip_1<streamsize>
setprecision(int __n) {
return _Ios_Manip_1<streamsize>(&ios_base::precision, __n);
}
inline _Ios_Manip_1<streamsize>
setw(int __n) {
return _Ios_Manip_1<streamsize>(&ios_base::width, __n);
}
//----------------------------------------------------------------------
// setfill, a manipulator that operates on basic_ios<> instead of ios_base.
template <class _CharT>
struct _Setfill_Manip {
_Setfill_Manip(_CharT __c) : _M_c(__c) {}
_CharT _M_c;
};
template <class _CharT, class _CharT2, class _Traits>
inline basic_ostream<_CharT, _Traits>&
operator<<(basic_ostream<_CharT, _Traits>& __os,
const _Setfill_Manip<_CharT2>& __m)
{
__os.fill(__m._M_c);
return __os;
}
template <class _CharT>
inline _Setfill_Manip<_CharT>
setfill(_CharT __c) {
return _Setfill_Manip<_CharT>(__c);
}
__STL_END_NAMESPACE
#endif /* __SGI_STL_IOMANIP */
// Local Variables:
// mode:C++
// End:
|