Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

QBoxOutputPort.h

Go to the documentation of this file.
00001 #ifndef QBOXOUTPUTPORT_H 00002 #define QBOXOUTPUTPORT_H 00003 00004 BOREALIS_NAMESPACE_BEGIN; 00005 00006 class QBox; 00007 00008 class QBoxOutputPort { 00009 public: 00010 QBoxOutputPort() : _box(NULL), _port(0x80000000) {} 00011 QBoxOutputPort(QBox *box, unsigned int port) : _box(box), _port(port) {} 00012 00013 QBox *getBox() { return _box; } 00014 unsigned int getPort() { return _port; } 00015 00016 bool operator == (const QBoxOutputPort& other) const { 00017 return _box == other._box && _port == other._port; 00018 } 00019 00020 bool operator < (const QBoxOutputPort& other) const { 00021 return 00022 _box < other._box ? true : 00023 other._box < _box ? false : 00024 _port < other._port ? true: 00025 false; 00026 } 00027 00028 // nonzero if valid 00029 operator const void * () const { 00030 return _box; 00031 } 00032 00033 private: 00034 QBox *_box; 00035 unsigned int _port; 00036 }; 00037 00038 BOREALIS_NAMESPACE_END; 00039 00040 #endif

Generated on Fri Nov 12 15:15:21 2004 for Borealis by doxygen 1.3.8