Transaction Class Reference
Declared in |
|
class Transaction; |
flip::Transaction is a type representing a record of the modifications on a document.
Member Functions Synopsys
Constructs the | |
Destructs the | |
Empty the transaction | |
Returns | |
Generate data from the transaction | |
Concatenate a transaction to this transaction |
Member Functions
Constructor
Transaction (); (1) |
Transaction (const Transaction & rhs); (2) |
Transaction (Transaction && rhs); (3) |
Transaction (const std::vector <uint8_t> & data); (4) |
- Default constructor, constructs an empty transaction.
- Copy constructor. Constructs the transaction with copy of
other. - Move constructor. Constructs the transaction by moving
other. - Constructor. Constructs the transaction from data previously produce by
serialize.
Destructor
~Transaction (); |
Destructor.
clear
void clear (); |
Empty the transaction and its metadata.
empty
bool empty () const; |
Returns true iff the transaction contains at least one instruction.
serialize
std::vector <uint8_t> serialize () const; |
Generate data from the transaction. This data can be stored everywhere or send over a network. The data contains the transaction instructions as well as metadata.
push
Transaction & push (Transaction && tx); |
Concatenate transaction tx to this transaction by moving tx.