lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [17/22] lucy-clownfish git commit: Make Vector API public
Date Wed, 29 Apr 2015 19:55:18 GMT
Make Vector API public


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/9423582d
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/9423582d
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/9423582d

Branch: refs/heads/master
Commit: 9423582de4da212ea2d17b9ee423ba6a1eda94d8
Parents: 3fb61a7
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Apr 26 20:10:49 2015 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Apr 26 21:01:05 2015 +0200

----------------------------------------------------------------------
 runtime/core/Clownfish/Vector.cfh | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9423582d/runtime/core/Clownfish/Vector.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Vector.cfh b/runtime/core/Clownfish/Vector.cfh
index 4fe17ab..e280921 100644
--- a/runtime/core/Clownfish/Vector.cfh
+++ b/runtime/core/Clownfish/Vector.cfh
@@ -18,46 +18,46 @@ parcel Clownfish;
 
 /** Variable-sized array.
  */
-class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
+public class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
 
     Obj      **elems;
     size_t     size;
     size_t     cap;
 
-    inert incremented Vector*
+    public inert incremented Vector*
     new(size_t capacity = 0);
 
     /**
      * @param capacity Initial number of elements that the object will be able
      * to hold before reallocation.
      */
-    inert Vector*
+    public inert Vector*
     init(Vector *self, size_t capacity = 0);
 
     /** Push an item onto the end of a Vector.
      */
-    void
+    public void
     Push(Vector *self, decremented Obj *element = NULL);
 
     /** Push all the elements of another Vector onto the end of this one.
      */
-    void
+    public void
     Push_All(Vector *self, Vector *other);
 
     /** Pop an item off of the end of a Vector.
      */
-    incremented nullable Obj*
+    public incremented nullable Obj*
     Pop(Vector *self);
 
     /** Insert an element at `tick` moving the following elements.
      */
-    void
+    public void
     Insert(Vector *self, size_t tick, decremented Obj *element = NULL);
 
     /** Inserts elements from `other` vector at `tick` moving the following
      * elements.
      */
-    void
+    public void
     Insert_All(Vector *self, size_t tick, Vector *other);
 
     /** Ensure that the Vector has room for at least `capacity`
@@ -68,26 +68,26 @@ class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
 
     /** Fetch the element at `tick`.
      */
-    nullable Obj*
+    public nullable Obj*
     Fetch(Vector *self, size_t tick);
 
     /** Store an element at index `tick`, possibly displacing an
      * existing element.
      */
-    void
+    public void
     Store(Vector *self, size_t tick, decremented Obj *elem = NULL);
 
     /** Replace an element in the Vector with NULL and return it.
      *
      * @return whatever was stored at `tick`.
      */
-    incremented nullable Obj*
+    public incremented nullable Obj*
     Delete(Vector *self, size_t tick);
 
     /** Remove `length` elements from the vector, starting at
      * `offset`. Move elements over to fill in the gap.
      */
-    void
+    public void
     Excise(Vector *self, size_t offset, size_t length);
 
     /** Clone the Vector but merely increment the refcounts of its elements
@@ -98,19 +98,19 @@ class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
 
     /** Sort the Vector.
      */
-    void
+    public void
     Sort(Vector *self);
 
     /** Set the size for the Vector.  If the new size is larger than the
      * current size, grow the object to accommodate NULL elements; if smaller
      * than the current size, decrement and discard truncated elements.
      */
-    void
+    public void
     Resize(Vector *self, size_t size);
 
     /** Empty the Vector.
      */
-    void
+    public void
     Clear(Vector *self);
 
     /** Accessor for `size` member.


Mime
View raw message