#include <ostream.hpp>
输出流
Definition at line 41 of file ostream.hpp.
◆ mode_t
输出流模式枚举
Enumerator |
---|
x | 16 进制 x
|
X | 16 进制 X
|
d | 10 进制 d
|
Definition at line 101 of file ostream.hpp.
◆ ostream() [1/3]
◆ ~ostream()
◆ ostream() [2/3]
ostream::ostream |
( |
const ostream & |
| ) |
|
|
delete |
◆ ostream() [3/3]
◆ endl()
输出换行
- Parameters
-
- Returns
- 输出流
Definition at line 42 of file ostream.cpp.
42 {
return _ostream << L
'\n'; }
◆ hex_x()
输出 16 进制
- Parameters
-
- Returns
- 输出流
Definition at line 32 of file ostream.cpp.
◆ hex_X()
输出 16 进制
- Parameters
-
- Returns
- 输出流
Definition at line 37 of file ostream.cpp.
◆ operator<<() [1/10]
template<class _t >
auto ostream::operator<< |
( |
_t |
_val | ) |
-> ostream & |
|
inline |
输出类型
- Template Parameters
-
- Parameters
-
- Returns
- 输出流
Definition at line 116 of file ostream.hpp.
117 *
this << (uint64_t)_val;
◆ operator<<() [2/10]
template<>
auto ostream::operator<< |
( |
const void * |
_val | ) |
-> ostream & |
|
inline |
Definition at line 186 of file ostream.hpp.
187 *this << reinterpret_cast<uint64_t>(_val);
◆ operator<<() [3/10]
template<>
auto ostream::operator<< |
( |
const wchar_t * |
_val | ) |
-> ostream & |
|
inline |
◆ operator<<() [4/10]
template<>
auto ostream::operator<< |
( |
int32_t |
_val | ) |
-> ostream & |
|
inline |
Definition at line 121 of file ostream.hpp.
124 }
else if (
mode ==
x) {
125 Print(L
"0x%x", _val);
126 }
else if (
mode ==
X) {
127 Print(L
"0x%X", _val);
◆ operator<<() [5/10]
template<>
auto ostream::operator<< |
( |
int64_t |
_val | ) |
-> ostream & |
|
inline |
Definition at line 145 of file ostream.hpp.
148 }
else if (
mode ==
x) {
149 Print(L
"0x%x", _val);
150 }
else if (
mode ==
X) {
151 Print(L
"0x%X", _val);
◆ operator<<() [6/10]
‘<<’ 操作符重载
- Parameters
-
- Returns
- 输出流
Definition at line 28 of file ostream.cpp.
29 return _ostream(*
this);
◆ operator<<() [7/10]
template<>
auto ostream::operator<< |
( |
uint32_t |
_val | ) |
-> ostream & |
|
inline |
Definition at line 133 of file ostream.hpp.
136 }
else if (
mode ==
x) {
137 Print(L
"0x%x", _val);
138 }
else if (
mode ==
X) {
139 Print(L
"0x%X", _val);
◆ operator<<() [8/10]
template<>
auto ostream::operator<< |
( |
uint64_t |
_val | ) |
-> ostream & |
|
inline |
Definition at line 157 of file ostream.hpp.
160 }
else if (
mode ==
x) {
161 Print(L
"0x%x", _val);
162 }
else if (
mode ==
X) {
163 Print(L
"0x%X", _val);
◆ operator<<() [9/10]
template<>
auto ostream::operator<< |
( |
void * |
_val | ) |
-> ostream & |
|
inline |
Definition at line 181 of file ostream.hpp.
182 *this << reinterpret_cast<uint64_t>(_val);
◆ operator<<() [10/10]
template<>
auto ostream::operator<< |
( |
wchar_t |
_val | ) |
-> ostream & |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ mode
The documentation for this class was generated from the following files:
- /home/runner/work/SimpleKernel/SimpleKernel/src/boot/include/ostream.hpp
- /home/runner/work/SimpleKernel/SimpleKernel/src/boot/ostream.cpp