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

#include <pattern.H>

Inheritance diagram for hobbes::Pattern:
Inheritance graph
Collaboration diagram for hobbes::Pattern:
Collaboration graph

Public Member Functions

virtual void show (std::ostream &) const =0
 
virtual bool operator== (const Pattern &) const =0
 
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
 

Protected Member Functions

virtual void assignSubNames (const std::string &)=0
 
 Pattern (int cid, const LexicalAnnotation &)
 

Private Attributes

std::string pname
 
int cid
 

Additional Inherited Members

- 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 &)
 

Constructor & Destructor Documentation

◆ Pattern()

hobbes::Pattern::Pattern ( int  cid,
const LexicalAnnotation la 
)
protected

Member Function Documentation

◆ assignSubNames()

virtual void hobbes::Pattern::assignSubNames ( const std::string &  )
protectedpure virtual

◆ case_id()

int hobbes::Pattern::case_id ( ) const

◆ name() [1/2]

const std::string & hobbes::Pattern::name ( ) const

◆ name() [2/2]

void hobbes::Pattern::name ( const std::string &  x)

◆ operator==()

virtual bool hobbes::Pattern::operator== ( const Pattern ) const
pure virtual

◆ show()

virtual void hobbes::Pattern::show ( std::ostream &  ) const
pure virtual

Member Data Documentation

◆ cid

int hobbes::Pattern::cid
private

◆ pname

std::string hobbes::Pattern::pname
private

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