Revision: 549
http://svn.sourceforge.net/pygccxml/?rev=549&view=rev
Author: roman_yakovenko
Date: 2006-09-18 02:10:13 -0700 (Mon, 18 Sep 2006)
Log Message:
-----------
adding set size property for array type
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/cpptypes.py
Modified: pygccxml_dev/pygccxml/declarations/cpptypes.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-09-18 08:18:09 UTC (rev 548)
+++ pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-09-18 09:10:13 UTC (rev 549)
@@ -13,8 +13,8 @@
"""base class for all types"""
def __init__(self):
object.__init__( self )
- self.cache = algorithms_cache.type_algs_cache_t()
-
+ self.cache = algorithms_cache.type_algs_cache_t()
+
def __str__(self):
res = self.decl_string
if res[:2]=="::":
@@ -378,7 +378,9 @@
def _get_size(self):
return self._size
- size = property( _get_size,
+ def _set_size(self, size):#sometimes there is a need to update the size of the array
+ self._size = size
+ size = property( _get_size, _set_size,
doc="returns array size" )
def _create_decl_string(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|