il::function_declaration Class Reference
Represents a function declaration.
More...
#include <function_declaration.h>
List of all members.
Public Member Functions |
| function_declaration (string name, namespace_context ns, qualifier_type qt, type *ret_type, vector< variable_declaration * > &args, block *body, bool is_alloc, bool is_dealloc, bool is_constructor, bool is_destructor, bool is_inline, bool is_vararg, bool is_member_function, bool is_static_member_function, bool is_virtual, bool is_abstract, function_type *sig) |
string | get_name () |
int | get_num_args () |
bool | is_method () |
bool | is_virtual_method () |
bool | is_abstract_virtual_method () |
bool | is_static_method () |
bool | is_allocator () |
bool | is_deallocator () |
bool | is_constructor () |
bool | is_destructor () |
block * | get_body () |
void | set_body (block *b) |
const vector
< variable_declaration * > & | get_arguments () |
type * | get_ret_type () |
const il::namespace_context & | get_namespace () |
bool | is_vararg () |
bool | is_inlined () |
virtual void | print () |
virtual string | to_string () const |
virtual bool | is_fun_decl () |
virtual bool | is_var_decl () |
virtual function_type * | get_signature () |
Friends |
class | boost::serialization::access |
ostream & | operator<< (ostream &os, const function_declaration &obj) |
Detailed Description
Represents a function declaration.
Member Function Documentation
- Returns:
- arguments of function
block * il::function_declaration::get_body |
( |
|
) |
|
- Returns:
- the function body
string il::function_declaration::get_name |
( |
|
) |
|
- Returns:
- name of the declared function
- Returns:
- the namespace in which this function is declared
int il::function_declaration::get_num_args |
( |
|
) |
|
- Returns:
- number of arguments of this function
type * il::function_declaration::get_ret_type |
( |
|
) |
|
- Returns:
- return type of the function
function_type * il::function_declaration::get_signature |
( |
|
) |
[virtual] |
- Returns:
- signature of this function
bool il::function_declaration::is_abstract_virtual_method |
( |
|
) |
|
- Returns:
- Is this function declared to be an abstract virtual method?
bool il::function_declaration::is_allocator |
( |
|
) |
|
- Returns:
- Is this function a memory allocator?
bool il::function_declaration::is_constructor |
( |
|
) |
|
- Returns:
- Is this a constructor?
bool il::function_declaration::is_deallocator |
( |
|
) |
|
- Returns:
- Is this function a memory deallocator?
bool il::function_declaration::is_destructor |
( |
|
) |
|
- Returns:
- Is this a destructor?
bool il::function_declaration::is_inlined |
( |
|
) |
|
- Returns:
- Is this function declared as "inline"?
bool il::function_declaration::is_method |
( |
|
) |
|
- Returns:
- Is this function a method (i.e., a member function) of a class?
bool il::function_declaration::is_static_method |
( |
|
) |
|
- Returns:
- Is this a memeber function declared as static?
bool il::function_declaration::is_vararg |
( |
|
) |
|
- Returns:
- Is this a vararg function?
bool il::function_declaration::is_virtual_method |
( |
|
) |
|
- Returns:
- Is this function declared as virtual?
void il::function_declaration::set_body |
( |
block * |
b |
) |
|
The documentation for this class was generated from the following files: