DeviceMode Struct Reference

#include <DeviceMode.h>

List of all members.

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)


Detailed Description

Definition at line 29 of file DeviceMode.h.


Member Enumeration Documentation

enum DeviceMode::Initializer

Enumerator:
load 
createNew 

Definition at line 37 of file DeviceMode.h.

00037 { load = 0, createNew = 1 };


Constructor & Destructor Documentation

DeviceMode::DeviceMode (  )  [inline, explicit]

Definition at line 39 of file DeviceMode.h.

00040     {
00041         init();
00042     }

DeviceMode::DeviceMode ( Initializer  i  )  [inline]

Definition at line 44 of file DeviceMode.h.

00045     {
00046         init();
00047         create = i;
00048     }

DeviceMode::DeviceMode ( DeviceMode const &  mode  )  [inline]

Definition at line 50 of file DeviceMode.h.

00051     {
00052         init(mode);
00053     }


Member Function Documentation

void DeviceMode::operator= ( DeviceMode const &  mode  )  [inline]

Definition at line 55 of file DeviceMode.h.

00056     {
00057         init(mode);
00058     }

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     }


Member Data Documentation

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().

bool DeviceMode::temporary

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().

bool DeviceMode::sequential

Definition at line 35 of file DeviceMode.h.

Referenced by FileDevice::FileDevice(), and init().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 22 04:00:29 2009 for Fennel by  doxygen 1.5.1