| 42 | } |
| 43 | |
| 44 | bool Struct::isNet() const { |
| 45 | if (!m_typespec) { |
| 46 | return false; |
| 47 | } |
| 48 | if (m_typespec->UhdmType() != UHDM::uhdmstruct_typespec) return false; |
| 49 | const UHDM::struct_typespec* tps = (const UHDM::struct_typespec*)m_typespec; |
| 50 | if (tps->Members()) { |
| 51 | for (UHDM::typespec_member* member : *tps->Members()) { |
| 52 | if (const UHDM::ref_typespec* rt = member->Typespec()) { |
| 53 | if (const UHDM::typespec* ag = rt->Actual_typespec()) { |
| 54 | if (ag->UhdmType() != UHDM::uhdmlogic_typespec) { |
| 55 | return false; |
| 56 | } |
| 57 | } else { |
| 58 | return false; |
| 59 | } |
| 60 | } else { |
| 61 | return false; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | return true; |
| 66 | } |
| 67 | |
| 68 | } // namespace SURELOG |
no outgoing calls
no test coverage detected