|
ROSE 2.23.0
|
holds data a class in a program
Definition at line 289 of file ClassHierarchyAnalysis.h.
#include <Rose/Common/Analysis/ClassHierarchyAnalysis.h>
Public Types | |
| using | VirtualFunctionContainer = std::vector< FunctionKeyType > |
| Container of virtual function keys declared by a class. | |
| using | DataMemberContainer = std::vector< VariableKeyType > |
| Container of data member keys declared by a class. | |
| using | AncestorContainer = std::vector< InheritanceDesc > |
| Container of direct and indirect ancestor descriptors. | |
| using | DescendantContainer = std::vector< InheritanceDesc > |
| Container of direct and indirect descendant descriptors. | |
| using | VirtualBaseOrderContainer = std::vector< ClassKeyType > |
| Container describing virtual base initialization order. | |
Public Member Functions | |
| ClassData ()=default | |
| Constructs an empty class data object. | |
| ClassData (const ClassData &other)=default | |
| Default copy constructor. | |
| ClassData (ClassData &&other)=default | |
| Default move constructor. | |
| ClassData & | operator= (const ClassData &other)=default |
| Default copy assignment. | |
| ClassData & | operator= (ClassData &&other)=default |
| Default move assignment. | |
| ~ClassData ()=default | |
| Default destructor. | |
| bool | declaresVirtualFunctions () const |
| property indicating whether this class declares at least one virtual function | |
| bool | hasVirtualTable () const |
| returns true, iff the class requires a virtual table (vtable). | |
| bool | hasVirtualInheritance () const |
| returns true, iff this class directly or indirectly uses virtual inheritance. | |
| bool | hasVirtualFunctions () const |
| returns true, iff this inherits or declares virtual functions. | |
| AncestorContainer & | ancestors () |
| returns a (const) reference to all direct and indirect ancestors | |
| const AncestorContainer & | ancestors () const |
| returns a (const) reference to all direct and indirect ancestors | |
| DescendantContainer & | descendants () |
| returns a (const) reference to all direct and indirect descendants | |
| const DescendantContainer & | descendants () const |
| returns a (const) reference to all direct and indirect descendants | |
| VirtualFunctionContainer & | virtualFunctions () |
| returns a (const) reference to all virtual functions declared by this class | |
| const VirtualFunctionContainer & | virtualFunctions () const |
| returns a (const) reference to all virtual functions declared by this class | |
| VirtualBaseOrderContainer & | virtualBaseClassOrder () |
| returns a (const) reference to virtual base class construction/destruction order | |
| const VirtualBaseOrderContainer & | virtualBaseClassOrder () const |
| returns a (const) reference to virtual base class construction/destruction order | |
| DataMemberContainer & | dataMembers () |
| returns a (const) reference to all data members declared by this class | |
| const DataMemberContainer & | dataMembers () const |
| returns a (const) reference to all data members declared by this class | |
| void | inheritsVirtualFunctions (bool val) |
| property indicating whether this class inherits at least one virtual function | |
| bool | inheritsVirtualFunctions () const |
| property indicating whether this class inherits at least one virtual function | |
| bool | abstractClass () const |
| property indicating that is an abstract class | |
| void | abstractClass (bool bval) |
| property indicating that is an abstract class | |
| using Rose::Common::Analysis::ClassData::VirtualFunctionContainer = std::vector<FunctionKeyType> |
Container of virtual function keys declared by a class.
Definition at line 294 of file ClassHierarchyAnalysis.h.
| using Rose::Common::Analysis::ClassData::DataMemberContainer = std::vector<VariableKeyType> |
Container of data member keys declared by a class.
Definition at line 297 of file ClassHierarchyAnalysis.h.
| using Rose::Common::Analysis::ClassData::AncestorContainer = std::vector<InheritanceDesc> |
Container of direct and indirect ancestor descriptors.
Definition at line 300 of file ClassHierarchyAnalysis.h.
| using Rose::Common::Analysis::ClassData::DescendantContainer = std::vector<InheritanceDesc> |
Container of direct and indirect descendant descriptors.
Definition at line 303 of file ClassHierarchyAnalysis.h.
| using Rose::Common::Analysis::ClassData::VirtualBaseOrderContainer = std::vector<ClassKeyType> |
Container describing virtual base initialization order.
Definition at line 306 of file ClassHierarchyAnalysis.h.
|
default |
Default copy constructor.
| other | class data to copy. |
|
default |
Default move constructor.
| other | class data to move from. |
Default copy assignment.
| other | class data to copy. |
Default move assignment.
| other | class data to move from. |
|
inline |
returns a (const) reference to all direct and indirect ancestors
Definition at line 335 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all direct and indirect ancestors
Definition at line 336 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all direct and indirect descendants
Definition at line 343 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all direct and indirect descendants
Definition at line 344 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all virtual functions declared by this class
Definition at line 351 of file ClassHierarchyAnalysis.h.
Referenced by declaresVirtualFunctions().
|
inline |
returns a (const) reference to all virtual functions declared by this class
Definition at line 352 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to virtual base class construction/destruction order
Definition at line 359 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to virtual base class construction/destruction order
Definition at line 360 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all data members declared by this class
Definition at line 367 of file ClassHierarchyAnalysis.h.
|
inline |
returns a (const) reference to all data members declared by this class
Definition at line 368 of file ClassHierarchyAnalysis.h.
|
inline |
property indicating whether this class declares at least one virtual function
Definition at line 374 of file ClassHierarchyAnalysis.h.
References virtualFunctions().
|
inline |
property indicating whether this class inherits at least one virtual function
| val | true if the class inherits virtual functions. |
Definition at line 380 of file ClassHierarchyAnalysis.h.
|
inline |
property indicating whether this class inherits at least one virtual function
| val | true if the class inherits virtual functions. |
Definition at line 381 of file ClassHierarchyAnalysis.h.
| bool Rose::Common::Analysis::ClassData::hasVirtualTable | ( | ) | const |
returns true, iff the class requires a virtual table (vtable).
a vtable is required if a class uses virtual inheritance or virtual functions.
| bool Rose::Common::Analysis::ClassData::hasVirtualInheritance | ( | ) | const |
returns true, iff this class directly or indirectly uses virtual inheritance.
| bool Rose::Common::Analysis::ClassData::hasVirtualFunctions | ( | ) | const |
returns true, iff this inherits or declares virtual functions.
|
inline |
property indicating that is an abstract class
| bval | true if this class is abstract. |
Definition at line 407 of file ClassHierarchyAnalysis.h.
|
inline |
property indicating that is an abstract class
| bval | true if this class is abstract. |
Definition at line 408 of file ClassHierarchyAnalysis.h.