|
ROSE 2.20.0
|
Class repository.
A repository for containing Classes
Definition at line 288 of file BinaryAnalysis/ByteCode/Analysis.h.
#include <Rose/BinaryAnalysis/ByteCode/Analysis.h>


Public Types | |
| using | Ptr = Sawyer::SharedPointer< ClassRepository > |
| Shared ownership pointer. | |
Public Member Functions | |
| bool | insert (const Class::Ptr &cls) |
| Inserts a class into the repository. | |
| bool | contains (const std::string &name) const |
| Returns true if a class with the given name is present. | |
| ByteCode::ClassPtr | findClass (const std::string &name) const |
| Returns the Class with the given name, null if not present. | |
| bool | isAssignableTo (const ClassPtr &source, const ClassPtr &target) const |
| Returns true if a value of the source class can be assigned to the target. | |
Public Member Functions inherited from Sawyer::SharedObject | |
| SharedObject () | |
| Default constructor. | |
| SharedObject (const SharedObject &) | |
| Copy constructor. | |
| virtual | ~SharedObject () |
| Virtual destructor. | |
| SharedObject & | operator= (const SharedObject &) |
| Assignment. | |
Public Member Functions inherited from Sawyer::SharedFromThis< ClassRepository > | |
| SharedPointer< ClassRepository > | sharedFromThis () |
Create a shared pointer from this. | |
| SharedPointer< const ClassRepository > | sharedFromThis () const |
Create a shared pointer from this. | |
Static Public Member Functions | |
| static Ptr | instance () |
| Allocating constructor. | |
Shared ownership pointer.
Definition at line 292 of file BinaryAnalysis/ByteCode/Analysis.h.
| bool Rose::BinaryAnalysis::ByteCode::ClassRepository::insert | ( | const Class::Ptr & | cls | ) |
Inserts a class into the repository.
Returns true if the class was inserted, or false if a class with the same name is already present.