src
Public Member Functions | Public Attributes | List of all members
re2c::rule_t Struct Reference

#include <path.h>

Collaboration diagram for re2c::rule_t:
Collaboration graph
[legend]

Public Member Functions

 rule_t (rule_rank_t r, bool c)
 
bool operator< (const rule_t &r) const
 

Public Attributes

rule_rank_t rank
 
bool restorectx
 

Detailed Description

Definition at line 12 of file path.h.

Constructor & Destructor Documentation

re2c::rule_t::rule_t ( rule_rank_t  r,
bool  c 
)
inline

Definition at line 17 of file path.h.

18  : rank (r)
19  , restorectx (c)
20  {}
bool restorectx
Definition: path.h:15
rule_rank_t rank
Definition: path.h:14

Member Function Documentation

bool re2c::rule_t::operator< ( const rule_t r) const
inline

Definition at line 24 of file path.h.

25  {
26  return rank < r.rank
27  || (!(r.rank < rank) && restorectx < r.restorectx);
28  }
bool restorectx
Definition: path.h:15
rule_rank_t rank
Definition: path.h:14

Member Data Documentation

rule_rank_t re2c::rule_t::rank

Definition at line 14 of file path.h.

bool re2c::rule_t::restorectx

Definition at line 15 of file path.h.


The documentation for this struct was generated from the following file: