mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
Make Uncopyable derivations public
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
@ingroup beast_core
|
||||
*/
|
||||
class BEAST_API OncePerSecond : Uncopyable
|
||||
class BEAST_API OncePerSecond : public Uncopyable
|
||||
{
|
||||
public:
|
||||
OncePerSecond ();
|
||||
|
||||
@@ -43,7 +43,7 @@ struct FifoFreeStoreWithTLS::Header
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
class FifoFreeStoreWithTLS::Page : LeakChecked <Page>, Uncopyable
|
||||
class FifoFreeStoreWithTLS::Page : LeakChecked <Page>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit Page (const size_t bytes) : m_refs (1)
|
||||
@@ -94,7 +94,7 @@ private:
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
class FifoFreeStoreWithTLS::PerThreadData : LeakChecked <PerThreadData>, Uncopyable
|
||||
class FifoFreeStoreWithTLS::PerThreadData : LeakChecked <PerThreadData>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit PerThreadData (FifoFreeStoreWithTLS* allocator)
|
||||
|
||||
@@ -30,7 +30,7 @@ struct FifoFreeStoreWithoutTLS::Header
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
class FifoFreeStoreWithoutTLS::Block : Uncopyable
|
||||
class FifoFreeStoreWithoutTLS::Block : public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit Block (const size_t bytes) : m_refs (1)
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
@ingroup beast_concurrent
|
||||
*/
|
||||
class BEAST_API ParallelFor : Uncopyable
|
||||
class BEAST_API ParallelFor : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Create a parallel for loop.
|
||||
@@ -153,7 +153,7 @@ private:
|
||||
};
|
||||
|
||||
template <class Functor>
|
||||
class IterationType : public Iteration, Uncopyable
|
||||
class IterationType : public Iteration, public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit IterationType (Functor const& f) : m_f (f)
|
||||
@@ -172,7 +172,7 @@ private:
|
||||
private:
|
||||
class LoopState
|
||||
: public AllocatedBy <ThreadGroup::AllocatorType>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
private:
|
||||
Iteration& m_iteration;
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
@ingroup beast_concurrent
|
||||
*/
|
||||
template <class LockType>
|
||||
struct GenericScopedReadLock : Uncopyable
|
||||
struct GenericScopedReadLock : public Uncopyable
|
||||
{
|
||||
inline explicit GenericScopedReadLock (LockType const& lock) noexcept
|
||||
:
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
@ingroup beast_concurrent
|
||||
*/
|
||||
template <class LockType>
|
||||
struct GenericScopedWriteLock : Uncopyable
|
||||
struct GenericScopedWriteLock : public Uncopyable
|
||||
{
|
||||
inline explicit GenericScopedWriteLock (LockType const& lock) noexcept
|
||||
:
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
@ingroup beast_core
|
||||
*/
|
||||
class BEAST_API SerialFor : Uncopyable
|
||||
class BEAST_API SerialFor : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Create a serial for loop.
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
See @ref CallQueue::queue().
|
||||
*/
|
||||
template <class Object>
|
||||
class SharedData : Uncopyable
|
||||
class SharedData : public Uncopyable
|
||||
{
|
||||
public:
|
||||
class ReadAccess;
|
||||
@@ -176,7 +176,7 @@ private:
|
||||
Use sparingly.
|
||||
*/
|
||||
template <class Object>
|
||||
class SharedData <Object>::UnlockedAccess : Uncopyable
|
||||
class SharedData <Object>::UnlockedAccess : public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit UnlockedAccess (SharedData const& state)
|
||||
@@ -205,7 +205,7 @@ private:
|
||||
|
||||
/** Read only access to a SharedData */
|
||||
template <class Object>
|
||||
class SharedData <Object>::ReadAccess : Uncopyable
|
||||
class SharedData <Object>::ReadAccess : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Create a ReadAccess from the specified SharedData */
|
||||
@@ -242,7 +242,7 @@ private:
|
||||
|
||||
/** Read/write access to a SharedData */
|
||||
template <class Object>
|
||||
class SharedData <Object>::WriteAccess : Uncopyable
|
||||
class SharedData <Object>::WriteAccess : public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit WriteAccess (SharedData& state)
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
};
|
||||
@endcode
|
||||
*/
|
||||
class BEAST_API AbstractFifo : LeakChecked <AbstractFifo>, Uncopyable
|
||||
class BEAST_API AbstractFifo : LeakChecked <AbstractFifo>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -126,7 +126,7 @@ template <typename KeyType,
|
||||
class HashFunctionToUse = DefaultHashFunctions,
|
||||
class TypeOfCriticalSectionToUse = DummyCriticalSection>
|
||||
class HashMap
|
||||
: Uncopyable
|
||||
: public Uncopyable
|
||||
, LeakChecked <HashMap <KeyType,
|
||||
ValueType,
|
||||
HashFunctionToUse,
|
||||
@@ -378,7 +378,7 @@ public:
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
class HashEntry : Uncopyable
|
||||
class HashEntry : public Uncopyable
|
||||
{
|
||||
public:
|
||||
HashEntry (KeyTypeParameter k, ValueTypeParameter val, HashEntry* const next)
|
||||
@@ -414,7 +414,7 @@ public:
|
||||
|
||||
@see HashMap
|
||||
*/
|
||||
class Iterator : LeakChecked <Iterator>, Uncopyable
|
||||
class Iterator : LeakChecked <Iterator>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
@endcode
|
||||
*/
|
||||
template <class ObjectType>
|
||||
class LinkedListPointer : Uncopyable
|
||||
class LinkedListPointer : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -330,7 +330,7 @@ public:
|
||||
list, and then repeatedly call Appender::append() to add items to the end
|
||||
of the list in O(1) time.
|
||||
*/
|
||||
class Appender : Uncopyable
|
||||
class Appender : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Creates an appender which will add items to the given list.
|
||||
|
||||
@@ -304,7 +304,7 @@ struct ListDefaultTag;
|
||||
@ingroup beast_core intrusive
|
||||
*/
|
||||
template <class Element, class Tag = ListDefaultTag>
|
||||
class List : Uncopyable
|
||||
class List : public Uncopyable
|
||||
{
|
||||
public:
|
||||
typedef int size_type;
|
||||
@@ -323,7 +323,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class Node : Uncopyable
|
||||
class Node : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Node () { }
|
||||
|
||||
@@ -50,7 +50,7 @@ template <class Element, class Tag = LockFreeQueueDefaultTag>
|
||||
class LockFreeQueue
|
||||
{
|
||||
public:
|
||||
class Node : Uncopyable
|
||||
class Node : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Node () { }
|
||||
|
||||
@@ -39,10 +39,10 @@ struct LockFreeStackDefaultTag;
|
||||
@ingroup beast_core intrusive
|
||||
*/
|
||||
template <class Element, class Tag = LockFreeStackDefaultTag>
|
||||
class LockFreeStack : Uncopyable
|
||||
class LockFreeStack : public Uncopyable
|
||||
{
|
||||
public:
|
||||
class Node : Uncopyable
|
||||
class Node : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Node ()
|
||||
|
||||
@@ -48,7 +48,7 @@ template <class ObjectClass,
|
||||
|
||||
class OwnedArray
|
||||
: LeakChecked <OwnedArray <ObjectClass, TypeOfCriticalSectionToUse> >
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
*/
|
||||
template <typename ValueType>
|
||||
class ScopedValueSetter : Uncopyable
|
||||
class ScopedValueSetter : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Creates a ScopedValueSetter that will immediately change the specified value to the
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
the process is terminated, a listener object gets notified so that the
|
||||
client application can perform logging or emit further diagnostics.
|
||||
*/
|
||||
class FatalError : Uncopyable
|
||||
class FatalError : public Uncopyable
|
||||
{
|
||||
public:
|
||||
struct Reporter
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace
|
||||
// While this object is in scope, any Windows SEH
|
||||
// exceptions will be caught and re-thrown as an Error object.
|
||||
//
|
||||
class ScopedPlatformExceptionCatcher : Uncopyable
|
||||
class ScopedPlatformExceptionCatcher : public Uncopyable
|
||||
{
|
||||
public:
|
||||
ScopedPlatformExceptionCatcher ()
|
||||
|
||||
@@ -331,7 +331,7 @@ private:
|
||||
|
||||
@see UnitTest
|
||||
*/
|
||||
class BEAST_API UnitTests : Uncopyable
|
||||
class BEAST_API UnitTests : public Uncopyable
|
||||
{
|
||||
public:
|
||||
struct Results
|
||||
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
@see UnitTest, UnitTests
|
||||
*/
|
||||
|
||||
class JUnitXMLFormatter : Uncopyable
|
||||
class JUnitXMLFormatter : public Uncopyable
|
||||
{
|
||||
public:
|
||||
JUnitXMLFormatter (UnitTests const& tests);
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
It can also guess how far it's got using a wildly inaccurate algorithm.
|
||||
*/
|
||||
class BEAST_API DirectoryIterator : LeakChecked <DirectoryIterator>, Uncopyable
|
||||
class BEAST_API DirectoryIterator : LeakChecked <DirectoryIterator>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
class NativeIterator : LeakChecked <NativeIterator>, Uncopyable
|
||||
class NativeIterator : LeakChecked <NativeIterator>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
NativeIterator (const File& directory, const String& wildCard);
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
/**
|
||||
Maps a file into virtual memory for easy reading and/or writing.
|
||||
*/
|
||||
class BEAST_API MemoryMappedFile : LeakChecked <MemoryMappedFile>, Uncopyable
|
||||
class BEAST_API MemoryMappedFile : LeakChecked <MemoryMappedFile>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** The read/write flags used when opening a memory mapped file. */
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
@see FileInputStream, FileOutputStream
|
||||
*/
|
||||
class BEAST_API RandomAccessFile : Uncopyable, LeakChecked <RandomAccessFile>
|
||||
class BEAST_API RandomAccessFile : public Uncopyable, LeakChecked <RandomAccessFile>
|
||||
{
|
||||
public:
|
||||
/** The type of an FileOffset.
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
@see File, FileOutputStream
|
||||
*/
|
||||
class BEAST_API TemporaryFile : LeakChecked <TemporaryFile>, Uncopyable
|
||||
class BEAST_API TemporaryFile : LeakChecked <TemporaryFile>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
class BEAST_API FileLogger
|
||||
: public Logger
|
||||
, LeakChecked <FileLogger>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -346,7 +346,7 @@ struct Expression::Helpers
|
||||
//==============================================================================
|
||||
class EvaluationVisitor
|
||||
: public Scope::Visitor
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
EvaluationVisitor (const TermPtr& t, const int recursion)
|
||||
@@ -361,7 +361,7 @@ struct Expression::Helpers
|
||||
|
||||
class SymbolVisitingVisitor
|
||||
: public Scope::Visitor
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
SymbolVisitingVisitor (const TermPtr& t, SymbolVisitor& v, const int recursion)
|
||||
@@ -377,7 +377,7 @@ struct Expression::Helpers
|
||||
|
||||
class SymbolRenamingVisitor
|
||||
: public Scope::Visitor
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
SymbolRenamingVisitor (const TermPtr& t, const Expression::Symbol& symbol_, const String& newName_, const int recursionCount_)
|
||||
@@ -607,7 +607,7 @@ struct Expression::Helpers
|
||||
//==============================================================================
|
||||
class SymbolCheckVisitor
|
||||
: public Term::SymbolVisitor
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
SymbolCheckVisitor (const Symbol& symbol_) : wasFound (false), symbol (symbol_) {}
|
||||
@@ -622,7 +622,7 @@ struct Expression::Helpers
|
||||
//==============================================================================
|
||||
class SymbolListVisitor
|
||||
: public Term::SymbolVisitor
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
SymbolListVisitor (Array<Symbol>& list_) : list (list_) {}
|
||||
@@ -633,7 +633,7 @@ struct Expression::Helpers
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
class Parser : Uncopyable
|
||||
class Parser : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
/** Contains static methods for converting the byte order between different
|
||||
endiannesses.
|
||||
*/
|
||||
class BEAST_API ByteOrder : Uncopyable
|
||||
class BEAST_API ByteOrder : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace HeapBlockHelper
|
||||
@see Array, OwnedArray, MemoryBlock
|
||||
*/
|
||||
template <class ElementType, bool throwOnFailure = false>
|
||||
class HeapBlock : Uncopyable
|
||||
class HeapBlock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -65,7 +65,7 @@ inline Type* createCopyIfNotNull (const Type* pointer) { return pointer != n
|
||||
/** A handy C++ wrapper that creates and deletes an NSAutoreleasePool object using RAII.
|
||||
You should use the BEAST_AUTORELEASEPOOL macro to create a local auto-release pool on the stack.
|
||||
*/
|
||||
class BEAST_API ScopedAutoReleasePool : Uncopyable
|
||||
class BEAST_API ScopedAutoReleasePool : public Uncopyable
|
||||
{
|
||||
public:
|
||||
ScopedAutoReleasePool();
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
you'd need to return a raw pointer (or use a std::auto_ptr instead).
|
||||
*/
|
||||
template <class ObjectType>
|
||||
class ScopedPointer : Uncopyable
|
||||
class ScopedPointer : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -88,7 +88,6 @@ public:
|
||||
/** Returns the object's current reference count. */
|
||||
inline int getReferenceCount() const noexcept { return refCount.get(); }
|
||||
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** Creates the reference-counted object (with an initial ref count of zero). */
|
||||
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
*/
|
||||
class SharedPointer
|
||||
: public ReferenceCountingType
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit SharedPointer (ObjectType* const obj) noexcept : owner (obj) {}
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
See the WeakReference class notes for an example of how to use this class.
|
||||
@see WeakReference
|
||||
*/
|
||||
class Master : Uncopyable
|
||||
class Master : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Master() noexcept {}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
To use this, derive your class from @ref Main and implement the
|
||||
function run ();
|
||||
*/
|
||||
class BEAST_API Main : Uncopyable
|
||||
class BEAST_API Main : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Main ();
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
Contains some static helper functions for manipulating the MS Windows registry
|
||||
(Only available on Windows, of course!)
|
||||
*/
|
||||
class WindowsRegistry : Uncopyable
|
||||
class WindowsRegistry : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -148,7 +148,7 @@ bool File::moveToTrash() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl : Uncopyable
|
||||
class DirectoryIterator::NativeIterator::Pimpl : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard_)
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class JNIClassBase : Uncopyable
|
||||
class JNIClassBase : public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit JNIClassBase (const char* classPath);
|
||||
|
||||
@@ -241,7 +241,7 @@ bool File::moveToTrash() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl : Uncopyable
|
||||
class DirectoryIterator::NativeIterator::Pimpl : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard_)
|
||||
|
||||
@@ -241,7 +241,7 @@ bool File::moveToTrash() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl : Uncopyable
|
||||
class DirectoryIterator::NativeIterator::Pimpl : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard_)
|
||||
|
||||
@@ -308,7 +308,7 @@ bool File::moveToTrash() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl : Uncopyable
|
||||
class DirectoryIterator::NativeIterator::Pimpl : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard_)
|
||||
|
||||
@@ -100,7 +100,7 @@ bool Process::openEmailWithAttachments (const String& targetEmailAddress,
|
||||
class URLConnectionState
|
||||
: public Thread
|
||||
, LeakChecked <URLConnectionState>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
URLConnectionState (NSURLRequest* req)
|
||||
|
||||
@@ -64,7 +64,7 @@ struct NSObjectRetainer
|
||||
|
||||
//==============================================================================
|
||||
template <typename SuperclassType>
|
||||
struct ObjCClass : Uncopyable
|
||||
struct ObjCClass : public Uncopyable
|
||||
{
|
||||
ObjCClass (const char* nameRoot)
|
||||
: cls (objc_allocateClassPair ([SuperclassType class], getRandomisedName (nameRoot).toUTF8(), 0))
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
class NamedPipe::Pimpl : LeakChecked <Pimpl>, Uncopyable
|
||||
class NamedPipe::Pimpl : LeakChecked <Pimpl>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const String& pipePath, bool createPipe)
|
||||
|
||||
@@ -1169,7 +1169,7 @@ void* DynamicLibrary::getFunction (const String& functionName) noexcept
|
||||
|
||||
|
||||
//==============================================================================
|
||||
class ChildProcess::ActiveProcess : LeakChecked <ActiveProcess>, Uncopyable
|
||||
class ChildProcess::ActiveProcess : LeakChecked <ActiveProcess>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
ActiveProcess (const StringArray& arguments)
|
||||
@@ -1298,7 +1298,7 @@ bool ChildProcess::kill()
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
struct HighResolutionTimer::Pimpl : Uncopyable
|
||||
struct HighResolutionTimer::Pimpl : public Uncopyable
|
||||
{
|
||||
Pimpl (HighResolutionTimer& t) : owner (t), thread (0), shouldStop (false)
|
||||
{
|
||||
|
||||
@@ -786,7 +786,7 @@ bool File::createLink (const String& description, const File& linkFileToCreate)
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl
|
||||
: LeakChecked <DirectoryIterator::NativeIterator::Pimpl>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard)
|
||||
@@ -888,7 +888,7 @@ void File::revealToUser() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class NamedPipe::Pimpl : LeakChecked <NamedPipe::Pimpl>, Uncopyable
|
||||
class NamedPipe::Pimpl : LeakChecked <NamedPipe::Pimpl>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const String& pipeName, const bool createPipe)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
struct RegistryKeyWrapper : Uncopyable
|
||||
struct RegistryKeyWrapper : public Uncopyable
|
||||
{
|
||||
RegistryKeyWrapper (String name, const bool createForWriting, const DWORD wow64Flags)
|
||||
: key (0), wideCharValueName (nullptr)
|
||||
|
||||
@@ -461,7 +461,7 @@ void InterProcessLock::exit()
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class ChildProcess::ActiveProcess : LeakChecked <ChildProcess::ActiveProcess>, Uncopyable
|
||||
class ChildProcess::ActiveProcess : LeakChecked <ChildProcess::ActiveProcess>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
ActiveProcess (const String& command)
|
||||
@@ -584,7 +584,7 @@ bool ChildProcess::kill()
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
struct HighResolutionTimer::Pimpl : Uncopyable
|
||||
struct HighResolutionTimer::Pimpl : public Uncopyable
|
||||
{
|
||||
Pimpl (HighResolutionTimer& t) noexcept : owner (t), periodMs (0)
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
@see InterprocessConnection
|
||||
*/
|
||||
class BEAST_API NamedPipe : LeakChecked <NamedPipe>, Uncopyable
|
||||
class BEAST_API NamedPipe : LeakChecked <NamedPipe>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
@see DatagramSocket, InterprocessConnection, InterprocessConnectionServer
|
||||
*/
|
||||
class BEAST_API StreamingSocket : LeakChecked <StreamingSocket>, Uncopyable
|
||||
class BEAST_API StreamingSocket : LeakChecked <StreamingSocket>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -175,7 +175,7 @@ private:
|
||||
|
||||
@see StreamingSocket, InterprocessConnection, InterprocessConnectionServer
|
||||
*/
|
||||
class BEAST_API DatagramSocket : LeakChecked <DatagramSocket>, Uncopyable
|
||||
class BEAST_API DatagramSocket : LeakChecked <DatagramSocket>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
class BEAST_API FileInputSource
|
||||
: public InputSource
|
||||
, LeakChecked <FileInputSource>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
/**
|
||||
Contains methods for finding out about the current hardware and OS configuration.
|
||||
*/
|
||||
class BEAST_API SystemStats : Uncopyable
|
||||
class BEAST_API SystemStats : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
This class lets you launch an executable, and read its output. You can also
|
||||
use it to check whether the child process has finished.
|
||||
*/
|
||||
class BEAST_API ChildProcess : LeakChecked <ChildProcess>, Uncopyable
|
||||
class BEAST_API ChildProcess : LeakChecked <ChildProcess>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
@see ScopedLock, ScopedTryLock, ScopedUnlock, SpinLock, ReadWriteLock, Thread, InterProcessLock
|
||||
*/
|
||||
class BEAST_API CriticalSection : Uncopyable
|
||||
class BEAST_API CriticalSection : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -124,7 +124,7 @@ private:
|
||||
|
||||
@see CriticalSection, Array, OwnedArray, SharedObjectArray
|
||||
*/
|
||||
class BEAST_API DummyCriticalSection : Uncopyable
|
||||
class BEAST_API DummyCriticalSection : public Uncopyable
|
||||
{
|
||||
public:
|
||||
inline DummyCriticalSection() noexcept {}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
Since the DLL is freed when this object is deleted, it's handy for managing
|
||||
library lifetimes using RAII.
|
||||
*/
|
||||
class BEAST_API DynamicLibrary : LeakChecked <DynamicLibrary>, Uncopyable
|
||||
class BEAST_API DynamicLibrary : LeakChecked <DynamicLibrary>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Creates an unopened DynamicLibrary object.
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
@see Timer
|
||||
*/
|
||||
class BEAST_API HighResolutionTimer : LeakChecked <HighResolutionTimer>, Uncopyable
|
||||
class BEAST_API HighResolutionTimer : LeakChecked <HighResolutionTimer>, public Uncopyable
|
||||
{
|
||||
protected:
|
||||
/** Creates a HighResolutionTimer.
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
@see CriticalSection
|
||||
*/
|
||||
class BEAST_API InterProcessLock : Uncopyable
|
||||
class BEAST_API InterProcessLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
@see ScopedLock
|
||||
*/
|
||||
class ScopedLockType : Uncopyable
|
||||
class ScopedLockType : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
@see Thread, BEASTApplication
|
||||
*/
|
||||
class BEAST_API Process : Uncopyable
|
||||
class BEAST_API Process : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
@see ScopedReadLock, ScopedWriteLock, CriticalSection
|
||||
*/
|
||||
class BEAST_API ReadWriteLock : Uncopyable
|
||||
class BEAST_API ReadWriteLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
@see GenericScopedUnlock, CriticalSection, SpinLock, ScopedLock, ScopedUnlock
|
||||
*/
|
||||
template <class LockType>
|
||||
class GenericScopedLock : Uncopyable
|
||||
class GenericScopedLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -118,7 +118,7 @@ private:
|
||||
@see GenericScopedLock, CriticalSection, ScopedLock, ScopedUnlock
|
||||
*/
|
||||
template <class LockType>
|
||||
class GenericScopedUnlock : Uncopyable
|
||||
class GenericScopedUnlock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -186,7 +186,7 @@ private:
|
||||
@see CriticalSection::tryEnter, GenericScopedLock, GenericScopedUnlock
|
||||
*/
|
||||
template <class LockType>
|
||||
class GenericScopedTryLock : Uncopyable
|
||||
class GenericScopedTryLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
@see ReadWriteLock, ScopedWriteLock
|
||||
*/
|
||||
class BEAST_API ScopedReadLock : Uncopyable
|
||||
class BEAST_API ScopedReadLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
@see ReadWriteLock, ScopedReadLock
|
||||
*/
|
||||
class BEAST_API ScopedWriteLock : Uncopyable
|
||||
class BEAST_API ScopedWriteLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
@see CriticalSection
|
||||
*/
|
||||
class BEAST_API SpinLock : Uncopyable
|
||||
class BEAST_API SpinLock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
inline SpinLock() noexcept {}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
@see CriticalSection, WaitableEvent, Process, ThreadWithProgressWindow,
|
||||
MessageManagerLock
|
||||
*/
|
||||
class BEAST_API Thread : LeakChecked <Thread>, Uncopyable
|
||||
class BEAST_API Thread : LeakChecked <Thread>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
is deleted.
|
||||
*/
|
||||
template <typename Type>
|
||||
class ThreadLocalValue : Uncopyable
|
||||
class ThreadLocalValue : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** */
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
private:
|
||||
//==============================================================================
|
||||
#if BEAST_NO_COMPILER_THREAD_LOCAL
|
||||
struct ObjectHolder : Uncopyable
|
||||
struct ObjectHolder : public Uncopyable
|
||||
{
|
||||
ObjectHolder (const Thread::ThreadID& tid)
|
||||
: threadId (tid), object()
|
||||
|
||||
@@ -46,7 +46,7 @@ class ThreadPoolThread;
|
||||
|
||||
@see ThreadPool, Thread
|
||||
*/
|
||||
class BEAST_API ThreadPoolJob : LeakChecked <ThreadPoolJob>, Uncopyable
|
||||
class BEAST_API ThreadPoolJob : LeakChecked <ThreadPoolJob>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
|
||||
@see ThreadPoolJob, Thread
|
||||
*/
|
||||
class BEAST_API ThreadPool : LeakChecked <ThreadPool>, Uncopyable
|
||||
class BEAST_API ThreadPool : LeakChecked <ThreadPool>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
calling thread until another thread wakes it up by calling the signal()
|
||||
method.
|
||||
*/
|
||||
class BEAST_API WaitableEvent : LeakChecked <WaitableEvent>, Uncopyable
|
||||
class BEAST_API WaitableEvent : LeakChecked <WaitableEvent>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -67,7 +67,7 @@ class InputSource;
|
||||
|
||||
@see XmlElement
|
||||
*/
|
||||
class BEAST_API XmlDocument : LeakChecked <XmlDocument>, Uncopyable
|
||||
class BEAST_API XmlDocument : LeakChecked <XmlDocument>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
class GZIPCompressorOutputStream::GZIPCompressorHelper : Uncopyable
|
||||
class GZIPCompressorOutputStream::GZIPCompressorHelper : public Uncopyable
|
||||
{
|
||||
public:
|
||||
GZIPCompressorHelper (const int compressionLevel, const int windowBits)
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace zlibNamespace
|
||||
//==============================================================================
|
||||
// internal helper object that holds the zlib structures so they don't have to be
|
||||
// included publicly.
|
||||
class GZIPDecompressorInputStream::GZIPDecompressHelper : Uncopyable
|
||||
class GZIPDecompressorInputStream::GZIPDecompressHelper : public Uncopyable
|
||||
{
|
||||
public:
|
||||
GZIPDecompressHelper (const bool dontWrap)
|
||||
|
||||
@@ -442,7 +442,7 @@ Result ZipFile::uncompressEntry (const int index,
|
||||
//=============================================================================
|
||||
extern unsigned long beast_crc32 (unsigned long crc, const unsigned char*, unsigned len);
|
||||
|
||||
class ZipFile::Builder::Item : LeakChecked <ZipFile::Builder::Item>, Uncopyable
|
||||
class ZipFile::Builder::Item : LeakChecked <ZipFile::Builder::Item>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Item (const File& f, const int compression, const String& storedPath)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
This can enumerate the items in a ZIP file and can create suitable stream objects
|
||||
to read each one.
|
||||
*/
|
||||
class BEAST_API ZipFile : LeakChecked <ZipFile>, Uncopyable
|
||||
class BEAST_API ZipFile : LeakChecked <ZipFile>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Creates a ZipFile based for a file. */
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
Currently this just stores the files with no compression.. That will be added
|
||||
soon!
|
||||
*/
|
||||
class Builder : LeakChecked <Builder>, Uncopyable
|
||||
class Builder : LeakChecked <Builder>, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Builder();
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
};
|
||||
|
||||
// Key records are indexed starting at one.
|
||||
struct KeyRecord : Uncopyable
|
||||
struct KeyRecord : public Uncopyable
|
||||
{
|
||||
explicit KeyRecord (void* const keyStorage)
|
||||
: key (keyStorage)
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
// are identical to the format on disk. Therefore it is necessary to
|
||||
// use the serialization routines to extract or update the key records.
|
||||
//
|
||||
class KeyBlock : Uncopyable
|
||||
class KeyBlock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
KeyBlock (int depth, int keyBytes)
|
||||
@@ -475,7 +475,7 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
struct FindResult : Uncopyable
|
||||
struct FindResult : public Uncopyable
|
||||
{
|
||||
FindResult (void* const keyStorage)
|
||||
: keyRecord (keyStorage)
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
namespace sqdb
|
||||
{
|
||||
|
||||
class transaction : Uncopyable
|
||||
class transaction : public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit transaction(session& s);
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace detail
|
||||
{
|
||||
|
||||
// used for "once" and "prepare"
|
||||
class ref_counted_statement_base : Uncopyable
|
||||
class ref_counted_statement_base : public Uncopyable
|
||||
{
|
||||
public:
|
||||
ref_counted_statement_base(session& s);
|
||||
|
||||
@@ -78,7 +78,7 @@ template <typename T>
|
||||
class conversion_into_type
|
||||
: private base_value_holder<T>
|
||||
, public into_type <typename type_conversion<T>::base_type>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
typedef typename type_conversion<T>::base_type BASE_TYPE;
|
||||
@@ -109,7 +109,7 @@ template<typename T>
|
||||
class conversion_use_type
|
||||
: private base_value_holder<T>
|
||||
, public use_type<typename type_conversion<T>::base_type>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
typedef typename type_conversion<T>::base_type BASE_TYPE;
|
||||
|
||||
@@ -39,7 +39,7 @@ class SqliteStatement;
|
||||
class Ledger
|
||||
: public boost::enable_shared_from_this <Ledger>
|
||||
, public CountedObject <Ledger>
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
static char const* getCountedObjectName () { return "Ledger"; }
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/** Holds the cryptographic credentials identifying this instance of the server.
|
||||
*/
|
||||
class LocalCredentials : Uncopyable
|
||||
class LocalCredentials : public Uncopyable
|
||||
{
|
||||
public:
|
||||
LocalCredentials ();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
done by seeding the hashing function with a random number generated
|
||||
at program startup.
|
||||
*/
|
||||
class HashMaps : Uncopyable
|
||||
class HashMaps : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Golden ratio constant used in hashing functions.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
@note None of the listed interfaces are thread-safe.
|
||||
*/
|
||||
class LogFile : Uncopyable
|
||||
class LogFile : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Construct with no associated system file.
|
||||
|
||||
@@ -11,6 +11,15 @@
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/unordered_map.hpp> // for unit test
|
||||
#include <boost/mpl/at.hpp>
|
||||
#include <boost/mpl/vector.hpp>
|
||||
|
||||
/** Implementations for boost::asio abstractions.
|
||||
|
||||
These require boost::asio header material to be included.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
All operations are performed asynchronously on an internal thread.
|
||||
*/
|
||||
class Validators : Uncopyable
|
||||
class Validators : public Uncopyable
|
||||
{
|
||||
public:
|
||||
/** Provides a ValidatorList.
|
||||
|
||||
Reference in New Issue
Block a user