+ std::vector< Connection::WeakPointer >::const_iterator j;
+ for (j = i->second->GetConnectionVector().begin();
+ j != i->second->GetConnectionVector().end();
+ ++j)
+ {
+ if ((*j).lock()==GetThisPointer<Connection>()) break;
+ }
+ /*
+ j = find(i->second->GetConnectionVector().begin(),
+ i->second->GetConnectionVector().end(),
+ GetThisPointer<Connection>());
+ */
+ if (j==i->second->GetConnectionVector().end())
+ {
+ bbtkError("** Checking Connection "<<(void*)this
+ <<" ["<<GetFullName()<<"] : "
+ << "Connection ["<<GetFullName()<<"] : "
+ <<" OutputConnector '"
+ <<mOutput<<"' of "<<mFrom->bbGetFullName()
+ <<" does not point to this connection");
+
+ }
+ bbtkMessage("Debug",2," - From : This connection is in OutputConnector connection vector"<<std::endl);
+ bbtkMessage("Debug",1," * Box from : Check successfull"<<std::endl);
+
+ }
+
+ if (mTo==0)
+ {
+ bbtkMessage("Debug",2," - To = 0"<<std::endl);
+ }
+ else
+ {
+ bbtkMessage("Debug",2," - To : "<<mTo->bbGetName()<<std::endl);
+ // std::cout << mTo << std::endl;
+ // std::cout << mTo->bbGetDescriptor() << std::endl;
+ // std::cout << mTo->bbGetDescriptor()->GetTypeName() << std::endl;
+ // mTo->bbGetFullName();
+ bbtkMessage("Debug",2," - To : "<<mTo->bbGetFullName()<<std::endl);
+ if (!mTo->bbHasInput(mInput))
+ {
+ bbtkError("** Checking Connection "<<(void*)this
+ <<" ["<<GetFullName()<<"] : "
+ <<mTo->bbGetFullName()<<" does not have input '"
+ <<mInput<<"'");
+ }
+ bbtkMessage("Debug",2," - To : Input '"<<mInput<<"' exists"<<std::endl);
+ BlackBox::InputConnectorMapType::const_iterator i
+ = mTo->bbGetInputConnectorMap().find(mInput);
+ if (i== mTo->bbGetInputConnectorMap().end())
+ {
+ bbtkError("** Checking Connection "<<(void*)this
+ <<" ["<<GetFullName()<<"] : "
+ <<mTo->bbGetFullName()<<" input '"
+ <<mInput<<"' is not in InputConnectorMap");
+ }
+ bbtkMessage("Debug",2," - To : Input '"<<mInput
+ <<"' is in InputConnectorMap"<<std::endl);
+
+ if (i->second->GetConnection()==0)
+ {
+ bbtkError("** Checking Connection "<<(void*)this
+ <<" ["<<GetFullName()<<"] : "
+ <<"Connection "<<GetFullName()<<" : "
+ <<" InputConnector '"
+ <<mInput<<"' of "<<mTo->bbGetFullName()
+ <<" does not point to this connection");
+
+ }
+ bbtkMessage("Debug",2," - To : This connection is in InputConnector connection vector"<<std::endl);
+ bbtkMessage("Debug",1," * Box to : Check successfull"<<std::endl);
+
+ }
+ }
+ //==================================================================
+ //==========================================================================
+ std::string Connection::GetObjectName() const
+ {
+ std::string s("Connection '");
+ s += GetFullName();
+ s += "'";
+ return s;
+ }
+ //==========================================================================
+
+ //==========================================================================
+ std::string Connection::GetObjectInfo() const
+ {
+ std::stringstream i;
+ return i.str();
+ }
+ //==========================================================================
+
+ //==========================================================================
+size_t Connection::GetObjectSize() const
+{
+ size_t s = Superclass::GetObjectSize();
+ s += Connection::GetObjectInternalSize();
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+size_t Connection::GetObjectInternalSize() const
+{
+ size_t s = sizeof(Connection);
+ return s;
+ }
+ //==========================================================================
+ //==========================================================================
+ size_t Connection::GetObjectRecursiveSize() const
+ {
+ size_t s = Superclass::GetObjectRecursiveSize();
+ s += Connection::GetObjectInternalSize();
+ return s;
+ }
+ //==========================================================================