Searched refs:depth (Results 1 - 9 of 9) sorted by relevance
/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/ |
H A D | RopeUtilities.java | 44 * Rebalance a rope if the depth has exceeded MAX_ROPE_DEPTH. If the
45 * rope depth is less than MAX_ROPE_DEPTH or if the rope is of unknown
51 if (r instanceof AbstractRope && ((AbstractRope) r).depth() > RopeUtilities.MAX_ROPE_DEPTH) {
97 * Returns the depth of the specified rope.
99 * @return the depth of the specified rope.
101 byte depth(final Rope r) {
method in class:RopeUtilities 103 return ((AbstractRope)r).depth();
111 final byte depth = this.depth(r);
112 if (depth > 158 visualize(final Rope r, final PrintStream out, final int depth) argument [all...] |
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);
63 public byte depth() {
method in class:ConcatenationRope 64 return this.depth;
|
H A D | ReverseRope.java | 58 public byte depth() {
method in class:ReverseRope 59 return RopeUtilities.INSTANCE.depth(this.rope);
|
H A D | SubstringRope.java | 60 public byte depth() {
method in class:SubstringRope 61 return RopeUtilities.INSTANCE.depth(getRope());
|
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.2.5/ |
H A D | ropes.jar | ... delete (int, int) int start
int end
public abstract byte depth () public boolean equals (java.lang.Object) char a ... |
/ropes-1.2.5/src/org/ahmadsoft/ropes/test/ |
H A D | PerformanceTest.java | 512 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());
528 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());
545 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());
581 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());
597 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 13 milliseconds