Base type of functions.
More...
#include <std_types.h>
+ Inheritance diagram for code_typet:
+ Collaboration diagram for code_typet:
- Public Types inherited from
irept
Used to refer to this class from derived classes.
Constructs a new code type, i.e., function type.
Produces the list of parameter identifiers.
Get a map from parameter name to its index.
- Public Member Functions inherited from
typet
This is a 'fluent style' method for creating a new type with an added-on source location.
This is a 'fluent style' method for adding a source location.
This is a 'fluent style' method for creating a new type with an added-on source location.
This is a 'fluent style' method for adding a source location.
- Public Member Functions inherited from
irept
defines ordering on the internal representation
defines ordering on the internal representation
defines ordering on the internal representation comments are ignored
Additional Inherited Members
- Static Public Member Functions inherited from
typet
Check that the type is well-formed (shallow checks only, i.e., subtypes are not checked)
Check that the type is well-formed, assuming that its subtypes have already been checked for well-formedness.
Check that the type is well-formed (full check, including checks of subtypes)
- Static Public Member Functions inherited from
irept
count the number of named_sub elements that are not comments
Does the same as remove_ref, but using an explicit stack instead of recursion.
Detailed Description
Member Typedef Documentation
◆ parameter_indicest
◆ parameterst
Constructor & Destructor Documentation
◆ code_typet()
Constructs a new code type, i.e., function type.
- Parameters
-
_parameters The vector of function parameters.
_return_type The return type.
Definition at line 590 of file std_types.h.
Member Function Documentation
◆ get_access()
◆ get_inlined()
bool code_typet::get_inlined
(
)
const
inline
◆ get_is_constructor()
bool code_typet::get_is_constructor
(
)
const
inline
◆ get_this()
◆ has_ellipsis()
bool code_typet::has_ellipsis
(
)
const
inline
◆ has_this()
bool code_typet::has_this
(
)
const
inline
◆ is_KnR()
bool code_typet::is_KnR
(
)
const
inline
◆ make_ellipsis()
void code_typet::make_ellipsis
(
)
inline
◆ parameter_identifiers()
std::vector<
irep_idt > code_typet::parameter_identifiers
(
)
const
inline
Produces the list of parameter identifiers.
Definition at line 739 of file std_types.h.
◆ parameter_indices()
Get a map from parameter name to its index.
Definition at line 753 of file std_types.h.
◆ parameters() [1/2]
◆ parameters() [2/2]
◆ remove_ellipsis()
void code_typet::remove_ellipsis
(
)
inline
◆ return_type() [1/2]
typet & code_typet::return_type
(
)
inline
◆ return_type() [2/2]
◆ set_access()
◆ set_inlined()
void code_typet::set_inlined
(
bool
value )
inline
◆ set_is_constructor()
void code_typet::set_is_constructor
(
)
inline
The documentation for this class was generated from the following file: