#include <rc_switch_connector.h>

This is the base class of rc_switch_connector<PortMap>.
The base class provides all methods necessary for binding.
Definition at line 74 of file rc_switch_connector.h.
Public Member Functions | |
| int | size () const |
| The size of this switch connector. | |
| rc_switch & | get (int index) const |
| Get switch at given index. | |
| rc_switch & | operator[] (int index) const |
| Convenience operator. Same as get(). | |
| virtual bool | is_compatible (const rc_portmap_base &portmap) const =0 |
| Tests for compatibility with the given port map. | |
| void | bind_static (const rc_portmap_base &portmap) |
| Bind the switches to a compatible static port map. | |
| void | bind_dynamic (const rc_portmap_base &portmap) |
| Bind the switches to a compatible dynamic port map. | |
| void | bind_dynamic (rc_reconfigurable &reconf) |
| Bind the switches to a compatible reconfigurable object. | |
Protected Member Functions | |
| rc_switch_connector_base (const char *name) | |
| Constructor. | |
| virtual | ~rc_switch_connector_base () |
| Virtual destructor. | |
| void | _rc_init (rc_switch *switch_arr[], int size) |
| Initialise. (internal only). | |
Private Types | |
| typedef rc_switch_connector_base | this_type |
Private Member Functions | |
| rc_switch_connector_base (const this_type &other) | |
| (disabled) | |
| this_type & | operator= (const this_type &other) |
| (disabled) | |
Private Attributes | |
| rc_switch ** | p_switch_arr |
| The array of managed switches. | |
| int | p_size |
| The number of managed switches. | |
typedef rc_switch_connector_base this_type [private] |
| rc_switch_connector_base | ( | const char * | name | ) | [inline, protected] |
Constructor.
| name | the name of the switch connector. |
Definition at line 85 of file rc_switch_connector.h.
| virtual ~rc_switch_connector_base | ( | ) | [inline, protected, virtual] |
| rc_switch_connector_base | ( | const this_type & | other | ) | [private] |
(disabled)
| int size | ( | ) | const [inline] |
The size of this switch connector.
Equals the number of switches (respectively the size of the port map).
Definition at line 97 of file rc_switch_connector.h.
| rc_switch & get | ( | int | index | ) | const |
Get switch at given index.
| index | number in the range of 0 to p_size |
Definition at line 42 of file rc_switch_connector.cpp.
| rc_switch& operator[] | ( | int | index | ) | const [inline] |
| virtual bool is_compatible | ( | const rc_portmap_base & | portmap | ) | const [pure virtual] |
Tests for compatibility with the given port map.
Implemented in rc_switch_connector.
Referenced by rc_reconfigurable::_rc_get_compatible_portmap(), and rc_reconfigurable::bind().
| void bind_static | ( | const rc_portmap_base & | portmap | ) |
Bind the switches to a compatible static port map.
Definition at line 53 of file rc_switch_connector.cpp.
| void bind_dynamic | ( | const rc_portmap_base & | portmap | ) |
Bind the switches to a compatible dynamic port map.
Definition at line 66 of file rc_switch_connector.cpp.
Referenced by rc_reconfigurable::bind().
| void bind_dynamic | ( | rc_reconfigurable & | reconf | ) |
Bind the switches to a compatible reconfigurable object.
Definition at line 79 of file rc_switch_connector.cpp.
| void _rc_init | ( | rc_switch * | switch_arr[], | |
| int | size | |||
| ) | [protected] |
Initialise. (internal only).
Definition at line 84 of file rc_switch_connector.cpp.
Referenced by rc_switch_connector::rc_switch_connector().
rc_switch** p_switch_arr [private] |
The array of managed switches.
Reimplemented in rc_switch_connector.
Definition at line 155 of file rc_switch_connector.h.
Referenced by rc_switch_connector_base::_rc_init(), rc_switch_connector_base::bind_dynamic(), rc_switch_connector_base::bind_static(), and rc_switch_connector_base::get().
int p_size [private] |
The number of managed switches.
Definition at line 160 of file rc_switch_connector.h.
Referenced by rc_switch_connector_base::_rc_init(), rc_switch_connector_base::bind_dynamic(), rc_switch_connector_base::bind_static(), rc_switch_connector_base::get(), and rc_switch_connector_base::size().
1.5.3