costs.hpp File Reference

Cost calculation for circuits. More...

Classes

struct  gate_costs
 Calculates the gate costs. More...
struct  line_costs
 Calculates the line costs. More...
struct  quantum_costs
 Calculates the quantum costs. More...
struct  transistor_costs
 Calculates the transistor costs. More...

Namespaces

namespace  revkit
 

Main namespace.


Typedefs

typedef boost::function
< unsigned(const circuit &circ)> 
costs_by_circuit_func
 Functor for cost function measured by the whole circuit.
typedef boost::function
< unsigned(const gate &gate,
unsigned lines)> 
costs_by_gate_func
 Functor for cost function measured by each gate.
typedef boost::variant
< costs_by_circuit_func,
costs_by_gate_func > 
cost_function
 Cost Function type.

Functions

unsigned costs (const circuit &circ, const cost_function &f)
 Calculates the costs of a circuit by a given cost function.

Detailed Description

Cost calculation for circuits.


Generated on Tue Dec 21 2010 21:52:13 for RevKit by doxygen 1.7.1