Public Member Functions

subcircuit Class Reference

Represents a sub-circuit. More...

List of all members.

Public Member Functions

 subcircuit (standard_circuit &base, unsigned from, unsigned to)
 Default constructor.
 subcircuit (circuit_variant &base, unsigned from, unsigned to)
 Default constructor.
 subcircuit (const circuit_variant &base, unsigned from, unsigned to)
 Default constructor.
 subcircuit (standard_circuit &base, unsigned from, unsigned to, std::vector< unsigned > filter)
 Constructor with line filter.
 subcircuit (const circuit_variant &base, unsigned from, unsigned to, std::vector< unsigned > filter)
 Constructor with line filter.
 ~subcircuit ()
 Deconstructor.

Detailed Description

Represents a sub-circuit.

A sub-circuit is a window which can be set on top of a standard_circuit. All methods are specialized for the sub-circuit. But the gates are references to the underlying circuit.


Constructor & Destructor Documentation

subcircuit ( standard_circuit base,
unsigned  from,
unsigned  to 
) [inline]

Default constructor.

This constructor creates a sub-circuit from a base which is a standard_circuit and a range of gates [from, to). Thus, the gate with index to is not included.

Parameters:
baseUnderlying circuit
fromFirst gate to be included (starting from 0)
toFirst gate to be not included anymore
Author:
RevKit
Since:
1.0
subcircuit ( circuit_variant base,
unsigned  from,
unsigned  to 
) [inline]

Default constructor.

Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.

Parameters:
baseUnderlying circuit (has to be standard_circuit in the variant)
fromFirst gate to be included (starting from 0)
toFirst gate to be not included anymore
Author:
RevKit
Since:
1.0
subcircuit ( const circuit_variant base,
unsigned  from,
unsigned  to 
) [inline]

Default constructor.

Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.

Parameters:
baseUnderlying circuit (has to be standard_circuit in the variant)
fromFirst gate to be included (starting from 0)
toFirst gate to be not included anymore
Author:
RevKit
Since:
1.0
subcircuit ( standard_circuit base,
unsigned  from,
unsigned  to,
std::vector< unsigned >  filter 
) [inline]

Constructor with line filter.

This constructor creates a sub-circuit from a base which is a standard_circuit and a range of gates [from, to). Thus, the gate with index to is not included.

Further a line filter is specified. The vector contains all line indices (starting from 0) which should be accessible.

Parameters:
baseUnderlying circuit
fromFirst gate to be included (starting from 0)
toFirst gate to be not included anymore
filterLine filter
Author:
RevKit
Since:
1.0
subcircuit ( const circuit_variant base,
unsigned  from,
unsigned  to,
std::vector< unsigned >  filter 
) [inline]

Constructor with line filter.

Same as other constructor but takes a generic circuit, which will get casted to a standard_circuit.

Parameters:
baseUnderlying circuit (has to be a standard_circuit in the variant)
fromFirst gate to be included (starting from 0)
toFirst gate to be not included anymore
filterLine filter
Author:
RevKit
Since:
1.0
~subcircuit ( ) [inline]

Deconstructor.

Deletes all filtered_gate objects in the filter cache

Author:
RevKit
Since:
1.0

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Generated on Wed May 25 2011 16:34:52 for RevKit by doxygen 1.7.3