* @brief Returns pointerType from context. * * @return Requested pointerType. If it is not in context return @c nullptr. * * @par Preconditions * - @a pointedType is not null */
| 172 | * - @a pointedType is not null |
| 173 | */ |
| 174 | std::shared_ptr<PointerType> Context::getPointerType( |
| 175 | const std::shared_ptr<Type> &pointedType) const |
| 176 | { |
| 177 | assert(pointedType && "violated precondition - pointedType cannot be null"); |
| 178 | |
| 179 | return retdec::utils::mapGetValueOrDefault(pointerTypes, pointedType); |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * @brief Inserts new pointerType with specific name to context. |
no test coverage detected