rc_switch_connector_base Class Reference

#include <rc_switch_connector.h>

Inheritance diagram for rc_switch_connector_base:

rc_switch_connector

List of all members.


Detailed Description

Base class of rc_switch_connector<PortMap>.

This is the base class of rc_switch_connector<PortMap>.

The base class provides all methods necessary for binding.

See also:
rc_switch_connector, rc_portmap_base, rc_portmap, rc_reconfigurable

Definition at line 74 of file rc_switch_connector.h.


Public Member Functions

int size () const
 The size of this switch connector.
rc_switchget (int index) const
 Get switch at given index.
rc_switchoperator[] (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_typeoperator= (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.

Member Typedef Documentation

typedef rc_switch_connector_base this_type [private]

Reimplemented in rc_switch_connector.

Definition at line 78 of file rc_switch_connector.h.


Constructor & Destructor Documentation

rc_switch_connector_base ( const char *  name  )  [inline, protected]

Constructor.

Parameters:
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]

Virtual destructor.

Definition at line 138 of file rc_switch_connector.h.

rc_switch_connector_base ( const this_type other  )  [private]

(disabled)


Member Function Documentation

int size (  )  const [inline]

The size of this switch connector.

Equals the number of switches (respectively the size of the port map).

See also:
rc_switch_connector

Definition at line 97 of file rc_switch_connector.h.

rc_switch & get ( int  index  )  const

Get switch at given index.

Parameters:
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]

Convenience operator. Same as get().

Definition at line 109 of file rc_switch_connector.h.

virtual bool is_compatible ( const rc_portmap_base portmap  )  const [pure virtual]

Tests for compatibility with the given port map.

Remarks:
Is overridden by the actual switch connector implementation.

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).

Attention:
Shall be called once by the constructor of a super class.

Definition at line 84 of file rc_switch_connector.cpp.

Referenced by rc_switch_connector::rc_switch_connector().

this_type& operator= ( const this_type other  )  [private]

(disabled)


Member Data Documentation

rc_switch** p_switch_arr [private]

The array of managed switches.

Note:
Is initialised by _rc_init().

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.

Note:
Is initialised by _rc_init().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jan 1 23:14:14 2008 for ReChannel by  doxygen 1.5.3