std::basic_stringbuf
提供: cppreference.com
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <sstream> | ||
template< class charT, | ||
std::basic_stringbuf
関連付けられた文字配列から初期化したり、std::basic_streambufのインスタンスとして利用可能にすることができる任意の文字のメモリ常駐型の配列であるstd::basic_stringです.Original:
std::basic_stringbuf
is a std::basic_streambuf whose associated character sequence is a memory-resident sequence of arbitrary characters, which can be initialized from or made available as an instance of std::basic_string.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
std::basic_stringbuf
の通常の実装では、すべての文字のソースをstd::basic_string直接データメンバとして型のオブジェクトを格納および管理された文字シーケンス(std::basic_streambufの6ポインタはを指している配列)としても、関連した文字列(としてそれを使用する入力操作と出力のターゲット)。さらに、典型的な実装では、ストリーム(入力専用、出力専用、または入力/出力)の状態を示すためにタイプstd::ios_base::openmodeのデータメンバを保持している.Original:
Typical implementations of
std::basic_stringbuf
hold an object of type std::basic_string directly as a data member and use it as both the controlled character sequence (the array where the six pointers of std::basic_streambuf are pointing to) and as the associated character sequence (the source of characters for all input operations and the target for the output). In addition, a typical implementation holds a data member of type std::ios_base::openmode to indicate the status of the stream (input-only, output-only, or input/output).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
一般的なキャラクタ·タイプの2つの専門分野も定義されています
Original:
Two specializations for common character types are also defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <sstream> | |
タイプ Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Definition |
stringbuf | basic_stringbuf<char> |
wstringbuf | basic_stringbuf<wchar_t> |
[編集]メンバータイプ
メンバー·タイプ Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Definition |
char_type | CharT |
traits_type | Traits |
int_type | Traits::int_type |
pos_type | Traits::pos_type |
off_type | Traits::off_type |
allocator_type | Allocator(C++11およびそれ以降) |
[編集]メンバ関数
Original: Public member functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
basic_stringbufオブジェクトを作成します Original: constructs a basic_stringbuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
(C++11) | assigns a basic_stringbuf object (パブリックメンバ関数) |
(C++11) | スワップ2 basic_stringbufオブジェクト Original: swaps two basic_stringbuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
(destructor) [仮想](暗黙的に宣言された) | destructs a basic_stringbuf object and the string it holds (仮想パブリックメンバ関数) |
置き換えるか、または関連付けられた文字列のコピーを取得します Original: replaces or obtains a copy of the associated character string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Protected member functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | 入力シーケンスで使用可能な次の文字を返します Original: returns the next character available in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[仮想] | 入力シーケンスに戻す文字を入れます Original: puts a character back into the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[仮想] | 出力シーケンスに追加した文字 Original: appends a character to the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[仮想] | 配列を使用して制御された文字シーケンスを置換しようとします Original: attempts to replace the controlled character sequence with an array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[仮想] | 相対アドレス指定を使用して再配置され、次回の入力シーケンス内のポインタ、出力シーケンス、またはその両方 Original: repositions the next pointer in the input sequence, output sequence, or both, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[仮想] | 再配置され、次回の入力シーケンス内のポインタ、出力シーケンス、または両方絶対アドレッシングを使用 Original: repositions the next pointer in the input sequence, output sequence, or both using absolute addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |
[編集]非メンバ関数
std::swapアルゴリズムを専門としています Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
Inherited from std::basic_streambuf
Member types
メンバー·タイプ Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Definition |
char_type | CharT |
traits_type | Traits |
int_type | Traits::int_type |
pos_type | Traits::pos_type |
off_type | Traits::off_type |
Member functions
[仮想] | basic_streambufオブジェクトを破棄します Original: destructs the basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想パブリックメンバ関数of std::basic_streambuf ) |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
imbue()を呼び出します Original: invokes imbue() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
関連付けられているロケールのコピーを取得します Original: obtains a copy of the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
setbuf()を呼び出します Original: invokes setbuf() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
seekoff()を呼び出します Original: invokes seekoff() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
seekpos()を呼び出します Original: invokes seekpos() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
sync()を呼び出します Original: invokes sync() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
get領域で直ちに利用可能な文字数を取得します Original: obtains the number of characters immediately available in the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
入力シーケンスの進歩は、再度前進することなく、1つの文字を読み取ります Original: advances the input sequence, then reads one character without advancing again The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
入力シーケンスと進歩系列から1文字を読み取ります Original: reads one character from the input sequence and advances the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
stossc (廃止予定) | sbumpc()を捨てる結果を呼び出したかのように進歩入力シーケンスを Original: advances the input sequence as if by calling sbumpc() and discarding the result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
シーケンスを進めずに、入力シーケンスの1文字を読み取ります Original: reads one character from the input sequence without advancing the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
xsgetn()を呼び出します Original: invokes xsgetn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
1文字は、次のポインタput領域と進歩への書き込みを行います Original: writes one character to the put area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
xsputn()を呼び出します Original: invokes xsputn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
入力シーケンスで1つ前の文字を入れます Original: puts one character back in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) | |
入力シーケンス内の次のポインタは1で戻ります Original: moves the next pointer in the input sequence back by one The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_streambuf ) |
Protected member functions
basic_streambufオブジェクトを作成します Original: constructs a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
(C++11) | basic_streambufオブジェクトを置き換えます Original: replaces a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) |
(C++11) | スワップ2 basic_streambufオブジェクト Original: swaps two basic_streambuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | 関連付けられているロケールを変更します Original: changes the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | 許可されている場合、ユーザー定義の配列でバッファを置き換えます Original: replaces the buffer with user-defined array, if permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | 相対アドレス指定を使用して再配置され、次回の入力シーケンス内のポインタ、出力シーケンス、またはその両方 Original: repositions the next pointer in the input sequence, output sequence, or both, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | 再配置され、次回の入力シーケンス内のポインタ、出力シーケンス、または両方絶対アドレッシングを使用 Original: repositions the next pointer in the input sequence, output sequence, or both using absolute addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | 関連文字シーケンスでバッファを同期させます Original: synchronizes the buffers with the associated character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | 判明している場合、関連する入力シーケンスの入力に使用できる文字の数を取得します Original: obtains the number of characters available for input in the associated input sequence, if known The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | get領域に関連付けられた入力シーケンスから文字列を読み取ります Original: reads characters from the associated input sequence to the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | get領域及び貸付次のポインタに関連付けられた入力シーケンスから文字列を読み取ります Original: reads characters from the associated input sequence to the get area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | 入力シーケンスから複数の文字を読み込みます Original: reads multiple characters from the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
初めに、現在の文字とget領域の終わりへのポインタを返します Original: returns a pointer to the beginning, current character and the end of the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
進歩入力シーケンス内の次のポインタ Original: advances the next pointer in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
入力シーケンスの再配置先頭、次、およびエンドポインタ Original: repositions the beginning, next, and end pointers of the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | writes multiple characters to the output sequence (仮想protectedメンバ関数of std::basic_streambuf ) |
[仮想] | put領域から関連する出力シーケンスに文字を書き込みます Original: writes characters to the associated output sequence from the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |
初めに、現在の文字とput領域の終わりへのポインタを返します Original: returns a pointer to the beginning, current character and the end of the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
進歩出力シーケンスの次のポインタ Original: advances the next pointer of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
出力シーケンスの再配置先頭、次、およびエンドポインタ Original: repositions the beginning, next, and end pointers of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバー関数) | |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[仮想] | おそらく入力シーケンスを変更して、入力シーケンスに戻す文字を入れます Original: puts a character back into the input sequence, possibly modifying the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf ) |