|
scc 2025.09
SystemC components library
|
interface defining access to an indexed resource e.g. register file More...
#include <resource_access_if.h>

Public Types | |
| using | value_type = resource_access_if |
| using | pointer = value_type* |
| using | const_pointer = const value_type* |
| using | reference = value_type& |
| using | const_reference = const value_type& |
| using | iterator = resource_access_if* |
| using | const_iterator = const resource_access_if* |
Public Member Functions | |
| virtual std::size_t | size ()=0 |
| get the size of the resource | |
| virtual reference | operator[] (std::size_t idx) noexcept=0 |
| get value at index | |
| virtual const_reference | operator[] (std::size_t idx) const noexcept=0 |
| get value at index | |
| virtual reference | at (std::size_t idx)=0 |
| virtual const_reference | at (std::size_t idx) const =0 |
interface defining access to an indexed resource e.g. register file
Definition at line 103 of file resource_access_if.h.
| using scc::indexed_resource_access_if::const_iterator = const resource_access_if* |
Definition at line 111 of file resource_access_if.h.
| using scc::indexed_resource_access_if::const_pointer = const value_type* |
Definition at line 107 of file resource_access_if.h.
| using scc::indexed_resource_access_if::const_reference = const value_type& |
Definition at line 109 of file resource_access_if.h.
| using scc::indexed_resource_access_if::iterator = resource_access_if* |
Definition at line 110 of file resource_access_if.h.
| using scc::indexed_resource_access_if::pointer = value_type* |
Definition at line 106 of file resource_access_if.h.
| using scc::indexed_resource_access_if::reference = value_type& |
Definition at line 108 of file resource_access_if.h.
| using scc::indexed_resource_access_if::value_type = resource_access_if |
Definition at line 105 of file resource_access_if.h.
|
pure virtualnoexcept |
get value at index
get value at index with range checking
| idx | the index |
|
pure virtualnoexcept |
get value at index
get value at index with range checking
| idx | the index |
|
pure virtual |
get the size of the resource
Implemented in scc::sc_register_indexed< DATATYPE, SIZE, START >, and scc::sc_register_mem< DATATYPE, SIZE >.