|
| DEFINE_IS_SUBCLASS (ClassType) |
|
bool | operator== (const Type &rhs) const override |
|
bool | isSubtypeOf (const TypePtr rhs) const override |
|
std::string | str () const override |
|
std::string | python_str () const override |
|
TypePtr | getAttribute (const std::string &name) const |
|
Method * | getMethod (const std::string &name) const |
|
std::vector< Method * > | methods () const |
|
std::string | name () const |
|
size_t | numAttributes () const |
|
size_t | getAttributeSlot (const std::string &name) const |
|
bool | hasAttribute (const std::string &name) const |
|
void | addAttribute (const std::string &name, TypePtr type) |
|
at::ArrayRef< TypePtr > | containedTypes () const override |
|
virtual bool | isSubclass (const TypeKind kind) const =0 |
|
TypeKind | kind () const |
|
virtual bool | requires_grad () const |
|
template<typename T > |
std::shared_ptr< T > | cast () |
|
template<typename T > |
std::shared_ptr< const T > | cast () const |
|
template<typename T > |
std::shared_ptr< T > | expect () |
|
template<typename T > |
std::shared_ptr< const T > | expect () const |
|
virtual bool | hasFreeVariables () const |
|
TypePtr | withContained (std::vector< TypePtr > contained_types) |
|
virtual TypePtr | createWithContained (std::vector< TypePtr > contained_types) const |
|
|
static ClassTypePtr | create (const std::string &name, std::shared_ptr< Module > module) |
|
static ClassTypePtr | get (const std::string &name) |
|
static void | clearRegistry () |
|
|
static const TypeKind | Kind = TypeKind::ClassType |
|
Definition at line 1107 of file jit_type.h.
The documentation for this struct was generated from the following files: