#include <DeviceMode.h>
Public Types | |
enum | Initializer { load = 0, createNew = 1 } |
Public Member Functions | |
DeviceMode () | |
DeviceMode (Initializer i) | |
DeviceMode (DeviceMode const &mode) | |
void | operator= (DeviceMode const &mode) |
Public Attributes | |
bool | create: 1 |
bool | readOnly: 1 |
bool | temporary: 1 |
bool | direct: 1 |
bool | sequential: 1 |
Private Member Functions | |
void | init () |
void | init (DeviceMode const &mode) |
Definition at line 29 of file DeviceMode.h.
DeviceMode::DeviceMode | ( | ) | [inline, explicit] |
DeviceMode::DeviceMode | ( | Initializer | i | ) | [inline] |
DeviceMode::DeviceMode | ( | DeviceMode const & | mode | ) | [inline] |
void DeviceMode::operator= | ( | DeviceMode const & | mode | ) | [inline] |
void DeviceMode::init | ( | ) | [inline, private] |
Definition at line 61 of file DeviceMode.h.
00062 { 00063 create = 0; 00064 readOnly = 0; 00065 temporary = 0; 00066 direct = 0; 00067 sequential = 0; 00068 }
void DeviceMode::init | ( | DeviceMode const & | mode | ) | [inline, private] |
Definition at line 70 of file DeviceMode.h.
References create, direct, readOnly, sequential, and temporary.
00071 { 00072 create = mode.create; 00073 readOnly = mode.readOnly; 00074 temporary = mode.temporary; 00075 direct = mode.direct; 00076 sequential = mode.sequential; 00077 }
bool DeviceMode::create |
Definition at line 31 of file DeviceMode.h.
Referenced by Database::createDataSegment(), Database::createShadowLog(), Database::createTempSegment(), FileDevice::FileDevice(), init(), Database::init(), SegmentFactory::newTempDeviceSegment(), RandomAccessFileDeviceTest::openDevice(), CacheTestBase::openDevice(), Database::openSegments(), SnapshotSegmentTestBase::openSegmentStorage(), SegStorageTestBase::openSegmentStorage(), LinearViewSegmentTest::openSegmentStorage(), SparseBitmapTest::openStorage(), Database::readDeviceParams(), Database::recoverPhysical(), RandomAccessFileDeviceTest::testAsyncIOImpl(), RandomAccessFileDeviceTest::testDeviceCreation(), RandomAccessFileDeviceTest::testGrow(), and RandomAccessFileDeviceTest::testShrink().
bool DeviceMode::readOnly |
Definition at line 32 of file DeviceMode.h.
Referenced by FileDevice::FileDevice(), FileDevice::flush(), init(), and LogicalRecoveryLog::openLongLogStream().
Definition at line 33 of file DeviceMode.h.
Referenced by FileDevice::close(), FileDevice::FileDevice(), init(), RandomAccessFileDeviceTest::testAsyncIOImpl(), RandomAccessFileDeviceTest::testDeviceCreation(), RandomAccessFileDeviceTest::testGrow(), RandomAccessFileDeviceTest::testShrink(), and RandomAccessFileDeviceTest::testTemporary().
bool DeviceMode::direct |
Definition at line 34 of file DeviceMode.h.
Referenced by FileDevice::FileDevice(), init(), Database::openSegments(), SpillOutputStream::spill(), and RandomAccessFileDeviceTest::testPermanentDirect().