rippled
|
Identifies fields. More...
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_Default } |
enum | IsSigning : unsigned char { IsSigning::no, IsSigning::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, const char *fn, int meta=sMD_Default, IsSigning signing=IsSigning::yes) | |
SField (private_access_tag_t, int fc) | |
std::string const & | getName () const |
bool | hasName () const |
Json::StaticString const & | getJsonName () 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== (const SField &f) const |
bool | operator!= (const SField &f) const |
Static Public Member Functions | |
static const SField & | getField (int fieldCode) |
static const SField & | getField (std::string const &fieldName) |
static const SField & | getField (int type, int value) |
static const SField & | getField (SerializedTypeID type, int value) |
static int | getNumFields () |
static int | compare (const SField &f1, const SField &f2) |
Public Attributes | |
const int | fieldCode |
const SerializedTypeID | fieldType |
const int | fieldValue |
const std::string | fieldName |
const int | fieldMeta |
const int | fieldNum |
const IsSigning | signingField |
const Json::StaticString | jsonName |
Static Public Attributes | |
static const IsSigning | notSigning = IsSigning::no |
Static Private Attributes | |
static int | num = 0 |
static std::map< int, SField const * > | knownCodeToField |
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, | ||
const char * | fn, | ||
int | meta = sMD_Default , |
||
IsSigning | signing = IsSigning::yes |
||
) |
Definition at line 355 of file SField.cpp.
|
explicit |
Definition at line 374 of file SField.cpp.
|
static |
Definition at line 387 of file SField.cpp.
|
static |
Definition at line 415 of file SField.cpp.
|
static |
|
static |
std::string const& ripple::SField::getName | ( | ) | const |
Json::StaticString const& ripple::SField::getJsonName | ( | ) | const |
bool ripple::SField::shouldInclude | ( | bool | withSigningField | ) | const |
Definition at line 399 of file SField.cpp.
|
static |
const SerializedTypeID ripple::SField::fieldType |
const std::string ripple::SField::fieldName |
const Json::StaticString ripple::SField::jsonName |