Moved one-liners to header files

This commit is contained in:
Maciej Suminski 2017-06-23 14:20:08 +02:00
parent 3dd4429ef6
commit 74ef3ecb1d
4 changed files with 8 additions and 15 deletions

View File

@ -273,12 +273,6 @@ void CONNECTIVITY_DATA::ComputeDynamicRatsnest( const std::vector<BOARD_ITEM*>&
}
const std::vector<RN_DYNAMIC_LINE>& CONNECTIVITY_DATA::GetDynamicRatsnest() const
{
return m_dynamicRatsnest;
}
void CONNECTIVITY_DATA::ClearDynamicRatsnest()
{
m_connAlgo->ForEachAnchor( [] (CN_ANCHOR_PTR anchor ) { anchor->SetNoLine( false ); } );

View File

@ -183,8 +183,10 @@ public:
*/
void ComputeDynamicRatsnest( const std::vector<BOARD_ITEM*>& aItems );
const std::vector<RN_DYNAMIC_LINE>& GetDynamicRatsnest() const;
const std::vector<RN_DYNAMIC_LINE>& GetDynamicRatsnest() const
{
return m_dynamicRatsnest;
}
/**
* Function GetConnectedItems()

View File

@ -429,12 +429,6 @@ bool RN_NET::NearestBicoloredPair( const RN_NET& aOtherNet, CN_ANCHOR_PTR& aNode
}
unsigned int RN_NET::GetNodeCount() const
{
return m_nodes.size();
}
void RN_NET::SetVisible( bool aEnabled )
{
for( auto& edge : m_rnEdges )

View File

@ -109,7 +109,10 @@ public:
void AddCluster( std::shared_ptr<CN_CLUSTER> aCluster );
unsigned int GetNodeCount() const;
unsigned int GetNodeCount() const
{
return m_nodes.size();
}
/**
* Function GetNodes()