|
rippled
|
Identifies fields. More...
#include <SField.h>


Classes | |
| struct | private_access_tag_t |
Public Types | |
| enum | { sMD_Never = 0x00 , sMD_ChangeOrig = 0x01 , sMD_ChangeNew = 0x02 , sMD_DeleteFinal = 0x04 , sMD_Create = 0x08 , sMD_Always = 0x10 , sMD_BaseTen = 0x20 , sMD_PseudoAccount = 0x40 , sMD_Default } |
| enum class | IsSigning : unsigned char { no , yes } |
Public Member Functions | |
| SField (SField const &)=delete | |
| SField & | operator= (SField const &)=delete |
| SField (SField &&)=delete | |
| SField & | operator= (SField &&)=delete |
| SField (private_access_tag_t, SerializedTypeID tid, int fv, char const *fn, int meta=sMD_Default, IsSigning signing=IsSigning::yes) | |
| SField (private_access_tag_t, int fc, char const *fn) | |
| std::string const & | getName () const |
| bool | hasName () const |
| Json::StaticString const & | getJsonName () const |
| operator Json::StaticString const & () const | |
| bool | isInvalid () const |
| bool | isUseful () const |
| bool | isBinary () const |
| bool | isDiscardable () const |
| int | getCode () const |
| int | getNum () const |
| bool | shouldMeta (int c) const |
| bool | shouldInclude (bool withSigningField) const |
| bool | operator== (SField const &f) const |
| bool | operator!= (SField const &f) const |
Static Public Member Functions | |
| static SField const & | getField (int fieldCode) |
| static SField const & | getField (std::string const &fieldName) |
| static SField const & | getField (int type, int value) |
| static SField const & | getField (SerializedTypeID type, int value) |
| static int | getNumFields () |
| static int | compare (SField const &f1, SField const &f2) |
| static std::unordered_map< int, SField const * > const & | getKnownCodeToField () |
Public Attributes | |
| int const | fieldCode |
| SerializedTypeID const | fieldType |
| int const | fieldValue |
| std::string const | fieldName |
| int const | fieldMeta |
| int const | fieldNum |
| IsSigning const | signingField |
| Json::StaticString const | jsonName |
Static Public Attributes | |
| static IsSigning const | notSigning = IsSigning::no |
Static Private Attributes | |
| static int | num = 0 |
| static std::unordered_map< int, SField const * > | knownCodeToField |
| static std::unordered_map< std::string, SField const * > | knownNameToField |
Identifies fields.
Fields are necessary to tag data in signed transactions so that the binary format of the transaction can be canonicalized. All SFields are created at compile time.
Each SField, once constructed, lives until program termination, and there is only one instance per fieldType/fieldValue pair which serves the entire application.
| anonymous enum |
|
strong |
|
delete |
|
delete |
| ripple::SField::SField | ( | private_access_tag_t | , |
| SerializedTypeID | tid, | ||
| int | fv, | ||
| char const * | fn, | ||
| int | meta = sMD_Default, |
||
| IsSigning | signing = IsSigning::yes |
||
| ) |
Definition at line 88 of file SField.cpp.
|
explicit |
Definition at line 114 of file SField.cpp.
|
static |
Definition at line 135 of file SField.cpp.
|
static |
Definition at line 163 of file SField.cpp.
|
static |
|
static |
| std::string const & ripple::SField::getName | ( | ) | const |
| Json::StaticString const & ripple::SField::getJsonName | ( | ) | const |
| ripple::SField::operator Json::StaticString const & | ( | ) | const |
| bool ripple::SField::shouldInclude | ( | bool | withSigningField | ) | const |
Definition at line 147 of file SField.cpp.
|
static |
|
static |
| SerializedTypeID const ripple::SField::fieldType |
| std::string const ripple::SField::fieldName |
| Json::StaticString const ripple::SField::jsonName |
|
staticprivate |
|
staticprivate |