Gyoji Compiler
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Gyoji::mir::Argument Class Reference

Function argument. More...

#include <types.hpp>

Public Member Functions

 Argument (const Type *_argument_type, const Gyoji::context::SourceReference &_source_ref)
 
 Argument (const Argument &_other)
 
 ~Argument ()
 Move along, nothing to see here.
 
const Typeget_type () const
 
const Gyoji::context::SourceReferenceget_source_ref () const
 

Detailed Description

Function argument.

This class represents the argument to a function for function-pointer types.

Constructor & Destructor Documentation

◆ Argument() [1/2]

Argument::Argument ( const Type _argument_type,
const Gyoji::context::SourceReference _source_ref 
)

Creates a new argument with the given type based on the type of the argument and a reference to the source location where it was declared.

◆ Argument() [2/2]

Argument::Argument ( const Argument _other)

This makes a copy of the argument. It is provided so that the type class may use a map or array to store the members rather than storing them by pointer, so a copy and assignment is required.

◆ ~Argument()

Argument::~Argument ( )

Move along, nothing to see here.

Move along, nothing to see here.

Member Function Documentation

◆ get_source_ref()

const Gyoji::context::SourceReference & Argument::get_source_ref ( ) const

Returns a reference to the source where this argument was declared.

◆ get_type()

const Type * Argument::get_type ( ) const

Returns the type of argument.


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