#include <transaction.h>

Classes | |
| struct | Operation |
Public Member Functions | |
| Transaction (Rom &rom) | |
| Transaction & | WriteByte (int address, uint8_t value) |
| Transaction & | WriteWord (int address, uint16_t value) |
| Transaction & | WriteLong (int address, uint32_t value) |
| Transaction & | WriteVector (int address, const std::vector< uint8_t > &data) |
| Transaction & | WriteColor (int address, const gfx::SnesColor &color) |
| absl::Status | Commit () |
| void | Rollback () |
Private Types | |
| enum class | OperationType { kWriteByte , kWriteWord , kWriteLong , kWriteVector , kWriteColor } |
Private Attributes | |
| Rom & | rom_ |
| absl::Status | status_ |
| std::vector< Operation > | operations_ |
Definition at line 22 of file transaction.h.
|
strongprivate |
| Enumerator | |
|---|---|
| kWriteByte | |
| kWriteWord | |
| kWriteLong | |
| kWriteVector | |
| kWriteColor | |
Definition at line 129 of file transaction.h.
|
inlineexplicit |
Definition at line 24 of file transaction.h.
|
inline |
Definition at line 26 of file transaction.h.
References kWriteByte, operations_, yaze::Rom::ReadByte(), rom_, status_, and yaze::Rom::WriteByte().
Referenced by yaze::test::E2ETestSuite::RunTransactionSystemTest(), and yaze::test::TEST_F().

|
inline |
Definition at line 40 of file transaction.h.
References kWriteWord, operations_, yaze::Rom::ReadWord(), rom_, status_, and yaze::Rom::WriteWord().
Referenced by yaze::test::E2ETestSuite::RunTransactionSystemTest(), and yaze::test::TEST_F().

|
inline |
Definition at line 54 of file transaction.h.
References kWriteLong, operations_, yaze::Rom::ReadLong(), rom_, status_, and yaze::Rom::WriteLong().

|
inline |
Definition at line 68 of file transaction.h.
References kWriteVector, operations_, yaze::Rom::ReadByteVector(), rom_, status_, and yaze::Rom::WriteVector().

|
inline |
Definition at line 82 of file transaction.h.
References kWriteColor, operations_, yaze::Rom::ReadWord(), rom_, status_, and yaze::Rom::WriteColor().

|
inline |
Definition at line 97 of file transaction.h.
References Rollback(), and status_.
Referenced by yaze::test::E2ETestSuite::RunTransactionSystemTest(), and yaze::test::TEST_F().

|
inline |
Definition at line 104 of file transaction.h.
References kWriteByte, kWriteColor, kWriteLong, kWriteVector, kWriteWord, operations_, rom_, yaze::Rom::WriteByte(), yaze::Rom::WriteLong(), yaze::Rom::WriteVector(), and yaze::Rom::WriteWord().
Referenced by Commit().

|
private |
Definition at line 137 of file transaction.h.
Referenced by Rollback(), WriteByte(), WriteColor(), WriteLong(), WriteVector(), and WriteWord().
|
private |
Definition at line 138 of file transaction.h.
Referenced by Commit(), WriteByte(), WriteColor(), WriteLong(), WriteVector(), and WriteWord().
|
private |
Definition at line 139 of file transaction.h.
Referenced by Rollback(), WriteByte(), WriteColor(), WriteLong(), WriteVector(), and WriteWord().