home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / lsEstuff / docs / dbmap.doc < prev    next >
Encoding:
Text File  |  1999-10-02  |  2.2 KB  |  169 lines

  1.  
  2. /* dynamic bitmap/mask/filter/etc class */
  3. /* version 1.0 990931 by Leif_Salomonsson@swipnet.se */
  4. /* !!emailware!! */
  5. /* 2d/3d versions coming up soon! :) */
  6.  
  7. dbmapX.dbmapX()
  8. dbmapX.set()
  9. dbmapX.clr()
  10. dbmapX.get()
  11. dbmapX.clear()
  12. dbmapX.count()
  13. dbmapX.getMax()
  14. dbmapX.getMin()
  15. dbmapX.cmp()
  16. dbmapX.or()
  17. dbmapX.xor()
  18. dbmapX.and()
  19. dbmapX.end()
  20.  
  21.  
  22. dbmapX.dbmapX()
  23.  
  24.     NAME
  25.         dbmapX()
  26.     SYNOPSIS
  27.         NEW dbmapX.dbmapX()
  28.     FUNCTION
  29.         The class constructor.
  30.  
  31.  
  32. dbmapX.set()
  33.  
  34.     NAME
  35.         set()
  36.     SYNOPSIS
  37.         dbmapX.set(x)
  38.     FUNCTION
  39.         Set a bit in the map. x range : +-2gig
  40.  
  41.  
  42. dbmapX.clr()
  43.  
  44.     NAME
  45.         clr()
  46.     SYNOPSIS
  47.         dbmapX.clr(x)
  48.     FUNCTION
  49.         Clear a bit in the map. x range : +-2gig
  50.  
  51.  
  52. dbmapX.get()
  53.  
  54.     NAME
  55.         get()
  56.     SYNOPSIS
  57.         dbmapX.get(x)
  58.     FUNCTION
  59.         Get a bit in the map. x range : +-2gig
  60.     RESULT
  61.         1 or 0.
  62.  
  63. dbmapX.clear()
  64.  
  65.     NAME
  66.         clear()
  67.     SYNOPSIS
  68.         dbmapX.clear()
  69.     FUNCTION
  70.         Clears the hole map (all zero).
  71.  
  72.  
  73. dbmapX.count()
  74.  
  75.     NAME
  76.         count()
  77.     SYNOPSIS
  78.         dbmapX.count()
  79.     FUNCTION
  80.         Get nr of 1-bits in map.
  81.  
  82.  
  83. dbmapX.getMax()
  84.  
  85.     NAME
  86.         getMax()
  87.     SYNOPSIS
  88.         dbmapX.getMax()
  89.     FUNCTION
  90.         Get the maximum index containing 1.
  91.  
  92.  
  93. dbmapX.getMin()
  94.  
  95.     NAME
  96.         getMin()
  97.     SYNOPSIS
  98.         dbmapX.getMin()
  99.     FUNCTION
  100.         Get the minimum index containing 1
  101.  
  102.  
  103. dbmapX.cmp()
  104.  
  105.     NAME
  106.         cmp()
  107.     SYNOPSIS
  108.         dbmapX.cmp(dbmapX:PTR TO dbmapX)
  109.     FUNCTION
  110.         Compares this map with other.
  111.     RESULT
  112.         TRUE if EQ else FALSE.
  113.     NOTES
  114.         This is faast! :)
  115.  
  116.  
  117. dbmapX.or()
  118.  
  119.     NAME
  120.         or()
  121.     SYNOPSIS
  122.         dbmapX.or(dbmapX:PTR TO dbmapX)
  123.     FUNCTION
  124.         OR that map into this.
  125.  
  126.  
  127. dbmapX.xor()
  128.  
  129.     NAME
  130.         xor()
  131.     SYNOPSIS
  132.         dbmapX.xor(dbmapX:PTR TO dbmapX)
  133.     FUNCTION
  134.         XOR that map into this.
  135.  
  136.  
  137. dbmapX.and()
  138.  
  139.     NAME
  140.         and()
  141.     SYNOPSIS
  142.         dbmapX.and(dbmapX:PTR TO dbmapX)
  143.     FUNCTION
  144.         AND that map into this.
  145.     NOTES
  146.         This is faast! :)
  147.  
  148.  
  149. dbmapX.end()
  150.  
  151.     NAME
  152.         end()
  153.     SYNOPSIS
  154.         dbmapX.end()
  155.     FUNCTION
  156.         The class destructor.
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.