Searched refs:depth (Results 1 - 8 of 8) sorted by relevance
/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/ |
H A D | ReverseRope.java | 39 private final byte depth;
field in class:ReverseRope 51 this.depth = (byte) (RopeUtilities.INSTANCE.depth(rope) + 1);
60 public byte depth() {
method in class:ReverseRope 61 return this.depth;
|
H A D | RopeUtilities.java | 43 * Rebalance a rope if the depth has exceeded MAX_ROPE_DEPTH. If the
44 * rope depth is less than MAX_ROPE_DEPTH or if the rope is of unknown
50 if (r instanceof AbstractRope && ((AbstractRope) r).depth() > RopeUtilities.MAX_ROPE_DEPTH) {
102 * Returns the depth of the specified rope.
104 * @return the depth of the specified rope.
106 byte depth(final Rope r) {
method in class:RopeUtilities 108 return ((AbstractRope)r).depth();
115 final byte depth = this.depth(r);
116 if (depth > 195 visualize(final Rope r, final PrintStream out, final int depth) argument [all...] |
H A D | SubstringRope.java | 41 private final byte depth;
field in class:SubstringRope 50 this.depth = (byte) (RopeUtilities.INSTANCE.depth(rope) + 1);
59 public byte depth() {
method in class:SubstringRope 60 return this.depth;
|
H A D | ConcatenationRope.java | 39 private final byte depth;
field in class:ConcatenationRope 50 this.depth = (byte) (Math.max(RopeUtilities.INSTANCE.depth(left), RopeUtilities.INSTANCE.depth(right)) + 1);
66 public byte depth() {
method in class:ConcatenationRope 67 return this.depth;
|
H A D | FlatCharSequenceRope.java | 55 public byte depth() {
method in class:FlatCharSequenceRope
|
H A D | FlatCharArrayRope.java | 68 public byte depth() {
method in class:FlatCharArrayRope
|
H A D | AbstractRope.java | 79 * The depth of the current rope, as defined in "Ropes: an Alternative
82 public abstract byte depth();
method in class:AbstractRope
|
/ropes-1.1.3/src/org/ahmadsoft/ropes/test/ |
H A D | PerformanceTest.java | 499 System.out.printf("[Rope] Executed append plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
515 System.out.printf("[Rope] Executed delete plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
532 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
550 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
566 System.out.printf("[Rope] Executed prepend plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
|
Completed in 5 milliseconds