hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
hobbes::MatchArray Class Reference

#include <pattern.H>

Inheritance diagram for hobbes::MatchArray:
Inheritance graph
Collaboration diagram for hobbes::MatchArray:
Collaboration graph

Public Member Functions

 MatchArray (const Patterns &ps, const LexicalAnnotation &)
 
const PatternPtrpattern (size_t i) const
 
const Idxsindexes () const
 
size_t size () const
 
void indexes (const Idxs &)
 
void show (std::ostream &) const
 
bool operator== (const Pattern &) const
 
- Public Member Functions inherited from hobbes::PatternCase< MatchArray >
 PatternCase (const LexicalAnnotation &)
 
- Public Member Functions inherited from hobbes::Pattern
const std::string & name () const
 
void name (const std::string &)
 
int case_id () const
 
- Public Member Functions inherited from hobbes::LexicallyAnnotated
 LexicallyAnnotated (const LexicallyAnnotated &)
 
 LexicallyAnnotated (const LexicalAnnotation &)
 
 LexicallyAnnotated (const LexRange &)
 
 LexicallyAnnotated (const Pos &, const Pos &)
 
const LexicalAnnotationla () const
 

Static Public Attributes

static const int type_case_id = 2
 

Private Member Functions

void assignSubNames (const std::string &)
 

Private Attributes

Patterns ps
 
Idxs idxs
 

Additional Inherited Members

- Public Types inherited from hobbes::PatternCase< MatchArray >
typedef PatternCase< MatchArrayBase
 
- Static Public Member Functions inherited from hobbes::LexicallyAnnotated
static void pushFileContext (const std::string &)
 
static void pushLiteralContext (const std::string &)
 
static void popContext ()
 
static LexicalAnnotation make (const Pos &, const Pos &)
 
- Protected Member Functions inherited from hobbes::Pattern
 Pattern (int cid, const LexicalAnnotation &)
 

Constructor & Destructor Documentation

◆ MatchArray()

hobbes::MatchArray::MatchArray ( const Patterns ps,
const LexicalAnnotation la 
)

Member Function Documentation

◆ assignSubNames()

void hobbes::MatchArray::assignSubNames ( const std::string &  x)
privatevirtual

Implements hobbes::Pattern.

◆ indexes() [1/2]

const Idxs & hobbes::MatchArray::indexes ( ) const

◆ indexes() [2/2]

void hobbes::MatchArray::indexes ( const Idxs idxs)

◆ operator==()

bool hobbes::MatchArray::operator== ( const Pattern rhs) const
virtual

Implements hobbes::Pattern.

◆ pattern()

const PatternPtr & hobbes::MatchArray::pattern ( size_t  i) const

◆ show()

void hobbes::MatchArray::show ( std::ostream &  out) const
virtual

Implements hobbes::Pattern.

◆ size()

size_t hobbes::MatchArray::size ( ) const

Member Data Documentation

◆ idxs

Idxs hobbes::MatchArray::idxs
private

◆ ps

Patterns hobbes::MatchArray::ps
private

◆ type_case_id

const int hobbes::MatchArray::type_case_id = 2
static

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