mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve regularity of STObject and STArray (RIPD-448, RIPD-544):
* reduce duplicated code using templates * replace BOOST_FOREACH with C++11 for loops * remove most direct calls to new * limit line length to 80 characters * clearly identify virtual and overridden methods * split STObject and STArray into their own files * name files after the class they contain
This commit is contained in:
committed by
Nik Bougalis
parent
c55777738f
commit
b5224a2227
@@ -75,7 +75,8 @@
|
||||
#include <ripple/module/data/protocol/SerializedTypes.cpp>
|
||||
#include <ripple/module/data/protocol/Serializer.cpp>
|
||||
#include <ripple/module/data/protocol/SerializedObjectTemplate.cpp>
|
||||
#include <ripple/module/data/protocol/SerializedObject.cpp>
|
||||
#include <ripple/module/data/protocol/STObject.cpp>
|
||||
#include <ripple/module/data/protocol/STArray.cpp>
|
||||
#include <ripple/module/data/protocol/TER.cpp>
|
||||
#include <ripple/module/data/protocol/TxFormats.cpp>
|
||||
|
||||
|
||||
@@ -39,10 +39,11 @@ typedef struct bignum_st BIGNUM;
|
||||
#include <ripple/module/data/protocol/TER.h>
|
||||
#include <ripple/module/data/protocol/SerializedTypes.h> // needs Serializer, TER
|
||||
#include <ripple/module/data/protocol/SerializedObjectTemplate.h>
|
||||
#include <ripple/module/data/protocol/KnownFormats.h>
|
||||
#include <ripple/module/data/protocol/LedgerFormats.h> // needs SOTemplate from SerializedObjectTemplate
|
||||
#include <ripple/module/data/protocol/TxFormats.h>
|
||||
#include <ripple/module/data/protocol/SerializedObject.h>
|
||||
#include <ripple/module/data/protocol/KnownFormats.h>
|
||||
#include <ripple/module/data/protocol/LedgerFormats.h> // needs SOTemplate from SerializedObjectTemplate
|
||||
#include <ripple/module/data/protocol/TxFormats.h>
|
||||
#include <ripple/module/data/protocol/STObject.h>
|
||||
#include <ripple/module/data/protocol/STArray.h>
|
||||
#include <ripple/module/data/protocol/TxFlags.h>
|
||||
|
||||
#include <ripple/module/data/utility/UptimeTimerAdapter.h>
|
||||
|
||||
Reference in New Issue
Block a user