Skip to content

Commit

Permalink
Update asg.py [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Jan 24, 2018
1 parent 74809d7 commit f524e19
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,13 +1144,21 @@ def is_instantiable(self):
else:
return self.destructor is not None and self.destructor.access == 'public'

@is_instantiable.setter
def is_instantiable(self, is_instantiable):
self._asg._nodes[self._node]['_is_instantiable'] = is_instantiable

@property
def is_assignable(self):
if hasattr(self, '_is_assignable'):
return self._is_assignable
else:
return all(method.access == 'public' for method in self.methods(pattern='.*operator=', access='deleted'))

@is_assignable.setter
def is_assignable(self, is_assignable):
self._asg._nodes[self._node]['_is_assignable'] = is_assignable

@property
def is_derived(self):
return len(self._asg._base_edges[self._node]) > 0
Expand Down Expand Up @@ -1384,10 +1392,6 @@ class ClassTemplateSpecializationProxy(ClassProxy, TemplateSpecializationProxy):
"""
"""

@property
def is_complete(self):
return self._is_complete or len(self.declarations()) > 0

@property
def header(self):
if not hasattr(self, '_header'):
Expand Down

0 comments on commit f524e19

Please sign in to comment.