Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QCCnot.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, 8 months ago) by kaityo
File MIME type: text/x-chdr
File size: 1019 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 #ifndef QCCnotH
3 #define QCCnotH
4 //---------------------------------------------------------------------------
5 #include "QCircuit.h"
6 //---------------------------------------------------------------------------
7 class QCCNot : public QCircuit {
8 private:
9
10 int Target1;
11 int Target2;
12
13 public:
14 QCCNot(int x,int y);
15 QCCNot(int x,int y, string Param);
16
17 virtual int GetType(void) { return QC_CCNOT; }
18 virtual string GetTypeStr(void) { return "QCCNot"; }
19
20 string GetCalcText(void);
21
22 void SetTarget1(int t) {Target1=t;};
23 void SetTarget2(int t) {Target2=t;};
24 int GetTarget1(void) {return Target1;};
25 int GetTarget2(void) {return Target2;};
26
27
28 void Draw(QDraw *Draw);
29 void DrawPS(QPSDraw *psDraw);
30 string GetParam(void);
31 void Reverse(int y);
32 TRect GetOccupiedRect();
33 QCircuit *Clone();
34
35 };
36 //---------------------------------------------------------------------------
37 #endif

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