Public Member Functions | Private Attributes | List of all members
TbbSinkBody Class Reference

Public Member Functions

 TbbSinkBody (mock_node_pointer wcnode)
 
 TbbSinkBody (const TbbSinkBody &other)
 
 ~TbbSinkBody ()
 
void operator= (const TbbSinkBody &other)
 
boost::any operator() (const boost::any &in)
 

Private Attributes

std::shared_ptr< MockSinkm_wcnode
 

Detailed Description

Definition at line 187 of file test_tbb_dfp_any.cxx.

Constructor & Destructor Documentation

TbbSinkBody::TbbSinkBody ( mock_node_pointer  wcnode)
inline

Definition at line 190 of file test_tbb_dfp_any.cxx.

190  {
191  m_wcnode = std::dynamic_pointer_cast<MockSink>(wcnode);
192  Assert(m_wcnode);
193  }
#define Assert
Definition: Testing.h:7
std::shared_ptr< MockSink > m_wcnode
TbbSinkBody::TbbSinkBody ( const TbbSinkBody other)
inline

Definition at line 194 of file test_tbb_dfp_any.cxx.

194  {
195  cerr << "TbbSinkBody copied\n";
196  m_wcnode = other.m_wcnode;
197  }
std::shared_ptr< MockSink > m_wcnode
TbbSinkBody::~TbbSinkBody ( )
inline

Definition at line 198 of file test_tbb_dfp_any.cxx.

198 {}

Member Function Documentation

boost::any TbbSinkBody::operator() ( const boost::any &  in)
inline

Definition at line 206 of file test_tbb_dfp_any.cxx.

206  {
207  cerr << "Inserting to " << m_wcnode << endl;
208  m_wcnode->insert(in);
209  return in;
210  }
std::shared_ptr< MockSink > m_wcnode
QTextStream & endl(QTextStream &s)
void TbbSinkBody::operator= ( const TbbSinkBody other)
inline

Definition at line 201 of file test_tbb_dfp_any.cxx.

201  {
202  cerr << "TbbSinkBody assigned\n";
203  m_wcnode = other.m_wcnode;
204  }
std::shared_ptr< MockSink > m_wcnode

Member Data Documentation

std::shared_ptr<MockSink> TbbSinkBody::m_wcnode
private

Definition at line 212 of file test_tbb_dfp_any.cxx.


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