gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/org/nongnu/libvob/impl DefaultVobMatcher...


From: Benja Fallenstein
Subject: [Gzz-commits] libvob/org/nongnu/libvob/impl DefaultVobMatcher...
Date: Thu, 24 Apr 2003 10:44:18 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Benja Fallenstein <address@hidden>      03/04/24 10:44:18

Modified files:
        org/nongnu/libvob/impl: DefaultVobMatcher.java 

Log message:
        Add method to DefaultVobMatcher for getting the keys
        of the coordsys that are children of a given cs.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java
diff -u libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java:1.2 
libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java:1.3
--- libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java:1.2    Fri Mar  7 
06:38:21 2003
+++ libvob/org/nongnu/libvob/impl/DefaultVobMatcher.java        Thu Apr 24 
10:44:18 2003
@@ -33,7 +33,7 @@
 /** A simple hierarchical implementation of VobMatcher.
  */
 public class DefaultVobMatcher implements VobMatcher {
-private static final String rcsid = "$Id: DefaultVobMatcher.java,v 1.2 
2003/03/07 11:38:21 tjl Exp $";  
+private static final String rcsid = "$Id: DefaultVobMatcher.java,v 1.3 
2003/04/24 14:44:18 benja Exp $";  
     public static boolean dbg = false;
     private static void pa(String s) { System.out.println(s); }
 
@@ -70,6 +70,16 @@
 
     public DefaultVobMatcher() {
         add(-1, 0, null);
+    }
+
+    /** Get the keys of all children of the given cs. 
+     */
+    public Set getKeys(int cs) {
+       Set result = new HashSet();
+       for(int i=0; i<=maxcs; i++)
+           if(keyByCs[i].parent == cs)
+               result.add(keyByCs[i].key);
+       return result;
     }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]