tpriorities.hpp File Reference

Go to the source code of this file.

Classes

struct  by::tprior< T >
 Priority wrapper for type matching. More...
 
class  by::tpriorities< T >
 Collection of prioritized elements. More...
 

Typedefs

typedef tpriorities< node > by::priorities
 

Enumerations

enum  by::priorType { EXACT_MATCH = 0 , by::NUMERIC_MATCH = 1 , by::IMPLICIT_MATCH = 2 , by::NO_MATCH }
 the lower value, the higher priority. More...
 

Functions

const _nout nchar * by::getPriorTypeName (priorType type)
 

Enumeration Type Documentation

◆ priorType

the lower value, the higher priority.

Enumerator
NUMERIC_MATCH 

lv0: exact match.

IMPLICIT_MATCH 

lv1: numeric match. it's almost same level of lv0. except lv1 allows numeric implicit type cast (e.g. byte to int or reverse order)

NO_MATCH 

lv2: implicit cast match. it's almost same level of lv1 except it allows all kind of implicit type cast.