Carna Registration API Version 1.16.0
|
00001 /* 00002 * Copyright (C) 2010 - 2013 Leonid Kostrykin 00003 * 00004 * Chair of Medical Engineering (mediTEC) 00005 * RWTH Aachen University 00006 * Pauwelsstr. 20 00007 * 52074 Aachen 00008 * Germany 00009 * 00010 */ 00011 00012 #ifndef LINK_H_2521354512 00013 #define LINK_H_2521354512 00014 00015 #include "cra_global.h" 00016 00017 namespace CRA 00018 { 00019 00020 class Tool; 00021 class VirtualElement; 00022 00023 00024 00025 // ---------------------------------------------------------------------------------- 00026 // Link 00027 // ---------------------------------------------------------------------------------- 00028 00040 class CRA_EXPORT Link 00041 { 00042 00043 public: 00044 00047 Link( Tool& tool, VirtualElement& virtualElement ) 00048 : tool( tool ) 00049 , virtualElement( virtualElement ) 00050 { 00051 } 00052 00053 00056 Tool& tool; 00057 00060 VirtualElement& virtualElement; 00061 00062 }; // Link 00063 00064 00065 00070 inline bool operator<( const Link& l, const Link& r ) 00071 { 00072 return &( l.tool ) < &( r.tool ); 00073 } 00074 00075 00076 00077 } // namespace CRA 00078 00079 #endif // LINK_H_2521354512
Documentation generated by Doxygen