TokenMap Class

Definition

Line 19 of System.RegularExpressions/RexTokens.cm

Constructors & Destructor

static TokenMap()
private TokenMap()

Member Functions

public int GetTokenId(const String<uchar>& tokenName)
public String<uchar> GetTokenInfo(int tokenId)
public String<uchar> GetTokenName(int tokenId)
public static TokenMap& Instance()

Member Variables

private static UniquePtr<TokenMap> instance
private Map<String<uchar>, int, Less<String<uchar>>> tokenIdMap
private List<String<uchar>> tokenInfoList
private List<String<uchar>> tokenNameList

Constructor& Destructor Details

TokenMap Static Constructor

static TokenMap()

Definition
Line 21 of System.RegularExpressions/RexTokens.cm


TokenMap Constructor

private TokenMap()

Definition
Line 49 of System.RegularExpressions/RexTokens.cm


Member Function Details

GetTokenId Member Function

public int GetTokenId(const String<uchar>& tokenName)

Definition
Line 29 of System.RegularExpressions/RexTokens.cm


GetTokenInfo Member Function

public String<uchar> GetTokenInfo(int tokenId)

Definition
Line 45 of System.RegularExpressions/RexTokens.cm


GetTokenName Member Function

public String<uchar> GetTokenName(int tokenId)

Definition
Line 41 of System.RegularExpressions/RexTokens.cm


Instance Static Member Function

public static TokenMap& Instance()

Definition
Line 25 of System.RegularExpressions/RexTokens.cm