cgv
Loading...
Searching...
No Matches
cgv::ppp::expression_token Struct Reference
Inheritance diagram for cgv::ppp::expression_token:
cgv::utils::token

Public Member Functions

 expression_token (const token &tok, const variant &v)
 
 expression_token (const token &tok, OperatorType _ot)
 
 expression_token (const token &tok, ExpressionPart _ep)
 
- Public Member Functions inherited from cgv::utils::token
 token ()
 construct with both pointers set to 0
 
 token (const char *_str)
 construct from c-string
 
 token (const char *_b, const char *_e)
 construct from character range
 
 token (const std::string &s)
 construct from string
 
size_t get_length () const
 return the length of the token in number of characters
 
size_t size () const
 return the length of the token in number of characters
 
bool empty () const
 return whether the token is empty
 
void skip (const std::string &skip_chars)
 set begin by skipping all instances of the given character set
 
void reverse_skip (const std::string &skip_chars)
 set end by skipping all instances of the given character set
 
char operator[] (unsigned int i) const
 return the i-th character of the token
 
bool operator== (const char *s) const
 compare to const char*
 
bool operator== (const std::string &s) const
 compare to string
 
bool operator!= (const char *s) const
 compare to const char*
 
bool operator!= (const std::string &s) const
 compare to string
 

Public Attributes

variant value
 
OperatorType ot
 
ExpressionPart ep
 
- Public Attributes inherited from cgv::utils::token
const char * begin
 pointers that define the range of characters
 
const char * end
 

Detailed Description

Definition at line 19 of file expression_processor.h.

Constructor & Destructor Documentation

◆ expression_token() [1/3]

cgv::ppp::expression_token::expression_token ( const token tok,
const variant v 
)
inline

Definition at line 24 of file expression_processor.h.

◆ expression_token() [2/3]

cgv::ppp::expression_token::expression_token ( const token tok,
OperatorType  _ot 
)
inline

Definition at line 25 of file expression_processor.h.

◆ expression_token() [3/3]

cgv::ppp::expression_token::expression_token ( const token tok,
ExpressionPart  _ep 
)
inline

Definition at line 26 of file expression_processor.h.

Member Data Documentation

◆ ep

ExpressionPart cgv::ppp::expression_token::ep

Definition at line 23 of file expression_processor.h.

◆ ot

OperatorType cgv::ppp::expression_token::ot

Definition at line 22 of file expression_processor.h.

◆ value

variant cgv::ppp::expression_token::value

Definition at line 21 of file expression_processor.h.


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