#include "OMKSimpleTypeT.h"
#include <list>
#include <map>
#include <vector>
#include "OMKOutgoingSynchronisationMessage.h"
#include "OMKIncomingSynchronisationMessage.h"
#include "OMKPolator.h"
Include dependency graph for OMKSimpleTypeT.inl:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
OMK::OutgoingSynchronisationMessage & | operator<< (OMK::OutgoingSynchronisationMessage &out, const std::string &value) |
OMK::IncomingSynchronisationMessage & | operator>> (OMK::IncomingSynchronisationMessage &in, std::string &value) |
template<typename T1, typename T2> | |
std::ostream & | operator<< (std::ostream &out, const std::pair< T1, T2 > &value) |
template<typename T1, typename T2> | |
std::istream & | operator>> (std::istream &in, std::pair< T1, T2 > &value) |
template<typename T1, typename T2> | |
OMK::OutgoingSynchronisationMessage & | operator<< (OMK::OutgoingSynchronisationMessage &out, const std::pair< T1, T2 > &value) |
template<typename T1, typename T2> | |
OMK::IncomingSynchronisationMessage & | operator>> (OMK::IncomingSynchronisationMessage &in, std::pair< T1, T2 > &value) |
template<typename T> | |
std::ostream & | operator<< (std::ostream &out, const std::list< T > &values) |
template<typename T> | |
std::istream & | operator>> (std::istream &in, std::list< T > &values) |
template<typename T> | |
OMK::OutgoingSynchronisationMessage & | operator<< (OMK::OutgoingSynchronisationMessage &out, const std::list< T > &values) |
template<typename T> | |
OMK::IncomingSynchronisationMessage & | operator>> (OMK::IncomingSynchronisationMessage &in, std::list< T > &values) |
template<typename T> | |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &values) |
template<typename T> | |
std::istream & | operator>> (std::istream &in, std::vector< T > &values) |
template<typename T> | |
OMK::OutgoingSynchronisationMessage & | operator<< (OMK::OutgoingSynchronisationMessage &out, const std::vector< T > &values) |
template<typename T> | |
OMK::IncomingSynchronisationMessage & | operator>> (OMK::IncomingSynchronisationMessage &in, std::vector< T > &values) |
template<typename T1, typename T2> | |
std::ostream & | operator<< (std::ostream &out, const std::map< T1, T2 > &values) |
template<typename T1, typename T2> | |
std::istream & | operator>> (std::istream &in, std::map< T1, T2 > &values) |
template<typename T1, typename T2> | |
OMK::OutgoingSynchronisationMessage & | operator<< (OMK::OutgoingSynchronisationMessage &out, const std::map< T1, T2 > &values) |
template<typename T1, typename T2> | |
OMK::IncomingSynchronisationMessage & | operator>> (OMK::IncomingSynchronisationMessage &in, std::map< T1, T2 > &values) |
OMK::OutgoingSynchronisationMessage& operator<< | ( | OMK::OutgoingSynchronisationMessage & | out, | |
const std::map< T1, T2 > & | values | |||
) |
Definition at line 247 of file OMKSimpleTypeT.inl.
00248 { 00249 out << values.size() << " " ; 00250 for( typename std::map< T1, T2 >::const_iterator i( values.begin() ) ; 00251 i != values.end() ; 00252 ++i ) 00253 { 00254 out << i->first << " " 00255 << i->second << " " ; 00256 } 00257 return out ; 00258 }
std::ostream& operator<< | ( | std::ostream & | out, | |
const std::map< T1, T2 > & | values | |||
) |
Definition at line 215 of file OMKSimpleTypeT.inl.
00216 { 00217 out << values.size() << " " ; 00218 for( typename std::map< T1, T2 >::const_iterator i( values.begin() ) ; 00219 i != values.end() ; 00220 ++i ) 00221 { 00222 out << i->first << " " 00223 << i->second << " " ; 00224 } 00225 return out ; 00226 }
OMK::OutgoingSynchronisationMessage& operator<< | ( | OMK::OutgoingSynchronisationMessage & | out, | |
const std::vector< T > & | values | |||
) |
Definition at line 182 of file OMKSimpleTypeT.inl.
00183 { 00184 out << values.size() ; 00185 for( unsigned int i( 0 ) ; i < values.size() ; ++i ) 00186 { 00187 out << values[ i ] ; 00188 } 00189 return out ; 00190 }
std::ostream& operator<< | ( | std::ostream & | out, | |
const std::vector< T > & | values | |||
) |
Definition at line 153 of file OMKSimpleTypeT.inl.
00154 { 00155 out << values.size() ; 00156 for( unsigned int i( 0 ) ; i < values.size() ; ++i ) 00157 { 00158 out << values[ i ] << " " ; 00159 } 00160 return out ; 00161 }
OMK::OutgoingSynchronisationMessage& operator<< | ( | OMK::OutgoingSynchronisationMessage & | out, | |
const std::list< T > & | values | |||
) |
Definition at line 119 of file OMKSimpleTypeT.inl.
00120 { 00121 out << values.size() ; 00122 for( typename std::list< T >::const_iterator i( values.begin() ) ; 00123 i != values.end() ; 00124 ++i ) 00125 { 00126 out << (*i) ; 00127 } 00128 return out ; 00129 }
std::ostream& operator<< | ( | std::ostream & | out, | |
const std::list< T > & | values | |||
) |
Definition at line 89 of file OMKSimpleTypeT.inl.
00090 { 00091 out << values.size() << " " ; 00092 for( typename std::list< T >::const_iterator i( values.begin() ) ; 00093 i != values.end() ; 00094 ++i ) 00095 { 00096 out << (*i) << " " ; 00097 } 00098 return out ; 00099 }
OMK::OutgoingSynchronisationMessage& operator<< | ( | OMK::OutgoingSynchronisationMessage & | out, | |
const std::pair< T1, T2 > & | value | |||
) |
std::ostream& operator<< | ( | std::ostream & | out, | |
const std::pair< T1, T2 > & | value | |||
) |
OMK::OutgoingSynchronisationMessage& operator<< | ( | OMK::OutgoingSynchronisationMessage & | out, | |
const std::string & | value | |||
) | [inline] |
Definition at line 37 of file OMKSimpleTypeT.inl.
References OMK::OutgoingSynchronisationMessage::pack().
00038 { 00039 out.pack( value ) ; 00040 return out ; 00041 }
OMK::IncomingSynchronisationMessage& operator>> | ( | OMK::IncomingSynchronisationMessage & | in, | |
std::map< T1, T2 > & | values | |||
) |
Definition at line 262 of file OMKSimpleTypeT.inl.
00263 { 00264 // we do not want any element in the proposed map to avoid accumulation 00265 values.clear() ; 00266 unsigned int size( 0 ) ; 00267 in >> size ; 00268 for( unsigned int i( 0 ) ; i < size ; ++i ) 00269 { 00270 T1 key ; 00271 T2 value ; 00272 in >> key >> value ; 00273 values[ key ] = value ; 00274 } 00275 return in ; 00276 }
std::istream& operator>> | ( | std::istream & | in, | |
std::map< T1, T2 > & | values | |||
) |
Definition at line 229 of file OMKSimpleTypeT.inl.
00230 { 00231 // we do not want any element in the proposed map to avoid accumulation 00232 values.clear() ; 00233 unsigned int size( 0 ) ; 00234 in >> size ; 00235 for( unsigned int i( 0 ) ; i < size ; ++i ) 00236 { 00237 T1 key ; 00238 T2 value ; 00239 in >> key >> value ; 00240 values[ key ] = value ; 00241 } 00242 return in ; 00243 }
OMK::IncomingSynchronisationMessage& operator>> | ( | OMK::IncomingSynchronisationMessage & | in, | |
std::vector< T > & | values | |||
) |
Definition at line 194 of file OMKSimpleTypeT.inl.
00195 { 00196 // we do not want any element in the proposed vector to avoid accumulation 00197 values.clear() ; 00198 unsigned int size( 0 ) ; 00199 in >> size ; 00200 values.reserve( size ) ; 00201 for( unsigned int i( 0 ) ; i < size ; ++i ) 00202 { 00203 T value ; 00204 in >> value ; 00205 values.push_back( value ) ; 00206 } 00207 return in ; 00208 }
std::istream& operator>> | ( | std::istream & | in, | |
std::vector< T > & | values | |||
) |
Definition at line 164 of file OMKSimpleTypeT.inl.
00165 { 00166 // we do not want any element in the proposed vector to avoid accumulation 00167 values.clear() ; 00168 unsigned int size( 0 ) ; 00169 in >> size ; 00170 values.reserve( size ) ; 00171 for( unsigned int i( 0 ) ; i < size ; ++i ) 00172 { 00173 T value ; 00174 in >> value ; 00175 values.push_back( value ) ; 00176 } 00177 return in ; 00178 }
OMK::IncomingSynchronisationMessage& operator>> | ( | OMK::IncomingSynchronisationMessage & | in, | |
std::list< T > & | values | |||
) |
Definition at line 133 of file OMKSimpleTypeT.inl.
00134 { 00135 // we do not want any element in the proposed list to avoid accumulation 00136 values.clear() ; 00137 unsigned int size( 0 ) ; 00138 in >> size ; 00139 for( unsigned int i( 0 ) ; i < size ; ++i ) 00140 { 00141 T value ; 00142 in >> value ; 00143 values.push_back( value ) ; 00144 } 00145 return in ; 00146 }
std::istream& operator>> | ( | std::istream & | in, | |
std::list< T > & | values | |||
) |
Definition at line 102 of file OMKSimpleTypeT.inl.
00103 { 00104 // we do not want any element in the proposed list to avoid accumulation 00105 values.clear() ; 00106 unsigned int size( 0 ) ; 00107 in >> size ; 00108 for( unsigned int i( 0 ) ; i < size ; ++i ) 00109 { 00110 T value ; 00111 in >> value ; 00112 values.push_back( value ) ; 00113 } 00114 return in ; 00115 }
OMK::IncomingSynchronisationMessage& operator>> | ( | OMK::IncomingSynchronisationMessage & | in, | |
std::pair< T1, T2 > & | value | |||
) |
std::istream& operator>> | ( | std::istream & | in, | |
std::pair< T1, T2 > & | value | |||
) |
OMK::IncomingSynchronisationMessage& operator>> | ( | OMK::IncomingSynchronisationMessage & | in, | |
std::string & | value | |||
) | [inline] |
Definition at line 44 of file OMKSimpleTypeT.inl.
References OMK::IncomingSynchronisationMessage::get().
00045 { 00046 in.get( value ) ; 00047 return in ; 00048 }
Documentation generated on Mon Jun 9 11:45:59 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |