* Does a function with the given name belong to the class? * * The function may be a constructor, destructor, method, or virtual method. */
| 98 | * The function may be a constructor, destructor, method, or virtual method. |
| 99 | */ |
| 100 | bool Class::hasFunction(const std::string& name) const |
| 101 | { |
| 102 | return hasConstructor(name) || |
| 103 | hasDestructor(name) || |
| 104 | hasMethod(name) || |
| 105 | hasVirtualMethod(name); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * New super class is added only if there is not existing superclass of that name. |
no outgoing calls