An istream that remembers some data about the bytecode. More...
#include <Bytecode.h>
Inherits std::ifstream.
Public Member Functions | |
bytecodeistream (string filename) | |
bool | isVersion (int major, int minor, int revision) |
bool | isVersionAtMost (int major, int minor, int revision) |
int | major () const |
int | minor () const |
int | release () const |
Private Attributes | |
int | m_major |
int | m_minor |
int | m_release |
An istream that remembers some data about the bytecode.
bytecodeistream::bytecodeistream | ( | string | filename | ) |
bool bytecodeistream::isVersion | ( | int | major, | |
int | minor, | |||
int | revision | |||
) |
References m_major, m_minor, and m_release.
Referenced by YECall::readCall(), Bytecode::readCode(), and Bytecode::readFile().
bool bytecodeistream::isVersionAtMost | ( | int | major, | |
int | minor, | |||
int | revision | |||
) |
int bytecodeistream::major | ( | ) | const [inline] |
References m_major.
Referenced by Bytecode::readFile().
int bytecodeistream::minor | ( | ) | const [inline] |
References m_minor.
Referenced by Bytecode::readFile().
int bytecodeistream::release | ( | ) | const [inline] |
References m_release.
Referenced by Bytecode::readFile().
int bytecodeistream::m_major [private] |
Referenced by bytecodeistream(), isVersion(), isVersionAtMost(), and major().
int bytecodeistream::m_minor [private] |
Referenced by bytecodeistream(), isVersion(), isVersionAtMost(), and minor().
int bytecodeistream::m_release [private] |
Referenced by bytecodeistream(), isVersion(), isVersionAtMost(), and release().