
Public Types | |
| enum | PACKET_STATE : int { PACKET_HAS_PRIORITY = -1 } |
Public Member Functions | |
| PacketWrapper (const local_shared_ptr< Packet > &x, int64_t bundle_serial) noexcept | |
| PacketWrapper (const shared_ptr< Linkage > &bp, int reverse_index, int64_t bundle_serial) noexcept | |
| PacketWrapper (const PacketWrapper &x, int64_t bundle_serial) noexcept | |
| bool | hasPriority () const noexcept |
| const local_shared_ptr< Packet > & | packet () const noexcept |
| local_shared_ptr< Packet > & | packet () noexcept |
| shared_ptr< Linkage > | bundledBy () const noexcept |
| Points to the upper node that should have the up-to-date Packet when this lacks priority. | |
| int | reverseIndex () const noexcept |
| The index for this node in the list of the upper node. | |
| void | setReverseIndex (int i) noexcept |
| void | print_ () const |
| PacketWrapper (const PacketWrapper &)=delete | |
Public Member Functions inherited from atomic_countable | |
| atomic_countable (const atomic_countable &) noexcept | |
| atomic_countable & | operator= (const atomic_countable &)=delete |
Public Attributes | |
| weak_ptr< Linkage > const | m_bundledBy |
| local_shared_ptr< Packet > | m_packet |
| int | m_ridx |
| int64_t | m_bundle_serial |
A class wrapping Packet and providing indice and links for lookup.
If packet() is absent, a super node should have the up-to-date Packet.
If hasPriority() is not set, Packet in a super node may be latest.
Definition at line 287 of file transaction.h.
|
noexcept |
creates a wrapper not containing a packet but pointing to the upper node.
| [in] | bp | m_link of the upper node. |
| [in] | reverse_index | The index for this node in the list of the upper node. |
Definition at line 119 of file transaction_impl.h.
1.8.3