commit | 8841f35124a926fca8f8332dec5c20401724c263 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Sun Oct 12 19:18:36 2014 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Sun Oct 12 19:51:46 2014 -0700 |
tree | 35e36e50d2bb0e610b594ea53d800bf31c7cace4 | |
parent | 6f905aabc27231705af6377be73c9729b9c7fdac [diff] [blame] |
loci: add a function to determine whether a class is an inheritance root
diff --git a/c_gen/type_maps.py b/c_gen/type_maps.py index 69ecd41..abbc2d5 100644 --- a/c_gen/type_maps.py +++ b/c_gen/type_maps.py
@@ -53,6 +53,9 @@ return True return loxi_globals.unified.class_by_name(cls).virtual +def class_is_inheritance_root(cls): + return cls in inheritance_roots + # map from parent class name to set of subclass names inheritance_map = dict()