1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 43 unchanged lines hidden (view full) --- 52#include <stdint.h> 53 54#include <exception> 55#include <iterator> 56#include <vector> 57 58#include "../core/sc_module.hh" 59#include "../core/sc_object.hh" |
60#include "messages.hh" |
61 62namespace sc_gem5 63{ 64 65// Goop for supporting sc_vector_iter, simplified from the Accellera version. 66 67#if __cplusplus >= 201103L 68 --- 109 unchanged lines hidden (view full) --- 178 179 // What's returned by get_elements, which really returns the elemenets 180 // which are also objects. 181 mutable std::vector<sc_object *> elements; 182 183 sc_object *implicitCast(sc_object *p) const { return p; } 184 sc_object *implicitCast(...) const 185 { |
186 SC_REPORT_ERROR(SC_ID_VECTOR_NONOBJECT_ELEMENTS_, name()); |
187 return nullptr; 188 } 189 virtual sc_object *objectCast(void *) const = 0; 190 191 void checkIndex(size_type index) const; 192 void forceParent() const; 193 void unforceParent() const; 194 --- 594 unchanged lines hidden --- |