Public Member Functions | Private Attributes | List of all members
MockFunction Class Reference
Inheritance diagram for MockFunction:
MockNode

Public Member Functions

virtual ~MockFunction ()
 
virtual NodeCategory category ()
 
virtual bool insert (boost::any &anyin)
 
virtual bool extract (boost::any &anyout)
 
- Public Member Functions inherited from MockNode
virtual ~MockNode ()
 
virtual int concurrency ()
 

Private Attributes

std::deque< int > m_numbers
 

Detailed Description

Definition at line 49 of file test_tbb_dfp_any.cxx.

Constructor & Destructor Documentation

virtual MockFunction::~MockFunction ( )
inlinevirtual

Definition at line 52 of file test_tbb_dfp_any.cxx.

52 {}

Member Function Documentation

virtual NodeCategory MockFunction::category ( )
inlinevirtual

Implements MockNode.

Definition at line 53 of file test_tbb_dfp_any.cxx.

53 { return functionCat; }
virtual bool MockFunction::extract ( boost::any &  anyout)
inlinevirtual

Definition at line 59 of file test_tbb_dfp_any.cxx.

59  {
60  if (m_numbers.empty()) {
61  return false;
62  }
63  anyout = m_numbers.front();
64  m_numbers.pop_front();
65  return true;
66  }
std::deque< int > m_numbers
virtual bool MockFunction::insert ( boost::any &  anyin)
inlinevirtual

Definition at line 54 of file test_tbb_dfp_any.cxx.

54  {
55  int num = boost::any_cast<int>(anyin);
56  m_numbers.push_back(num);
57  return true;
58  }
std::deque< int > m_numbers

Member Data Documentation

std::deque<int> MockFunction::m_numbers
private

Definition at line 50 of file test_tbb_dfp_any.cxx.


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