18 #ifndef AGXPOWERLINE_CONNECTION_ITERATOR_TRAITS_H 19 #define AGXPOWERLINE_CONNECTION_ITERATOR_TRAITS_H 46 static TargetPtr
getTarget(ConnectionPtr connection)
62 static TargetPtr
getTarget(ConnectionPtr connection)
77 static TargetPtr
getTarget(ConnectionPtr connection)
93 static TargetPtr
getTarget(ConnectionPtr connection)
113 return source->getConnections((SideType)side);
118 return getConnections(source, side)[index];
128 ConnectionPtr connection = getConnection(source, side, index);
129 return connection != 0 && getTarget(connection) != 0;
Links two connections together.
static TargetPtr getTarget(ConnectionPtr connection)
static TargetPtr getTarget(ConnectionPtr connection)
ConnectionIteratorTypes< T >::ConnectionPtr ConnectionPtr
ConnectionIteratorTypes< T >::SideType SideType
PhysicalDimension * TargetPtr
const Connection * ConnectionPtr
ConnectionIteratorTypes< T >::SourcePtr SourcePtr
static TargetPtr getTarget(ConnectionPtr connection)
agxPowerLine contains a collection of connected components that transport power across a system...
PhysicalDimension * SourcePtr
const Connection * ConnectionPtr
const Connector * TargetPtr
const PhysicalDimension * TargetPtr
const Connector * SourcePtr
const agxPowerLine::PhysicalDimension * getDimension() const
const PhysicalDimension * SourcePtr
static bool isConnectionValid(SourcePtr source, Side side, size_t index)
static ConnectionPtr getConnection(SourcePtr source, Side side, size_t index)
Connection * ConnectionPtr
static const ConnectionRefVector & getConnections(SourcePtr source, Side side)
static TargetPtr getTarget(ConnectionPtr connection)
static TargetPtr getTarget(ConnectionPtr connection)
ConnectionIteratorTypes< T >::TargetPtr TargetPtr
Connection * ConnectionPtr
const agxPowerLine::Connector * getConnector() const