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
6546c30e17
Refactor beast::asio:
...
* New tools for completion handlers:
- wrap_handler provides composed io_service execution guarantees.
- bind_handler rebinds arguments to handlers.
- shared_handler type-erases any completion handler.
- buffer_sequence type-erases templated BufferSequences
- abstract_socket replaces Socket
- socket_wrapper replaces SocketWrapper
- beast::asio placeholders to work with std::bind
* Removed obsolete classes and functions
- AbstractHandler
- ComposedAsyncOperation
- SharedFunction
- SharedHandler
- SharedHandlerAllocator
- SharedHandlerPtr
- SharedHandlerType
- SocketBase
- SocketWrapperStrand
- wrapHandler
* Refactored classes to use new tools
- abstract_socket
- socket_wrapper
- HandshakeDetector
- HttpClientType
* Miscellanous tidying
- socket classes moved to beast::asio namespace
- beast asio files provide their own namespace declaration.
- Fix IsCallPossible conflicting template parameter name
- Use <boost/get_pointer.hpp> for C++11 compatibility.
- Remove extraneous include path from build environment.
2014-03-14 08:03:48 -07:00
Howard Hinnant
bb02112752
Fix clang warnings
2014-02-28 12:15:12 -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
NATTSiM
eb19343f91
Fix clang compile
2013-12-27 17:46:51 -08:00
Nik Bougalis
370d98a858
Add reference counting to AsyncObject
2013-12-19 14:39:26 -08:00
Vinnie Falco
026b9268ae
Fix is_continuation for boost version
2013-09-28 15:09:09 -07:00
Vinnie Falco
c807a4e383
Fix invoked_type type reference
2013-09-28 15:09:09 -07:00
Vinnie Falco
9c61a6df62
Added AbstractHandler, WrapHandler. HTTPClient Fixes.
2013-09-28 15:09:07 -07:00
Vinnie Falco
1a3cddc002
Add SharedArg and AsyncObject
2013-09-22 11:51:43 -07:00
Vinnie Falco
77874ee518
Use new instead of ::new for placement
2013-09-17 17:47:05 -07:00
Vinnie Falco
9eda4bc6fa
Make SharedObject members const, the counter mutable
2013-09-12 04:47:03 -07:00
Vinnie Falco
c35843fda5
Add SharedFunction to replace boost::function
2013-09-07 11:53:36 -07:00
Vinnie Falco
3f74cb76e9
Rename boost_asio files
2013-09-07 11:53:34 -07:00
Vinnie Falco
85ced3dbf7
Use destroy() override instead of ContainerDeletePolicy for SharedObject
2013-09-07 11:53:32 -07:00
Vinnie Falco
201221253d
Refactor SharedPtr and fix ContainerDeletePolicy bug
2013-09-05 04:22:26 -07:00
Vinnie Falco
d9d291abcb
Tidy up includes and header material
2013-08-30 17:33:33 -07:00
Vinnie Falco
b4855b6ac9
New beast Socket, SharedHandler, ComposedAsyncOperation APIs
2013-08-21 19:41:22 -07:00