src
Public Member Functions | Static Public Member Functions | Friends | List of all members
re2c::rule_rank_t Class Reference

#include <rule_rank.h>

Public Member Functions

bool is_none () const
 
bool is_def () const
 
bool operator< (const rule_rank_t &r) const
 
bool operator== (const rule_rank_t &r) const
 
uint32_t uint32 () const
 

Static Public Member Functions

static rule_rank_t none ()
 
static rule_rank_t def ()
 

Friends

class counter_t< rule_rank_t >
 
std::ostream & operator<< (std::ostream &o, rule_rank_t r)
 

Detailed Description

Definition at line 21 of file rule_rank.h.

Member Function Documentation

rule_rank_t re2c::rule_rank_t::def ( )
static

Definition at line 30 of file rule_rank.cc.

31 {
32  rule_rank_t r;
33  r.value = DEF;
34  return r;
35 }

Here is the caller graph for this function:

bool re2c::rule_rank_t::is_def ( ) const

Definition at line 42 of file rule_rank.cc.

43 {
44  return value == DEF;
45 }

Here is the caller graph for this function:

bool re2c::rule_rank_t::is_none ( ) const

Definition at line 37 of file rule_rank.cc.

38 {
39  return value == NONE;
40 }

Here is the caller graph for this function:

rule_rank_t re2c::rule_rank_t::none ( )
static

Definition at line 23 of file rule_rank.cc.

24 {
25  rule_rank_t r;
26  r.value = NONE;
27  return r;
28 }

Here is the caller graph for this function:

bool re2c::rule_rank_t::operator< ( const rule_rank_t r) const

Definition at line 47 of file rule_rank.cc.

48 {
49  return value < r.value;
50 }
bool re2c::rule_rank_t::operator== ( const rule_rank_t r) const

Definition at line 52 of file rule_rank.cc.

53 {
54  return value == r.value;
55 }
uint32_t re2c::rule_rank_t::uint32 ( ) const

Definition at line 63 of file rule_rank.cc.

64 {
65  return value;
66 }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class counter_t< rule_rank_t >
friend

Definition at line 39 of file rule_rank.h.

std::ostream& operator<< ( std::ostream &  o,
rule_rank_t  r 
)
friend

Definition at line 57 of file rule_rank.cc.

58 {
59  o << r.value;
60  return o;
61 }

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