OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MatchType Class Reference

#include <MatchType.hh>

Collaboration diagram for MatchType:
Collaboration graph

Public Member Functions

 MatchType (const EntryKeyFieldProperty *field, CostDBTypes::TypeOfMatch match)
 
virtual ~MatchType ()
 
 MatchType (const MatchType &old)
 
const EntryKeyFieldPropertyfieldType () const
 
CostDBTypes::TypeOfMatch matchingType () const
 
bool isEqual (const MatchType &m) const
 

Private Member Functions

MatchTypeoperator= (const MatchType &)
 Assignment not allowed.
 

Private Attributes

const EntryKeyFieldPropertyfieldType_
 Type of field.
 
CostDBTypes::TypeOfMatch matchType_
 Type of match.
 

Detailed Description

Represents a type of match for a certain field.

Definition at line 49 of file MatchType.hh.

Constructor & Destructor Documentation

◆ MatchType() [1/2]

MatchType::MatchType ( const EntryKeyFieldProperty field,
CostDBTypes::TypeOfMatch  match 
)

Constructor.

Parameters
fieldType of field.
matchType of match.

Definition at line 43 of file MatchType.cc.

45 :
46 fieldType_(field), matchType_(match) {
47}
const EntryKeyFieldProperty * fieldType_
Type of field.
Definition MatchType.hh:63
CostDBTypes::TypeOfMatch matchType_
Type of match.
Definition MatchType.hh:65

◆ ~MatchType()

MatchType::~MatchType ( )
virtual

Destructor.

Definition at line 52 of file MatchType.cc.

52 {
53}

◆ MatchType() [2/2]

MatchType::MatchType ( const MatchType old)

Copy constructor.

Parameters
oldMatch type.

Definition at line 60 of file MatchType.cc.

60 :
62}

Member Function Documentation

◆ fieldType()

const EntryKeyFieldProperty * MatchType::fieldType ( ) const

Referenced by isEqual().

◆ isEqual()

bool MatchType::isEqual ( const MatchType m) const

Compares if two match types are equal.

Parameters
mA match type.
Returns
True if match types are equal.

Definition at line 71 of file MatchType.cc.

71 {
72 return fieldType() == m.fieldType() && matchingType() == m.matchingType();
73}
const EntryKeyFieldProperty * fieldType() const
CostDBTypes::TypeOfMatch matchingType() const

References fieldType(), and matchingType().

Here is the call graph for this function:

◆ matchingType()

CostDBTypes::TypeOfMatch MatchType::matchingType ( ) const

Referenced by isEqual().

◆ operator=()

MatchType & MatchType::operator= ( const MatchType )
private

Assignment not allowed.

Member Data Documentation

◆ fieldType_

const EntryKeyFieldProperty* MatchType::fieldType_
private

Type of field.

Definition at line 63 of file MatchType.hh.

◆ matchType_

CostDBTypes::TypeOfMatch MatchType::matchType_
private

Type of match.

Definition at line 65 of file MatchType.hh.


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