KiCad PCB EDA Suite
KIGFX::queryVisitor< Container > Struct Template Reference

Public Types

typedef Container::value_type item_type
 

Public Member Functions

 queryVisitor (Container &aCont, int aLayer)
 
bool operator() (VIEW_ITEM *aItem)
 

Public Attributes

Container & m_cont
 
int m_layer
 

Detailed Description

template<class Container>
struct KIGFX::queryVisitor< Container >

Definition at line 420 of file view.cpp.

Member Typedef Documentation

template<class Container>
typedef Container::value_type KIGFX::queryVisitor< Container >::item_type

Definition at line 422 of file view.cpp.

Constructor & Destructor Documentation

template<class Container>
KIGFX::queryVisitor< Container >::queryVisitor ( Container &  aCont,
int  aLayer 
)
inline

Definition at line 424 of file view.cpp.

424  :
425  m_cont( aCont ), m_layer( aLayer )
426  {
427  }
Container & m_cont
Definition: view.cpp:437

Member Function Documentation

template<class Container>
bool KIGFX::queryVisitor< Container >::operator() ( VIEW_ITEM aItem)
inline

Definition at line 429 of file view.cpp.

References KIGFX::VIEW_ITEM_DATA::getFlags(), KIGFX::VIEW_ITEM::viewPrivData(), and KIGFX::VISIBLE.

430  {
431  if( aItem->viewPrivData()->getFlags() & VISIBLE )
432  m_cont.push_back( VIEW::LAYER_ITEM_PAIR( aItem, m_layer ) );
433 
434  return true;
435  }
std::pair< VIEW_ITEM *, int > LAYER_ITEM_PAIR
Definition: view.h:66
Container & m_cont
Definition: view.cpp:437

Member Data Documentation

template<class Container>
Container& KIGFX::queryVisitor< Container >::m_cont

Definition at line 437 of file view.cpp.

template<class Container>
int KIGFX::queryVisitor< Container >::m_layer

Definition at line 438 of file view.cpp.


The documentation for this struct was generated from the following file: