Structure type, corresponds to C style structs.
More...
#include <std_types.h>
+ Inheritance diagram for struct_typet:
+ Collaboration diagram for struct_typet:
Base class or struct that a class or struct inherits from.
More...
- Public Types inherited from
irept
Used to refer to this class from derived classes.
Returns true if the struct is a prefix of other, i.e., if this struct has n components then the component types and names of this struct must match the first n components of other struct.
A struct may be a class, where members may have access restrictions.
Get the collection of base classes/structs.
Get the collection of base classes/structs.
Add a base class/struct.
Return the base with the given name, if exists.
Test whether id is a base class/struct.
Get the reference to a component with given name.
Return the sequence number of the component with given name.
A struct may be a class, where members may have access restrictions.
Return the access specification for members where access has not been modified.
A struct/union may be incomplete.
A struct/union may be incomplete.
- 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
Structure type, corresponds to C style structs.
Definition at line 229 of file std_types.h.
Member Typedef Documentation
◆ basest
Constructor & Destructor Documentation
◆ struct_typet() [1/2]
struct_typet::struct_typet
(
)
inline
◆ struct_typet() [2/2]
Member Function Documentation
◆ add_base()
Add a base class/struct.
- Parameters
-
base Type of case/class struct to be added.
Definition at line 99 of file std_types.cpp.
◆ bases() [1/2]
basest & struct_typet::bases
(
)
inline
Get the collection of base classes/structs.
Definition at line 267 of file std_types.h.
◆ bases() [2/2]
Get the collection of base classes/structs.
Definition at line 261 of file std_types.h.
◆ get_base()
Return the base with the given name, if exists.
- Parameters
-
id The name of the base we are looking for.
- Returns
- The base if exists.
Definition at line 105 of file std_types.cpp.
◆ has_base()
Test whether id is a base class/struct.
- Parameters
-
id symbol type name
- Returns
- True if, and only if, the symbol type
id is a base class/struct.
Definition at line 284 of file std_types.h.
◆ is_class()
bool struct_typet::is_class
(
)
const
inline
A struct may be a class, where members may have access restrictions.
Definition at line 244 of file std_types.h.
◆ is_prefix_of()
Returns true if the struct is a prefix of other, i.e., if this struct has n components then the component types and names of this struct must match the first n components of other struct.
- Parameters
-
other Struct type to compare with.
Definition at line 119 of file std_types.cpp.
The documentation for this class was generated from the following files: