OMKSimpleTypeT.inl File Reference

#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::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const std::string &value)
OMK::IncomingSynchronisationMessageoperator>> (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::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const std::pair< T1, T2 > &value)
template<typename T1, typename T2>
OMK::IncomingSynchronisationMessageoperator>> (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::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const std::list< T > &values)
template<typename T>
OMK::IncomingSynchronisationMessageoperator>> (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::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const std::vector< T > &values)
template<typename T>
OMK::IncomingSynchronisationMessageoperator>> (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::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const std::map< T1, T2 > &values)
template<typename T1, typename T2>
OMK::IncomingSynchronisationMessageoperator>> (OMK::IncomingSynchronisationMessage &in, std::map< T1, T2 > &values)


Function Documentation

template<typename T1, typename T2>
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 }

template<typename T1, typename T2>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T1, typename T2>
OMK::OutgoingSynchronisationMessage& operator<< ( OMK::OutgoingSynchronisationMessage out,
const std::pair< T1, T2 > &  value 
)

Definition at line 70 of file OMKSimpleTypeT.inl.

00071 {
00072   out << value.first << value.second ; 
00073   return out ;
00074 }

template<typename T1, typename T2>
std::ostream& operator<< ( std::ostream &  out,
const std::pair< T1, T2 > &  value 
)

Definition at line 55 of file OMKSimpleTypeT.inl.

00056 {
00057   out << value.first << " " << value.second << " " ; 
00058   return out ;
00059 }

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 }

template<typename T1, typename T2>
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 }

template<typename T1, typename T2>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T>
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 }

template<typename T1, typename T2>
OMK::IncomingSynchronisationMessage& operator>> ( OMK::IncomingSynchronisationMessage in,
std::pair< T1, T2 > &  value 
)

Definition at line 78 of file OMKSimpleTypeT.inl.

00079 { 
00080   in >> value.first >> value.second ; 
00081   return in ;
00082 }

template<typename T1, typename T2>
std::istream& operator>> ( std::istream &  in,
std::pair< T1, T2 > &  value 
)

Definition at line 62 of file OMKSimpleTypeT.inl.

00063 { 
00064   in >> value.first >> value.second ; 
00065   return in ;
00066 }

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 }


logo OpenMask

Documentation generated on Mon Jun 9 11:45:59 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007