Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v29r0 (ff2e7097)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
image Class Reference

Public Member Functions

 image ()
 
 image (int content)
 
 image (const image &src)
 
bool operator< (const image &l) const
 

Protected Attributes

int m_content
 

Detailed Description

Definition at line 52 of file mergesort.cpp.

Constructor & Destructor Documentation

image::image ( )
inline

Definition at line 55 of file mergesort.cpp.

55 : m_content( 0 ) {}
int m_content
Definition: mergesort.cpp:74
image::image ( int  content)
inline

Definition at line 56 of file mergesort.cpp.

56 : m_content( content ) {}
int m_content
Definition: mergesort.cpp:74
image::image ( const image src)
inline

Definition at line 58 of file mergesort.cpp.

58 { m_content = src.m_content; }
int m_content
Definition: mergesort.cpp:74

Member Function Documentation

bool image::operator< ( const image l) const
inline

Definition at line 60 of file mergesort.cpp.

61  {
62  { // simulate time needed for image comparision
63  boost::xtime xt;
64  boost::xtime_get( &xt, boost::TIME_UTC );
65  int duration = 1 + ( m_content % 4 );
66  xt.nsec += 250 * 1000 * duration;
67  boost::thread::sleep( xt );
68  print( "." );
69  }
70  return m_content < l.m_content;
71  }
int m_content
Definition: mergesort.cpp:74
void print(string text)
Definition: mergesort.cpp:30

Member Data Documentation

int image::m_content
protected

Definition at line 74 of file mergesort.cpp.


The documentation for this class was generated from the following file: