rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
ripple::JsonOptions Struct Reference

Note, should be treated as flags that can be | and &. More...

#include <STBase.h>

Public Types

enum  values : underlying_t { none = 0b0000'0000 , include_date = 0b0000'0001 , disable_API_prior_V2 = 0b0000'0010 , _all = 0b0000'0011 }
 
using underlying_t = unsigned int
 

Public Member Functions

constexpr JsonOptions (underlying_t v) noexcept
 
constexpr operator underlying_t () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr auto friend operator== (JsonOptions lh, JsonOptions rh) noexcept -> bool=default
 
constexpr auto friend operator!= (JsonOptions lh, JsonOptions rh) noexcept -> bool=default
 
constexpr JsonOptions friend operator| (JsonOptions lh, JsonOptions rh) noexcept
 Returns JsonOptions union of lh and rh.
 
constexpr JsonOptions friend operator& (JsonOptions lh, JsonOptions rh) noexcept
 Returns JsonOptions intersection of lh and rh.
 
constexpr JsonOptions friend operator~ (JsonOptions v) noexcept
 Returns JsonOptions binary negation, can be used with & (above) for set difference e.g.
 

Public Attributes

underlying_t value
 

Detailed Description

Note, should be treated as flags that can be | and &.

Definition at line 36 of file STBase.h.

Member Typedef Documentation

◆ underlying_t

using ripple::JsonOptions::underlying_t = unsigned int

Definition at line 38 of file STBase.h.

Member Enumeration Documentation

◆ values

Enumerator
none 
include_date 
disable_API_prior_V2 
_all 

Definition at line 41 of file STBase.h.

Constructor & Destructor Documentation

◆ JsonOptions()

constexpr ripple::JsonOptions::JsonOptions ( underlying_t  v)
constexprnoexcept

Definition at line 52 of file STBase.h.

Member Function Documentation

◆ operator underlying_t()

constexpr ripple::JsonOptions::operator underlying_t ( ) const
explicitconstexprnoexcept

Definition at line 57 of file STBase.h.

◆ operator bool()

constexpr ripple::JsonOptions::operator bool ( ) const
explicitconstexprnoexcept

Definition at line 62 of file STBase.h.

◆ operator==()

constexpr auto friend ripple::JsonOptions::operator== ( JsonOptions  lh,
JsonOptions  rh 
) -> bool=default
constexprdefaultnoexcept

◆ operator!=()

constexpr auto friend ripple::JsonOptions::operator!= ( JsonOptions  lh,
JsonOptions  rh 
) -> bool=default
constexprdefaultnoexcept

◆ operator|()

constexpr JsonOptions friend ripple::JsonOptions::operator| ( JsonOptions  lh,
JsonOptions  rh 
)
constexprnoexcept

Returns JsonOptions union of lh and rh.

Definition at line 73 of file STBase.h.

◆ operator&()

constexpr JsonOptions friend ripple::JsonOptions::operator& ( JsonOptions  lh,
JsonOptions  rh 
)
constexprnoexcept

Returns JsonOptions intersection of lh and rh.

Definition at line 80 of file STBase.h.

◆ operator~()

constexpr JsonOptions friend ripple::JsonOptions::operator~ ( JsonOptions  v)
constexprnoexcept

Returns JsonOptions binary negation, can be used with & (above) for set difference e.g.

(options & ~JsonOptionsinclude_date)

Definition at line 88 of file STBase.h.

Member Data Documentation

◆ value

underlying_t ripple::JsonOptions::value

Definition at line 39 of file STBase.h.