Change some class naming conventions

This commit is contained in:
2023-09-15 13:28:18 -04:00
parent 40881ec284
commit cd3c82f2c4
20 changed files with 160 additions and 157 deletions

View File

@@ -4,14 +4,14 @@
#include "lpx-enginewrapper.hpp"
#include "CommonTypes.h"
// Class FLockableWrapper
// Class FlxLockableWrapper
//
// Contains the EngineWrapper and a Mutex to lock it.
// This class has no methods. To access the EngineWrapper,
// construct a FLockedWrapper, and then dereference it
// construct a FlxLockedWrapper, and then dereference it
// using operator right arrow.
//
class FLockableWrapper {
class FlxLockableWrapper {
private:
FCriticalSection Mutex;
EngineWrapper Wrapper;
@@ -24,12 +24,12 @@ private:
TArray<const char*> AQStrBuffer;
public:
friend class FLockedWrapper;
friend class FlxLockedWrapper;
};
class FLockedWrapper {
class FlxLockedWrapper {
private:
FLockableWrapper& Lockable;
FlxLockableWrapper& Lockable;
public:
// Import these types into our Namespace.
@@ -38,13 +38,13 @@ public:
using StringViewVec = CommonTypes::StringViewVec;
public:
// The constructor of the FLockedWrapper claims the mutex.
FLockedWrapper(FLockableWrapper& w) : Lockable(w) {
// The constructor of the FlxLockedWrapper claims the mutex.
FlxLockedWrapper(FlxLockableWrapper& w) : Lockable(w) {
Lockable.Mutex.Lock();
}
// The destructor of the FLockedWrapper releases the mutex.
~FLockedWrapper() {
// The destructor of the FlxLockedWrapper releases the mutex.
~FlxLockedWrapper() {
Lockable.Mutex.Unlock();
}