scc
2022.4.0
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 More... | |
virtual reference | operator[] (std::size_t idx) noexcept=0 |
get value at index More... | |
virtual const_reference | operator[] (std::size_t idx) const noexcept=0 |
get value at index More... | |
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.
|
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 >.