ROSE 2.20.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Rose::BinaryAnalysis::ByteCode::ClassRepository Class Reference

Description

Class repository.

A repository for containing Classes

Definition at line 288 of file BinaryAnalysis/ByteCode/Analysis.h.

#include <Rose/BinaryAnalysis/ByteCode/Analysis.h>

Inheritance diagram for Rose::BinaryAnalysis::ByteCode::ClassRepository:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::ByteCode::ClassRepository:
Collaboration graph
[legend]

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.
 

Member Typedef Documentation

◆ Ptr

Shared ownership pointer.

Definition at line 292 of file BinaryAnalysis/ByteCode/Analysis.h.

Member Function Documentation

◆ insert()

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.


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