Classes | Namespaces | Typedefs | Functions

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 unsigned long long cost_t
 Type for costs.
typedef boost::function
< cost_t(const circuit &circ)> 
costs_by_circuit_func
 Functor for cost function measured by the whole circuit.
typedef boost::function
< cost_t(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

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

 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