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
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
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
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
Patrick Dehne
08aa415c66
Beast improvements and vflib compatibility module work
...
* Add CallQueue vflib compatibility class
* Use run instead of run_one
* Merge BindableServiceQueue into CallQueue
* Take BEAST_VARIADIC_MAX into account
* Fix license headers as suggested by Vinnie
* Remove obsolete comment
* Add ManualServiceQueue
* Add ManualServiceQueue to beast_vflib include
* Move static unit test variables of header only classes to module cpp
* Remove no longer used mutex member
* _VARIADIC_MAX maxes out at 10
* Correctly apply BEAST_VARIADIC_MAX
* Merge BindableServiceQueue into CallQueue
* New GuiServiceQueue and its JUCE dependency
* Fix leftover merge errors
* Fix CallQueue unit test
* Don't use bassert for better CI support
2013-11-07 09:42:37 -08: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
9d9c822efb
Migrate some headers and general tidying
2013-09-22 11:51:44 -07:00
Vinnie Falco
34fffca202
Rename beast sources for consistency
2013-09-19 14:42:51 -07:00
Vinnie Falco
77874ee518
Use new instead of ::new for placement
2013-09-17 17:47:05 -07:00
Vinnie Falco
277e32bb1e
Add LockFreeStack iterators
2013-09-17 17:47:04 -07:00
Vinnie Falco
43e6d345e4
General beast update, fixes, optimizations, features:
...
* Clean ups, optimizations, and new File::commonDocumentsDirectory enum
* Replace sortArray with std::sort for performance
* More error tolerance in XML parser, speedups
* Refactor some byte-order mark detection code
* Add String::appendCharPointer overloads
* More XML parser optimisations and better error detection
* Misc performance tweaks
* Fixes for support of non utf8 strings
* Increased precision when storing strings in XmlElement
* Minor clean-ups
* Minor fix to XmlDocument
* Cleanups to CriticalSection and related synchronization primitives
* Fix DynamicArray unit test
2013-09-10 10:36:46 -07:00
Vinnie Falco
2b132ae892
Tune HashMap parameters
2013-09-09 10:28:10 -07:00
Vinnie Falco
34b7599df6
Rename to IsCond<>
2013-09-09 10:28:09 -07:00
Vinnie Falco
429deb959c
Fix compile error on configs with c++11 move support
2013-09-05 05:08:41 -07:00
Vinnie Falco
04d039eddd
New ContainerTest generic templates
2013-09-05 04:22:27 -07:00
Vinnie Falco
201221253d
Refactor SharedPtr and fix ContainerDeletePolicy bug
2013-09-05 04:22:26 -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
d9d291abcb
Tidy up includes and header material
2013-08-30 17:33:33 -07:00
Vinnie Falco
5c2da08c13
Fix warnings
2013-08-26 18:59:57 -07:00
Vinnie Falco
21b78adfee
Add ContainerDeletePolicy for ownership containers
2013-08-17 21:10:01 -07:00
Vinnie Falco
9aaaa6aef0
Make Uncopyable derivations public
2013-08-07 15:16:38 -07:00
Vinnie Falco
849d0c1c34
Return popped element in List
2013-08-07 15:16:31 -07:00
Vinnie Falco
f07732a9ca
Fix clang warnings
2013-08-07 15:16:31 -07:00
Vinnie Falco
04fadc84a6
Rename to swapWith and use a template parameter
2013-07-28 14:58:19 -07:00
Vinnie Falco
9064af3b1c
Call pass() in AbstractFifo unit test
2013-07-28 02:41:09 -07:00
Vinnie Falco
2f7b42b13b
Return index in Array::add()
2013-07-28 02:41:09 -07:00
Vinnie Falco
7266111b68
Generalize swapWithArray
...
Conflicts:
Subtrees/beast/TODO.txt
2013-07-27 11:00:21 -07:00
Vinnie Falco
3248a1b57f
HashMap ctor stores an instance of the hash function
2013-07-27 10:47:32 -07:00
Vinnie Falco
4edf1fd8fa
Add OwnedArray::clearQuick()
2013-07-27 10:47:32 -07:00
Vinnie Falco
d25fe19d87
Add group and run type to UnitTest
2013-07-21 12:55:47 -07:00
Vinnie Falco
312b7352b2
Run an individual unit test
2013-07-21 12:54:08 -07:00
Vinnie Falco
0008193a20
Fix gcc compile
2013-07-15 09:38:12 -07:00
Vinnie Falco
5c691c0883
Rename to SharedObjectArray
...
Conflicts:
Builds/VisualStudio2012/RippleD.vcxproj.filters
2013-07-15 09:38:11 -07:00
Vinnie Falco
a1289eb502
Use template for UnitTest
2013-07-15 09:38:09 -07:00
Vinnie Falco
93ef4f2301
Rename to SharedObject
2013-07-15 09:38:07 -07:00
Vinnie Falco
3c993884cd
Fix beast macro calls
2013-07-03 10:05:43 -07:00
Vinnie Falco
9c9ba18619
constness fix in OwnedArray
2013-07-03 09:41:46 -07:00
Vinnie Falco
485d048415
Update some beast container code
2013-07-03 09:41:44 -07:00
Vinnie Falco
d4298d1bd2
Tidy up List documentation
2013-07-01 09:32:07 -07:00
Vinnie Falco
ca1eda2df1
Use LeakChecked throughout Beast
2013-07-01 09:32:04 -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
6dcf61669c
Return object in OwnedArray add routines
2013-07-01 09:32:02 -07:00
Vinnie Falco
e002000764
Fix assertion
2013-06-26 17:42:48 -07:00
Vinnie Falco
ded7eca60f
Fix false assertion
2013-06-26 17:42:47 -07:00
Vinnie Falco
6d13ddd43a
Fix Clang static analysis warnings
2013-06-26 00:19:41 -07:00
Vinnie Falco
d0a309e6da
Add beast_basics module
2013-06-17 07:09:33 -07:00
Vinnie Falco
f2d84f0a90
Add Beast fork from JUCE commit 265fb0e8ebc26e1469d6edcc68d2ca9acefeb508
2013-06-16 16:57:52 -07:00