Class: HistoryBuffer

Defined in: lib/HistoryBuffer.coffee

Overview

Note: The HistoryBuffer is commonly abbreviated to HB.

An object that holds all applied operations.

Instance Method Summary

Constructor Details

~ (void) new HistoryBuffer()
~ (void) new HistoryBuffer(initial_content)

Overloads:

~ (void) new HistoryBuffer()

Creates an empty HB.

Parameters:

  • user_id ( Object ) Creator of the HB.

~ (void) new HistoryBuffer(initial_content)

Creates an HB with initial operations that represent the initial_value.

Parameters:

  • initial_content ( Array<Object> ) Initial content of the DUC

See also:

Instance Method Details

# (void) getUserId()

# (void) getOperationCounter()

# (void) toJson()

# (void) getNextOperationIdentifier(user_id)

Get the number of operations that were created by a user. Accordingly you will get the next operation number that is expected from that user. You'll get new results only if you added the operation with $addOperation.

# (void) getOperation(uid)

Retrieve an operation from a unique id.

# (void) addOperation(o)

Add an operation to the HB. Note that this will not link it against other operations (it wont be executable)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: