MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getBaseDataType

Method getBaseDataType

src/Testbench/ClassDefinition.cpp:189–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189const DataType* ClassDefinition::getBaseDataType(std::string_view name) const {
190 const DataTypeMap& dataTypes = getDataTypeMap();
191 DataTypeMap::const_iterator itr = dataTypes.find(name);
192 if (itr == dataTypes.end()) {
193 for (const auto& parent : getBaseClassMap()) {
194 if (parent.second) {
195 const ClassDefinition* cparent =
196 datatype_cast<const ClassDefinition*>(parent.second);
197 if (cparent) {
198 const DataType* d = cparent->getBaseDataType(name);
199 if (d) return d;
200 }
201 }
202 }
203 return nullptr;
204 } else {
205 return (*itr).second;
206 }
207}
208
209bool ClassDefinition::hasCompleteBaseSpecification() const {
210 for (const auto& parent : getBaseClassMap()) {

Callers 1

bindDataType_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected