18 #ifndef AGXPOWERLINE_CONNECTION_ITERATOR_IMPL_H
19 #define AGXPOWERLINE_CONNECTION_ITERATOR_IMPL_H
32 this->scanForNonNull();
42 return this->getConnection();
53 this->scanForNonNull();
62 return m_source != 0 &&
78 return this->getConnections()[m_index];
89 return detail::ConnectionIteratorTypes<T>::getTarget(connection) != 0;
96 return this->getConnections().size();
103 this->scanConnectionsForNonNull();
107 this->scanConnectionsForNonNull();
118 for (; m_index < this->getNumConnections(); ++m_index) {
119 if (this->isConnectionValid()) {
AGXMODEL_EXPORT const agxPowerLine::Side s_firstSearchSide
Iterator that iterates over all, both input and output, connections that have a non-null Connector.
detail::ConnectionIteratorTypes< T >::ConnectionPtr ConnectionPtr
ConnectionPtr operator*()
ConnectionIterator & operator++()
detail::ConnectionIteratorTypes< T >::SourcePtr SourcePtr
ConnectionIterator(SourcePtr dimension)
static const ConnectionRefVector & getConnections(SourcePtr source, Side side)
AGXMODEL_EXPORT agxPowerLine::Side opposite(agxPowerLine::Side side)
Connection * ConnectionPtr
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex