scc 2025.09
SystemC components library
scc::indexed_resource_access_if Class Referenceabstract

interface defining access to an indexed resource e.g. register file More...

#include <resource_access_if.h>

Inheritance diagram for scc::indexed_resource_access_if:

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

Detailed Description

interface defining access to an indexed resource e.g. register file

Definition at line 103 of file resource_access_if.h.

Member Typedef Documentation

◆ const_iterator

using scc::indexed_resource_access_if::const_iterator = const resource_access_if*

Definition at line 111 of file resource_access_if.h.

◆ const_pointer

using scc::indexed_resource_access_if::const_pointer = const value_type*

Definition at line 107 of file resource_access_if.h.

◆ const_reference

using scc::indexed_resource_access_if::const_reference = const value_type&

Definition at line 109 of file resource_access_if.h.

◆ iterator

using scc::indexed_resource_access_if::iterator = resource_access_if*

Definition at line 110 of file resource_access_if.h.

◆ pointer

using scc::indexed_resource_access_if::pointer = value_type*

Definition at line 106 of file resource_access_if.h.

◆ reference

using scc::indexed_resource_access_if::reference = value_type&

Definition at line 108 of file resource_access_if.h.

◆ value_type

using scc::indexed_resource_access_if::value_type = resource_access_if

Definition at line 105 of file resource_access_if.h.

Member Function Documentation

◆ operator[]() [1/2]

virtual const_reference scc::indexed_resource_access_if::operator[] ( std::size_t idx) const
pure virtualnoexcept

get value at index

get value at index with range checking

Parameters
idxthe index
Returns
the value

◆ operator[]() [2/2]

virtual reference scc::indexed_resource_access_if::operator[] ( std::size_t idx)
pure virtualnoexcept

get value at index

get value at index with range checking

Parameters
idxthe index
Returns
the value

◆ size()

virtual std::size_t scc::indexed_resource_access_if::size ( )
pure virtual

get the size of the resource

Returns
size of the resource in bytes

Implemented in scc::sc_register_indexed< DATATYPE, SIZE, START >, and scc::sc_register_mem< DATATYPE, SIZE >.


The documentation for this class was generated from the following file: