Loading...
Searching...
No Matches
ledger::symbol_t Struct Reference

#include <scope.h>

Public Types

enum  kind_t {
  UNKNOWN , FUNCTION , OPTION , PRECOMMAND ,
  COMMAND , DIRECTIVE , FORMAT
}
 

Public Member Functions

bool operator< (const symbol_t &sym) const
 
bool operator== (const symbol_t &sym) const
 
 symbol_t ()
 
 symbol_t (const symbol_t &sym)
 
 symbol_t (kind_t _kind, string _name, expr_t::ptr_op_t _definition=NULL)
 
 ~symbol_t () throw ()
 

Public Attributes

expr_t::ptr_op_t definition
 
kind_t kind
 
string name
 

Detailed Description

Definition at line 48 of file scope.h.

Member Enumeration Documentation

◆ kind_t

Enumerator
UNKNOWN 
FUNCTION 
OPTION 
PRECOMMAND 
COMMAND 
DIRECTIVE 
FORMAT 

Definition at line 50 of file scope.h.

Constructor & Destructor Documentation

◆ symbol_t() [1/3]

ledger::symbol_t::symbol_t ( )
inline

Definition at line 64 of file scope.h.

References TRACE_CTOR.

◆ symbol_t() [2/3]

ledger::symbol_t::symbol_t ( kind_t _kind,
string _name,
expr_t::ptr_op_t _definition = NULL )
inline

Definition at line 67 of file scope.h.

References TRACE_CTOR.

◆ symbol_t() [3/3]

ledger::symbol_t::symbol_t ( const symbol_t & sym)
inline

Definition at line 71 of file scope.h.

References TRACE_CTOR.

◆ ~symbol_t()

ledger::symbol_t::~symbol_t ( )
throw ( )
inline

Definition at line 75 of file scope.h.

References TRACE_DTOR.

Member Function Documentation

◆ operator<()

bool ledger::symbol_t::operator< ( const symbol_t & sym) const
inline

Definition at line 79 of file scope.h.

References ledger::downcast(), kind, and name.

+ Here is the call graph for this function:

◆ operator==()

bool ledger::symbol_t::operator== ( const symbol_t & sym) const
inline

Definition at line 82 of file scope.h.

References ledger::downcast(), kind, and name.

+ Here is the call graph for this function:

Member Data Documentation

◆ definition

expr_t::ptr_op_t ledger::symbol_t::definition

Definition at line 62 of file scope.h.

◆ kind

kind_t ledger::symbol_t::kind

Definition at line 60 of file scope.h.

Referenced by operator<(), and operator==().

◆ name

string ledger::symbol_t::name

Definition at line 61 of file scope.h.

Referenced by operator<(), and operator==().


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