hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
|
#include <pattern.H>
Public Types | |
typedef std::pair< std::string, PatternPtr > | Field |
typedef std::vector< Field > | Fields |
![]() | |
typedef PatternCase< MatchRecord > | Base |
Public Member Functions | |
MatchRecord (const Fields &fs, const LexicalAnnotation &) | |
const Field & | pattern (size_t i) const |
const Idxs & | indexes () const |
size_t | size () const |
const Fields & | fields () const |
void | fields (const Fields &) |
void | show (std::ostream &) const |
bool | operator== (const Pattern &) const |
![]() | |
PatternCase (const LexicalAnnotation &) | |
![]() | |
const std::string & | name () const |
void | name (const std::string &) |
int | case_id () const |
![]() | |
LexicallyAnnotated (const LexicallyAnnotated &) | |
LexicallyAnnotated (const LexicalAnnotation &) | |
LexicallyAnnotated (const LexRange &) | |
LexicallyAnnotated (const Pos &, const Pos &) | |
const LexicalAnnotation & | la () const |
Static Public Attributes | |
static const int | type_case_id = 4 |
Private Member Functions | |
void | assignSubNames (const std::string &) |
Static Private Member Functions | |
static void | show (std::ostream &, const Field &f) |
Private Attributes | |
Fields | fs |
Idxs | is |
Additional Inherited Members | |
![]() | |
static void | pushFileContext (const std::string &) |
static void | pushLiteralContext (const std::string &) |
static void | popContext () |
static LexicalAnnotation | make (const Pos &, const Pos &) |
![]() | |
Pattern (int cid, const LexicalAnnotation &) | |
typedef std::pair<std::string, PatternPtr> hobbes::MatchRecord::Field |
typedef std::vector<Field> hobbes::MatchRecord::Fields |
hobbes::MatchRecord::MatchRecord | ( | const Fields & | fs, |
const LexicalAnnotation & | la | ||
) |
|
privatevirtual |
Implements hobbes::Pattern.
const MatchRecord::Fields & hobbes::MatchRecord::fields | ( | ) | const |
void hobbes::MatchRecord::fields | ( | const Fields & | fs | ) |
const Idxs & hobbes::MatchRecord::indexes | ( | ) | const |
|
virtual |
Implements hobbes::Pattern.
const MatchRecord::Field & hobbes::MatchRecord::pattern | ( | size_t | i | ) | const |
|
virtual |
Implements hobbes::Pattern.
|
staticprivate |
size_t hobbes::MatchRecord::size | ( | ) | const |
|
private |
|
private |
|
static |