OpenASIP  2.0
Public Member Functions | Private Member Functions | List of all members
SelectSet< select, unSelect > Class Template Reference

#include <SelectSet.hh>

Inheritance diagram for SelectSet< select, unSelect >:
Inheritance graph
Collaboration diagram for SelectSet< select, unSelect >:
Collaboration graph

Public Member Functions

 SelectSet (const EntryKeyFieldProperty *type)
 
virtual ~SelectSet ()
 
virtual void quickFilter (const CostDBEntryKey &searchKey, CostDBTypes::EntryTable &components)
 
virtual void filter (const CostDBEntryKey &, CostDBTypes::EntryTable &components)
 
- Public Member Functions inherited from Matcher
 Matcher (const EntryKeyFieldProperty *type)
 
virtual ~Matcher ()
 

Private Member Functions

 SelectSet (const SelectSet &)
 Copying not allowed. More...
 
SelectSetoperator= (const SelectSet &)
 Assignment not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Matcher
const EntryKeyFieldPropertyfieldType () const
 
bool onlyThisFieldDiffers (const EntryKeyFieldProperty *type, const CostDBEntry &entry1, const CostDBEntry &entry2) const
 

Detailed Description

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
class SelectSet< select, unSelect >

Implementation for searching database entries that satisfies selection criteria.

However, equal values are also accepted.

The selection criteria as well as the criteria for not selecting some entry are given as template parameter.

Definition at line 52 of file SelectSet.hh.

Constructor & Destructor Documentation

◆ SelectSet() [1/2]

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
SelectSet< select, unSelect >::SelectSet ( const EntryKeyFieldProperty type)

◆ ~SelectSet()

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
virtual SelectSet< select, unSelect >::~SelectSet ( )
virtual

◆ SelectSet() [2/2]

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
SelectSet< select, unSelect >::SelectSet ( const SelectSet< select, unSelect > &  )
private

Copying not allowed.

Member Function Documentation

◆ filter()

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
virtual void SelectSet< select, unSelect >::filter ( const CostDBEntryKey ,
CostDBTypes::EntryTable  
)
virtual

Searches for database entries that match the search key.

Implements Matcher.

◆ operator=()

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
SelectSet& SelectSet< select, unSelect >::operator= ( const SelectSet< select, unSelect > &  )
private

Assignment not allowed.

◆ quickFilter()

template<bool(EntryKeyField::*)(const EntryKeyField &) const select, bool(EntryKeyField::*)(const EntryKeyField &) const unSelect>
virtual void SelectSet< select, unSelect >::quickFilter ( const CostDBEntryKey searchKey,
CostDBTypes::EntryTable components 
)
virtual

Filters out unnecessary entries in linear time.

Parameters
searchKeySearch key.
componentsEntries from which to find. Updated to contain entries that matched the search request.

Implements Matcher.


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