CLAM-Development  1.4.0
OutControlBase.cxx
Go to the documentation of this file.
1 #include <CLAM/OutControlBase.hxx>
2 #include <CLAM/Processing.hxx>
3 
4 namespace CLAM{
5  OutControlBase::OutControlBase(const std::string &name, Processing * proc)
6  : mName(name)
7  , mProcessing(proc)
8  {
9  if (proc) proc->RegisterOutControl(this);
10  }
11 
13  {
14  while (!mLinks.empty())
15  RemoveLink(*mLinks.front());
16  if (mProcessing)
18  }
19  OutControlBase::Peers::iterator OutControlBase::BeginInControlsConnected()
20  {
21  return mLinks.begin();
22  }
23 
24  OutControlBase::Peers::iterator OutControlBase::EndInControlsConnected()
25  {
26  return mLinks.end();
27  }
28 
29 }