Gyoji Compiler
|
This indicates the type of access that may be permitted as UNSPECIFIED, CONST, or VOLATILE. More...
#include <tree.hpp>
Public Types | |
enum | AccessQualifierType { UNSPECIFIED , VOLATILE , CONST } |
Public Member Functions | |
AccessQualifier (Gyoji::owned< Terminal > _qualifier) | |
AccessQualifier (const Gyoji::context::SourceReference &_source_ref) | |
~AccessQualifier () | |
const AccessQualifier::AccessQualifierType & | get_type () const |
![]() | |
SyntaxNode (Gyoji::context::TokenID _type, specific_type_t _data, const Gyoji::context::SourceReference &_source_ref) | |
const std::vector< std::reference_wrapper< const SyntaxNode > > & | get_children () const |
const Gyoji::context::TokenID & | get_type () const |
template<class T > | |
bool | has_data () const |
template<class T > | |
const T & | get_data () const |
const SyntaxNode & | get_syntax_node () const |
const Gyoji::context::SourceReference & | get_source_ref () const |
This indicates the type of access that may be permitted as UNSPECIFIED, CONST, or VOLATILE.
Indicates what type of access is permitted for the value. If it is marked as VOLATILE then read and write will be forced from memory rather than allowing them to be optimized out. If it is marked as CONST then the value is read-only in this context. If it is UNSPECIFIED then read/write access is un-restricted
AccessQualifier::AccessQualifier | ( | Gyoji::owned< Terminal > | _qualifier | ) |
Constructs an access qualifier from a parse token which will be either VOLATILE or CONST.
AccessQualifier::AccessQualifier | ( | const Gyoji::context::SourceReference & | _source_ref | ) |
Constructs a default access qualifier (UNSPECIFIED) if no qualifier is specified in the source file.
AccessQualifier::~AccessQualifier | ( | ) |
Destructor, nothing special.
const AccessQualifier::AccessQualifierType & AccessQualifier::get_type | ( | ) | const |
Returns the access qualification type.