List of all members | Public Member Functions
subcircuit Class Reference

Represents a sub-circuit. More...

Public Member Functions

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

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:

Generated on Tue Apr 16 2013 08:12:02 for RevKit by doxygen 1.8.3.1