std::basic_ifstream
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| ヘッダ <fstream> で定義
|
||
| template< class CharT, |
||
クラステンプレート
basic_ifstreamは、ファイルベースのストリームに関するハイレベル入力操作を実装します。それはの高レベルインタフェース(std::basic_filebuf)でファイルベースのストリームバッファを(std::basic_istream)インタフェース.Original:
The class template
basic_ifstream implements high-level input operations on file based streams. It interfaces a file-based streambuffer (std::basic_filebuf) with the high-level interface of (std::basic_istream).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_ifstreamの典型的な実装は、1つの非派生データメンバが入り:std::basic_filebuf<CharT, Traits>のインスタンスを.Original:
A typical implementation of
std::basic_ifstream holds only one non-derived data member: an instance of std::basic_filebuf<CharT, Traits>.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.
| ヘッダ
<fstream> で定義 | |
| タイプ
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 |
ifstream
|
basic_ifstream<char> |
wifstream
|
basic_ifstream<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 |
[編集] メンバ関数
| ファイルストリームを構築します Original: constructs the file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| デストラクタ [仮想] (暗黙的に宣言) |
destructs the basic_ifstream and the associated buffer, closes the file (仮想パブリックメンバ関数) |
| (C++11) |
ファイルストリームを移動します Original: moves the file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
| (C++11) |
スワップ2ファイルストリーム Original: swaps two file streams The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
| 基本となるRAWファイル·デバイス·オブジェクトを返します Original: returns the underlying raw file device object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: File operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| ストリームに関連付けられたファイルがあるかチェックします (パブリックメンバ関数) | |
| ストリームとファイルと関連付け、それを開きます Original: opens a file and associates it with the stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| 関連付けられているファイルを閉じます Original: closes the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
[編集] 非メンバ関数
| std::swap アルゴリズムの特殊化 (関数テンプレート) |
std::basic_istream から継承
Member functions
Original: Formatted input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 抽出は、データをフォーマットします Original: extracts formatted data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
Original: Unformatted input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 文字を抽出します Original: extracts characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 文字を抽出せずに読み込みます Original: reads the next character without extracting it The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 文字の抽出を取り消します Original: unextracts a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 入力ストリームに文字を入れます Original: puts character into input stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 指定された文字が発見されるまで文字を抽出します Original: extracts characters until the given character is found The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 指定された文字が発見されるまで文字を抽出して破棄します Original: extracts and discards characters until the given character is found The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 文字のブロックを抽出します Original: extracts blocks of characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 文字の既に利用可能なブロックを抽出します Original: extracts already available blocks of characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| 最後の未フォーマットの入力操作によって抽出された文字の数を返します Original: returns number of characters extracted by last unformatted input operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
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: returns the input position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
| sets the input position indicator ( std::basic_istreamのパブリックメンバ関数)
| |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 基本となるストレージデバイスとの同期を行います Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_istreamのパブリックメンバ関数)
| |
Member classes
| implements basic logic for preparation of the stream for input operations ( std::basic_istreamのpublicメンバクラス)
|
std::basic_ios から継承
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 |
Original: State functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| I / O操作が使用可能である、すなわちエラーがない場合のチェックが発生しました Original: checks if no error has occurred i.e. I/O operations are available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| ファイルの終わりに達したかどうかをチェックします Original: checks if end-of-file has been reached The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 回復可能なエラーかどうかをチェックしますが発生しました Original: checks if a recoverable error has occurred The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 回復不能なエラーが発生するかどうかをチェックするには、発生しました Original: checks if a non-recoverable error has occurred The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| エラーかどうかをチェックするには(fail()の同義語)が発生しました Original: checks if an error has occurred (synonym of fail()) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| (C++11以前)(C++11およびそれ以降) |
チェックエラーが発生していない場合(の同義語!fail()) Original: checks if no error has occurred (synonym of !fail()) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
|
| 状態フラグを返します Original: returns state flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 状態フラグを設定します Original: sets state flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| エラーとEOFフラグをクリアします Original: clears error and eof flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
Original: Formatting The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| コピーは、情報をフォーマットします Original: copies formatting information The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 埋め込み文字を管理します Original: manages the fill character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 例外マスクを管理します Original: manages exception mask The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| ロケールを設定します Original: sets the locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 関連付けられているストリームバッファを管理します Original: manages associated stream buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 縛らストリームを管理します Original: manages tied stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| 文字を狭める Original: narrows characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::basic_iosのパブリックメンバ関数)
| |
| widens characters ( std::basic_iosのパブリックメンバ関数)
| |
std::ios_base から継承
Member functions
Original: Formatting The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 書式フラグを管理します Original: manages format flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
| 特定の形式のフラグを設定します Original: sets specific format flag The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
| clears specific format flag ( std::ios_baseのパブリックメンバ関数)
| |
| 浮動小数点演算の小数点以下の桁数を管理しています Original: manages decimal precision of floating point operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
| manages field width ( std::ios_baseのパブリックメンバ関数)
| |
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: sets locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
| 現在のロケールを返します Original: returns current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
Original: Internal extensible array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| [static] |
pword()とiword()へのインデックスとして使用するのは安全ではプログラム全体で一意の整数を返します Original: returns a program-wide unique integer that is safe to use as index to pword() and iword() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリック静的メンバ関数)
|
| プライベートストレージは、指定されたインデックスで、必要に応じてとlong要素へのアクセスサイズを変更します Original: resizes the private storage if necessary and access to the long element at the given index The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
| プライベートストレージは、指定されたインデックスで、必要に応じてとvoid*要素へのアクセスサイズを変更します Original: resizes the private storage if necessary and access to the void* element at the given index The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリックメンバ関数)
| |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| registers event callback function ( std::ios_baseのパブリックメンバ関数)
| |
| [static] |
C + +とCのIOライブラリが相互運用可能であるかどうかを設定します Original: sets whether C++ and C IO libraries are interoperable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのパブリック静的メンバ関数)
|
Original: Member classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| ストリーム例外 Original: stream exception The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのpublicメンバクラス)
| |
| 標準ストリームオブジェクトを初期化します Original: initializes standard stream objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. ( std::ios_baseのpublicメンバクラス)
| |
Original: Member types and constants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| タイプ
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ストリームのオープンモードの種類
次の定数は定義されています:
Original: stream open mode type
The following constants 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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 書式化フラグのタイプ
次の定数は定義されています:
Original: formatting flags type
The following constants 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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ストリーム型の状態
次の定数は定義されています:
Original: state of the stream type
The following constants 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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seeking direction type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| イベントの種類を指定します Original: specifies event type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (列挙) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 関数型バック Original: callback function type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


