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

ContigLink_AMOS.hh

Go to the documentation of this file.
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 #ifndef __ContigLink_AMOS_HH 00011 #define __ContigLink_AMOS_HH 1 00012 00013 #include "Link_AMOS.hh" 00014 #include "Contig_AMOS.hh" 00015 #include <utility> 00016 00017 00018 00019 00020 namespace AMOS { 00021 00022 //================================================ ContigLink_t ================ 00030 //============================================================================== 00031 class ContigLink_t : public Link_t 00032 { 00033 00034 private: 00035 00036 void setNodeType (NCode_t nodtype); 00037 00038 00039 protected: 00040 00041 //--------------------------------------------------- readRecord ------------- 00042 virtual void readRecord (std::istream & fix, std::istream & var); 00043 00044 00045 //--------------------------------------------------- writeRecord ------------ 00046 virtual void writeRecord (std::ostream & fix, std::ostream & var) const; 00047 00048 00049 public: 00050 00051 static const NCode_t NCODE; 00053 00054 00055 //--------------------------------------------------- ContigLink_t ----------- 00060 ContigLink_t ( ) 00061 { 00062 00063 } 00064 00065 00066 //--------------------------------------------------- ContigLink_t ----------- 00069 ContigLink_t (const ContigLink_t & source) 00070 { 00071 *this = source; 00072 } 00073 00074 00075 //--------------------------------------------------- ~ContigLink_t ---------- 00078 ~ContigLink_t ( ) 00079 { 00080 00081 } 00082 00083 00084 //--------------------------------------------------- clear ------------------ 00085 virtual void clear ( ) 00086 { 00087 Link_t::clear( ); 00088 } 00089 00090 00091 //--------------------------------------------------- getContigs ------------- 00096 std::pair<ID_t, ID_t> getContigs ( ) const 00097 { 00098 return Link_t::getNodes( ); 00099 } 00100 00101 00102 //--------------------------------------------------- getNCode --------------- 00103 virtual NCode_t getNCode ( ) const 00104 { 00105 return ContigLink_t::NCODE; 00106 } 00107 00108 00109 //----------------------------------------------------- getNodeType ---------- 00110 NCode_t getNodeType( ) const 00111 { 00112 return Contig_t::NCODE; 00113 } 00114 00115 00116 //--------------------------------------------------- readMessage ------------ 00117 virtual void readMessage (const Message_t & msg); 00118 00119 00120 //--------------------------------------------------- setContigs ------------- 00129 void setContigs (std::pair<ID_t, ID_t> contigs) 00130 { 00131 Link_t::setNodes (contigs); 00132 } 00133 00134 00135 //--------------------------------------------------- writeMessage ----------- 00136 virtual void writeMessage (Message_t & msg) const; 00137 00138 }; 00139 00140 } // namespace AMOS 00141 00142 #endif // #ifndef __ContigLink_AMOS_HH

Generated on Tue May 17 15:19:01 2005 for libAMOS by doxygen 1.3.8