CBMC
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
code_typet Class Reference

Base type of functions. More...

#include <std_types.h>

+ Inheritance diagram for code_typet:
+ Collaboration diagram for code_typet:

Classes

class   parametert
 

Public Types

typedef std::vector< parametertparameterst
 
typedef std::unordered_map< irep_idt, std::size_t >  parameter_indicest
 
- Public Types inherited from irept
 
 
 
 
  Used to refer to this class from derived classes.
 

Public Member Functions

  Constructs a new code type, i.e., function type.
 
 
 
 
 
 
 
 
 
 
 
 
void  set_inlined (bool value)
 
 
 
 
 
std::vector< irep_idtparameter_identifiers () const
  Produces the list of parameter identifiers.
 
  Get a map from parameter name to its index.
 
- Public Member Functions inherited from typet
  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
 
 
 
 
  irept ()=default
 
 
const std::string &  id_string () const
 
void  id (const irep_idt &_data)
 
 
ireptadd (const irep_idt &name)
 
ireptadd (const irep_idt &name, irept irep)
 
const std::string &  get_string (const irep_idt &name) const
 
 
 
 
std::size_t  get_size_t (const irep_idt &name) const
 
 
void  set (const irep_idt &name, const irep_idt &value)
 
void  set (const irep_idt &name, irept irep)
 
void  set (const irep_idt &name, const long long value)
 
void  set_size_t (const irep_idt &name, const std::size_t value)
 
 
 
 
 
 
void  swap (irept &irep)
 
  defines ordering on the internal representation
 
  defines ordering on the internal representation
 
  defines ordering on the internal representation comments are ignored
 
void  clear ()
 
 
subtget_sub ()
 
 
 
 
std::size_t  hash () const
 
std::size_t  full_hash () const
 
 
std::string  pretty (unsigned indent=0, unsigned max_indent=0) const
 
- Public Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 
 
 
 
 
 
 
 
const dtread () const
 
dtwrite ()
 

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
 
- Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
void  detach ()
 
- Static Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 
  Does the same as remove_ref, but using an explicit stack instead of recursion.
 
dtdata
 
- Static Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 

Detailed Description

Base type of functions.

Definition at line 581 of file std_types.h.

Member Typedef Documentation

◆  parameter_indicest

typedef std::unordered_map<irep_idt, std::size_t> code_typet::parameter_indicest

Definition at line 750 of file std_types.h.

◆  parameterst

Definition at line 585 of file std_types.h.

Constructor & Destructor Documentation

◆  code_typet()

code_typet::code_typet ( parameterst  _parameters,
typet  _return_type 
)
inline

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()

const irep_idt & code_typet::get_access ( ) const
inline

Definition at line 718 of file std_types.h.

◆  get_inlined()

bool code_typet::get_inlined ( ) const
inline

Definition at line 708 of file std_types.h.

◆  get_is_constructor()

bool code_typet::get_is_constructor ( ) const
inline

Definition at line 728 of file std_types.h.

◆  get_this()

const parametert * code_typet::get_this ( ) const
inline

Definition at line 664 of file std_types.h.

◆  has_ellipsis()

bool code_typet::has_ellipsis ( ) const
inline

Definition at line 654 of file std_types.h.

◆  has_this()

bool code_typet::has_this ( ) const
inline

Definition at line 659 of file std_types.h.

◆  is_KnR()

bool code_typet::is_KnR ( ) const
inline

Definition at line 673 of file std_types.h.

◆  make_ellipsis()

void code_typet::make_ellipsis ( )
inline

Definition at line 678 of file std_types.h.

◆  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()

parameter_indicest code_typet::parameter_indices ( ) const
inline

Get a map from parameter name to its index.

Definition at line 753 of file std_types.h.

◆  parameters() [1/2]

parameterst & code_typet::parameters ( )
inline

Definition at line 703 of file std_types.h.

◆  parameters() [2/2]

const parameterst & code_typet::parameters ( ) const
inline

Definition at line 698 of file std_types.h.

◆  remove_ellipsis()

void code_typet::remove_ellipsis ( )
inline

Definition at line 683 of file std_types.h.

◆  return_type() [1/2]

typet & code_typet::return_type ( )
inline

Definition at line 693 of file std_types.h.

◆  return_type() [2/2]

const typet & code_typet::return_type ( ) const
inline

Definition at line 688 of file std_types.h.

◆  set_access()

void code_typet::set_access ( const irep_idtaccess )
inline

Definition at line 723 of file std_types.h.

◆  set_inlined()

void code_typet::set_inlined ( bool  value )
inline

Definition at line 713 of file std_types.h.

◆  set_is_constructor()

void code_typet::set_is_constructor ( )
inline

Definition at line 733 of file std_types.h.


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

AltStyle によって変換されたページ (->オリジナル) /