Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

alias Class Reference

Used when more than one identical nport device or circuit is needed. More...

#include <nport.h>

Inheritance diagram for alias::

data_ptr_nport nport device List of all members.

Public Methods

 alias ()
 alias (nport &o)
int size ()
 The number of ports this device has. More...

const nport::data_infoget_data_info ()
 Refer to the original device to answer this question.... More...

alias& operator= (nport &n)
 Assignment operator. More...


Private Methods

void recalc ()
 Recalc just gets the data pointer from the original. More...

void recalc_S ()
 Recalc just gets the data pointer from the original. More...


Private Attributes

nportoriginal
 A pointer to the nport that we are aliasing. More...


Detailed Description

Used when more than one identical nport device or circuit is needed.

If more than one copy of exactly the same circuit or nport device is needed, it may be desirable to create a single device and then make aliases for the rest. For example, imagine that five identical microstrip sections are needed in a circuit. The best way to do this is to create a single microstrip, and then construct four alias instances from it. If later the microstrip is changed, such as to change the substrate thickness, the alias instances will also change accordingly.

An alias has its own id number so that it can be used in a circuit, but it relies on another device to calculate its sdata. Thus, it doesn't have its own parameters, because it doesn't need any.

Definition at line 431 of file nport.h.


Constructor & Destructor Documentation

alias::alias ( ) [inline]
 

Definition at line 445 of file nport.h.

alias::alias ( nport & o ) [inline]
 

Parameters:
o   a reference to the device we are aliasing.

Definition at line 450 of file nport.h.


Member Function Documentation

const nport::data_info & alias::get_data_info ( ) [inline, virtual]
 

Refer to the original device to answer this question....

Reimplemented from nport.

Definition at line 457 of file nport.h.

alias & alias::operator= ( nport & n )
 

Assignment operator.

We can assign any nport to an alias.

Parameters:
n   any nport device to be aliased

Definition at line 123 of file nport.cc.

void alias::recalc ( ) [inline, private, virtual]
 

Recalc just gets the data pointer from the original.

Reimplemented from nport.

Definition at line 438 of file nport.h.

void alias::recalc_S ( ) [inline, private, virtual]
 

Recalc just gets the data pointer from the original.

Reimplemented from nport.

Definition at line 441 of file nport.h.

int alias::size ( ) [inline, virtual]
 

The number of ports this device has.

Returns:
the number of ports

Reimplemented from data_ptr_nport.

Definition at line 454 of file nport.h.


Member Data Documentation

nport * alias::original [private]
 

A pointer to the nport that we are aliasing.

Definition at line 435 of file nport.h.


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

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7