My Project
Public Member Functions | List of all members
ScopeKey Class Reference

A key for looking up child symbol scopes within a parent, based on name. More...

#include <database.hh>

Public Member Functions

 ScopeKey (const string &nm, uint4 id)
 Construct given a name and id.
 
bool operator< (const ScopeKey &op2) const
 Comparison operator. More...
 

Detailed Description

A key for looking up child symbol scopes within a parent, based on name.

A key for mapping from name to Scope. The class includes a deduplication component if Scopes with the same name are allowed.

Member Function Documentation

◆ operator<()

bool ScopeKey::operator< ( const ScopeKey op2) const

Comparison operator.

Sort first on name, then on dedupId

Parameters
op2is the key to compare with this
Returns
true if this should be ordered before the other key

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