Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QCnot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Wed Aug 3 10:14:23 2011 UTC (12 years, 9 months ago) by kaityo
File MIME type: text/x-chdr
File size: 908 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 #ifndef QCnotH
3 #define QCnotH
4 //---------------------------------------------------------------------------
5 #include "QCircuit.h"
6 //---------------------------------------------------------------------------
7 class QCNot : public QCircuit {
8 private:
9
10 int Target;
11
12 public:
13 QCNot(int x,int y);
14 QCNot(int x,int y, string Param);
15
16
17 virtual int GetType(void) { return QC_CNOT; }
18 virtual string GetTypeStr(void) { return "QCNot"; }
19
20 string GetCalcText(void);
21
22 void SetTarget(int t) {Target=t;};
23 int GetTarget(void) {return Target;};
24
25 void Draw(QDraw *Draw);
26 void DrawPS(QPSDraw *psDraw);
27 void Reverse(int y);
28 TRect GetOccupiedRect();
29 QCircuit *Clone();
30 string GetParam(void);
31
32 };
33 //---------------------------------------------------------------------------
34 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26