OpenASIP  2.0
Public Member Functions | List of all members
SearchStrategy Class Referenceabstract

#include <SearchStrategy.hh>

Inheritance diagram for SearchStrategy:
Inheritance graph
Collaboration diagram for SearchStrategy:
Collaboration graph

Public Member Functions

virtual SearchStrategycopy () const =0
 
virtual CostDBTypes::EntryTable search (const CostDBEntryKey &searchKey, CostDBTypes::EntryTable components, const CostDBTypes::MatchTypeTable &match)=0
 
virtual ~SearchStrategy ()
 

Detailed Description

Interface for the classes implementing queries from the cost database.

Definition at line 45 of file SearchStrategy.hh.

Constructor & Destructor Documentation

◆ ~SearchStrategy()

virtual SearchStrategy::~SearchStrategy ( )
inlinevirtual

Definition at line 68 of file SearchStrategy.hh.

68 {}

Member Function Documentation

◆ copy()

virtual SearchStrategy* SearchStrategy::copy ( ) const
pure virtual

Copies this SearchStrategy.

Returns
Copy of this SearchStrategy.

Implemented in FilterSearch.

Referenced by CostDatabase::setSearchStrategy().

◆ search()

virtual CostDBTypes::EntryTable SearchStrategy::search ( const CostDBEntryKey searchKey,
CostDBTypes::EntryTable  components,
const CostDBTypes::MatchTypeTable match 
)
pure virtual

Searches entries that match with certain search key on a specific type of match.

Parameters
searchKeySearch key.
componentsEntries from which to find.
matchType of match.
Returns
Entries matching search key and type of match.

Implemented in FilterSearch.

Referenced by CostDatabase::search().


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