Skip to content

Commit

Permalink
Move ConnectionManager methods from impl to h
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobj committed Sep 26, 2018
1 parent 620bcf3 commit e3e419c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 36 additions & 0 deletions nestkernel/connection_manager.h
Expand Up @@ -825,6 +825,42 @@ ConnectionManager::get_stdp_eps() const
return stdp_eps_;
}

inline index
ConnectionManager::get_target_gid( const thread tid,
const synindex syn_id,
const index lcid ) const
{
return connections_[ tid ][ syn_id ]->get_target_gid( tid, lcid );
}

inline void
ConnectionManager::send( const thread tid,
const synindex syn_id,
const index lcid,
const std::vector< ConnectorModel* >& cm,
Event& e )
{
connections_[ tid ][ syn_id ]->send( tid, lcid, cm, e );
}

inline void
ConnectionManager::restructure_connection_tables( const thread tid )
{
assert( not source_table_.is_cleared() );
target_table_.clear( tid );
source_table_.reset_processed_flags( tid );
}

inline void
ConnectionManager::set_has_source_subsequent_targets( const thread tid,
const synindex syn_id,
const index lcid,
const bool subsequent_targets )
{
connections_[ tid ][ syn_id ]->set_has_source_subsequent_targets(
lcid, subsequent_targets );
}

} // namespace nest

#endif /* CONNECTION_MANAGER_H */
36 changes: 0 additions & 36 deletions nestkernel/connection_manager_impl.h
Expand Up @@ -50,24 +50,6 @@ ConnectionManager::register_conn_builder( const std::string& name )
connruledict_->insert( name, id );
}

inline index
ConnectionManager::get_target_gid( const thread tid,
const synindex syn_id,
const index lcid ) const
{
return connections_[ tid ][ syn_id ]->get_target_gid( tid, lcid );
}

inline void
ConnectionManager::send( const thread tid,
const synindex syn_id,
const index lcid,
const std::vector< ConnectorModel* >& cm,
Event& e )
{
connections_[ tid ][ syn_id ]->send( tid, lcid, cm, e );
}

inline void
ConnectionManager::send_to_devices( const thread tid,
const index source_gid,
Expand All @@ -86,24 +68,6 @@ ConnectionManager::send_from_device( const thread tid,
tid, ldid, e, kernel().model_manager.get_synapse_prototypes( tid ) );
}

inline void
ConnectionManager::restructure_connection_tables( const thread tid )
{
assert( not source_table_.is_cleared() );
target_table_.clear( tid );
source_table_.reset_processed_flags( tid );
}

inline void
ConnectionManager::set_has_source_subsequent_targets( const thread tid,
const synindex syn_id,
const index lcid,
const bool subsequent_targets )
{
connections_[ tid ][ syn_id ]->set_has_source_subsequent_targets(
lcid, subsequent_targets );
}

} // namespace nest

#endif /* CONNECTION_MANAGER_IMPL_H */

0 comments on commit e3e419c

Please sign in to comment.