Vinnie Falco
3fbff6e620
beast cleanup and tidying:
...
* Replace custom types with C++11 <cstdint> types
* Fix sqlite integer intos and uses
* Fix String implicit integer constructors
* Escape the enclosing namespace in sqdb
* Replace contract checks with assert
* Make many header files compile independently
* Remove the dependence on beast_core.h in many places
* Remove unused or obsolete classes and functions
* Remove unused or obsolete macros
* Remove unused network functions and files
* Remove unused or obsolete classes:
- ChildProcess
- HighResolutionTimer
- InterProcessLock
- Throw
- TrackedMutex
- UntrackedMutex
- XmlDocument
- XmlElement
2014-03-23 15:23:55 -07:00
Vinnie Falco
f63cf33118
New unit_test framework:
...
* Header-only!
* No external dependencies or other beast modules
* Compilation options allow for:
- Stand-alone application to run a single test suite
- Stand-alone application to run a set of test suites
- Global suite of tests inline with the host application
- Disable test suite generation completely
* Existing tests reworked to use the new classes
2014-03-21 18:00:37 -07:00
Vinnie Falco
2d490f6e6a
beast cleaning and tidying:
...
* Consolidate small modules into one
* Remove Android-specific platform support
* Remove Chrono.h from beast_core.h
* Removed files:
- TypeTraits.h
- Utility.h
- Net.h
- Asio.h
* Remove zlib support:
- Remove inline zlib library sources
- Remove GZIPCompressorOutputStream
- Remove GZIPDecompressorInputStream
* Remove obsolete or unused classes:
- AbstractObject
- BigInteger
- BufferedInputStream
- CacheLine
- CPUMeter
- DatagramSocket
- DynamicObject
- FileLogger
- FPUFlags
- Identifier
- JSON
- LocalisedStrings
- MACAddress
- MemoryAlignment
- MemoryInputStream
- MemoryMappedFile
- NamedValueSet
- OptionalScopedPointer
- PerformanceCounter
- PropertySet
- ScopedTimeInterval
- SparseSet
- SpinDelay
- StreamingSocket
- StringPool
- SubregionStream
- Uuid
- Variant
2014-03-21 07:30:50 -07:00
Vinnie Falco
18486169b3
Change to the treatment of BeastConfig.h
...
* No longer requires its own compiler include path
* Includes use relative paths to locate the file
* Client applications include the file themselves
* Inclusion of BeastConfig.h can be controlled via preprocessor directive
2014-03-19 13:42:04 -07:00
Howard Hinnant
d580e7c694
General tidy and refactoring:
...
* Use nullptr (C++11) instead of NULL.
* Put each file into its own namespace declaration.
* Remove "using namespace" directives and add scope qualifiers.
* Control when beast's implementation of std::equal (C++14) is used.
* Tidy up some const declarations.
Conflicts:
src/ripple_app/shamap/SHAMapSync.cpp
src/ripple_app/tx/TransactionEngine.cpp
2014-03-19 13:42:01 -07:00
Vinnie Falco
d4a5c0353d
beast, beast::asio improvements and fixes:
...
* New maybe_const_t alias for maybe_const
* New asio::enable_wait_for_async for safe cleanup
* New asio::memory_buffer, a managed boost::asio compatible buffer
* shared_handler improvements:
- Can be 'empty' (no stored handler).
- Default constructible as 'empty'.
- Safe evaluation in bool contexts, false==empty
* Fix is_call_possible metafunction:
- Works on empty argument lists
- Works with reference types
* Replace SafeBool idiom with C++11 explicit operator bool
* Move IPAddress function definitions to the header
* Move cyclic_iterator to container/
* Remove unused BufferType
* Remove obsolete classes:
- NamedPipe
- ReadWriteLock
- ScopedReadLock
- ScopedWriteLock
- LockGuard
2014-03-17 17:40:55 -07:00
Vinnie Falco
a690690b53
Remove unused TextDiff
2014-03-04 07:23:53 -08:00
Vinnie Falco
496b337b27
General refactoring, using C++11
...
* Remove broken RecycledObjectPool
* Fix beast::ServiceQueue using List instead of LockFreeStack
* Add class semaphore, fixes broken Semaphore
* Move crytpo module files to new beast directory
* Use c++11 replacements for boost and beast types:
- std::atomic instead of beast::Atomic
- std::function instead of boost::function, beast::function
- std::unique_ptr instead of beast::ScopedPointer
- std::shared_ptr instead of boost::shared_ptr
* Remove modules:
- beast_db
- beast_crypto
- beast_extras
* Remove unnecessary classes:
- AbstractFifo
- AddConst
- AtomicCounter
- AtomicFlag
- AtomicPointer
- AtomicState
- CopyConst
- Expression
- ForwardList
- IfCond
- Interval
- IntrusiveArray
- KeyvaDB
- PointerToOther
- PointerTraits
- RemoveConst
- RemoveConstVolatile
- RemoveReference
- RemoveVolatile
- SharedObjectArray
- SingleThreadedSharedObject
- SophiaDB factory
- SortedSet
- WeakReference
- beast::unique_ptr
2014-01-07 15:57:45 -08:00
Vinnie Falco
dc591f8943
Move MurmurHash to beast
2013-10-31 08:10:04 -07:00
Vinnie Falco
f4120635e9
Rename to IPAddress and remove unused files
2013-10-22 10:43:16 -07:00
Vinnie Falco
6c7f5d093c
Move many Thread related classes
2013-10-04 14:34:01 -07:00
Vinnie Falco
ca47d72aee
Move ServiceQueue, ThreadLocalValue, SpinLock
2013-10-04 14:34:00 -07:00
Vinnie Falco
ac37c38133
Beast class refactor
2013-10-03 19:03:10 -07:00
Vinnie Falco
228b664ecf
Remove obsolete beast container classes
2013-10-03 18:36:53 -07:00
Vinnie Falco
c67929ea39
Remove unhandled exception catcher
2013-10-01 12:25:01 -07:00
Vinnie Falco
f07515eb88
Add Stoppable prepare and start interfaces
2013-09-28 15:30:01 -07:00
Vinnie Falco
d37dd46f65
Move RelativeTime to chrono, add ostream support
2013-09-28 15:09:12 -07:00
Vinnie Falco
cc05ce19f9
Add ServiceQueue
2013-09-28 15:09:10 -07:00
Vinnie Falco
5c5de57290
Reorganize beast modules and files
2013-09-23 10:13:24 -07:00
Vinnie Falco
fbc247bf53
Add Stoppable to beast
2013-09-22 11:51:46 -07:00
Vinnie Falco
7efb6a3ab8
Reorganize some MPL and Utility classes and files
2013-09-19 21:37:47 -07:00
Vinnie Falco
34fffca202
Rename beast sources for consistency
2013-09-19 14:42:51 -07:00
Vinnie Falco
327d7a6524
Fixes for consolidated beast unity includes
2013-09-19 14:42:49 -07:00
Vinnie Falco
d5ece4e909
Remove unused and broken classes
2013-09-19 14:42:49 -07:00
Vinnie Falco
f3dc7ce52c
Add generic Journal class for logging
2013-09-12 15:06:28 -07:00
Vinnie Falco
02acf7d6d0
General refactoring of beast framework classes
2013-09-12 10:55:24 -07:00
Vinnie Falco
86793468de
Replace obsolete OncePerSecond with DeadlineTimer
2013-09-05 04:38:18 -07:00
Vinnie Falco
aa2773e483
Add HashMap unit test
2013-09-05 04:22:25 -07:00
Vinnie Falco
de2c4cc7b8
Added DynamicArray, DynamicList, and HashMap
2013-09-03 08:31:16 -07:00
Vinnie Falco
96587dc68c
Add BeforeBoost.h and tidy up beast system headers
2013-09-01 12:22:08 -07:00
Vinnie Falco
d9d291abcb
Tidy up includes and header material
2013-08-30 17:33:33 -07:00
Vinnie Falco
5002ab2169
Merge beast_basics to beast_core
2013-08-24 10:18:24 -07:00
Vinnie Falco
04f9270772
Add TrackedMutex and measureFunctionCallTime
2013-08-23 15:00:04 -07:00
Vinnie Falco
1c39721ff7
Add SemanticVersion
2013-08-01 15:27:18 -07:00
Vinnie Falco
a937b97a61
Add FatalError
2013-07-30 21:05:11 -07:00
Vinnie Falco
2e402ba654
Add lexicalCast
2013-07-28 21:27:04 -07:00
Vinnie Falco
cb47146b3b
Add classes ProtectedCall and Main
2013-07-28 14:58:19 -07:00
Vinnie Falco
810954014b
Add hardened HashFunction to UnsignedInteger
2013-07-27 10:47:32 -07:00
Vinnie Falco
a3af6404b0
RandomAccessFile unit tests
2013-07-21 12:54:09 -07:00
Vinnie Falco
8208bb25ba
Add RandomAccessFile
2013-07-21 12:54:07 -07:00
Vinnie Falco
60e0e5c38f
Move UnitTest to diagnostic
2013-07-15 09:38:07 -07:00
Vinnie Falco
d54a5c49c1
Fix warnings and errors
2013-07-10 09:51:25 -07:00
Vinnie Falco
3fea8a4202
Rename SharedSingleton and move files around
2013-07-01 09:32:05 -07:00
Vinnie Falco
ca1eda2df1
Use LeakChecked throughout Beast
2013-07-01 09:32:04 -07:00
Vinnie Falco
386fea5e71
Tidy up and activate the MSVC Debug Heap
2013-07-01 09:32:03 -07:00
Vinnie Falco
e7bda30506
Large tidying up of Beast
...
- Move key classes into beast_core
- Tidy up various macros and files
- Disable leaking FifoFreeStoreWithTLS
2013-07-01 09:32:03 -07:00
Vinnie Falco
74e8c881f7
Add missing native BSD support for Beast
2013-06-26 09:24:44 -07:00
Vinnie Falco
d3d674ba4b
Beast fixes for FreeBSD
2013-06-20 13:38:44 -07:00
Vinnie Falco
f2d84f0a90
Add Beast fork from JUCE commit 265fb0e8ebc26e1469d6edcc68d2ca9acefeb508
2013-06-16 16:57:52 -07:00
Vinnie Falco
48cf78af68
Beast initial commit
2013-06-02 08:55:07 -07:00