KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_table_base.h File Reference
#include <map>
#include <boost/ptr_container/ptr_vector.hpp>
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <project.h>
#include <richio.h>
#include <kicommon.h>

Go to the source code of this file.

Classes

class  LIB_TABLE_IO
 LIB_TABLE_IO abstracts the file I/O operations for the library table loading and saving. More...
 
class  FILE_LIB_TABLE_IO
 Implementations of LIB_TABLE_IO for file-based I/O. More...
 
class  LIB_TABLE_ROW
 Hold a record identifying a library accessed by the appropriate plug in object in the LIB_TABLE. More...
 
class  LIB_TABLE
 Manage LIB_TABLE_ROW records (rows), and can be searched based on library nickname. More...
 

Typedefs

typedef boost::ptr_vector< LIB_TABLE_ROWLIB_TABLE_ROWS
 
typedef LIB_TABLE_ROWS::iterator LIB_TABLE_ROWS_ITER
 
typedef LIB_TABLE_ROWS::const_iterator LIB_TABLE_ROWS_CITER
 

Functions

KICOMMON_API LIB_TABLE_ROWnew_clone (const LIB_TABLE_ROW &aRow)
 Allows boost pointer containers to make clones of the data stored in them.
 

Typedef Documentation

◆ LIB_TABLE_ROWS

typedef boost::ptr_vector< LIB_TABLE_ROW > LIB_TABLE_ROWS

Definition at line 48 of file lib_table_base.h.

◆ LIB_TABLE_ROWS_CITER

typedef LIB_TABLE_ROWS::const_iterator LIB_TABLE_ROWS_CITER

Definition at line 50 of file lib_table_base.h.

◆ LIB_TABLE_ROWS_ITER

typedef LIB_TABLE_ROWS::iterator LIB_TABLE_ROWS_ITER

Definition at line 49 of file lib_table_base.h.

Function Documentation

◆ new_clone()

KICOMMON_API LIB_TABLE_ROW * new_clone ( const LIB_TABLE_ROW aRow)

Allows boost pointer containers to make clones of the data stored in them.

Since they store pointers the data is cloned. Copying and assigning pointers would cause ownership issues if the standard C++ containers were used.

Definition at line 92 of file lib_table_base.cpp.

References LIB_TABLE_ROW::clone().