Changed DSet.Element to DSet.Entry in preparation for the addition of

array element update support. (Arrays have elements, sets have entries.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1133 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-18 23:21:26 +00:00
parent 76cff072be
commit 7ccb9594b9
18 changed files with 323 additions and 327 deletions
+10 -10
View File
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
#
# $Id: gendobj,v 1.9 2002/03/08 01:05:39 mdb Exp $
# $Id: gendobj,v 1.10 2002/03/18 23:21:25 mdb Exp $
#
# gendobj is used to generate DObject source file definitons basded on
# abbreviated declarations. Because DObject fields all have standard
@@ -183,39 +183,39 @@ sub print_dobj_setters
print OUT <<EOF;
/**
* Requests that the specified element be added to the
* Requests that the specified entry be added to the
* <code>$field</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void addTo$cfield (DSet.Element elem)
public void addTo$cfield (DSet.Entry elem)
{
requestElementAdd($fcode, elem);
requestEntryAdd($fcode, elem);
}
/**
* Requests that the element matching the supplied key be removed from
* Requests that the entry matching the supplied key be removed from
* the <code>$field</code> set. The set will not change until the
* event is actually propagated through the system.
*/
public void removeFrom$cfield (Object key)
{
requestElementRemove($fcode, key);
requestEntryRemove($fcode, key);
}
/**
* Requests that the specified element be updated in the
* Requests that the specified entry be updated in the
* <code>$field</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void update$cfield (DSet.Element elem)
public void update$cfield (DSet.Entry elem)
{
requestElementUpdate($fcode, elem);
requestEntryUpdate($fcode, elem);
}
/**
* Requests that the <code>$field</code> field be set to the
* specified value. Generally one only adds, updates and removes
* elements of a distributed set, but certain situations call for a
* entries of a distributed set, but certain situations call for a
* complete replacement of the set value. The local value will be
* updated immediately and an event will be propagated through the
* system to notify all listeners that the attribute did