fparser Reference Guide  0.0.14
fparser.common.base_classes.Variable Class Reference
Inheritance diagram for fparser.common.base_classes.Variable:
Collaboration diagram for fparser.common.base_classes.Variable:

Public Member Functions

def __init__ (self, parent, name)
 
def __repr__ (self)
 
def get_typedecl (self)
 
def add_parent (self, parent)
 
def set_type (self, typedecl)
 
def set_init (self, expr)
 
def set_dimension (self, dims)
 
def set_bounds (self, bounds)
 
def set_length (self, length)
 
def set_intent (self, intent)
 
def is_intent_in (self)
 
def is_intent_inout (self)
 
def is_intent_hide (self)
 
def is_intent_inplace (self)
 
def is_intent_out (self)
 
def is_intent_c (self)
 
def is_intent_cache (self)
 
def is_intent_copy (self)
 
def is_intent_overwrite (self)
 
def is_intent_callback (self)
 
def is_intent_aux (self)
 
def is_private (self)
 
def is_public (self)
 
def is_allocatable (self)
 
def is_external (self)
 
def is_intrinsic (self)
 
def is_parameter (self)
 
def is_optional (self)
 
def is_required (self)
 
def is_pointer (self)
 
def is_array (self)
 
def is_scalar (self)
 
def update (self, attrs)
 
def __str__ (self)
 
def get_array_spec (self)
 
def is_deferred_shape_array (self)
 
def is_assumed_size_array (self)
 
def is_assumed_shape_array (self)
 
def is_explicit_shape_array (self)
 
def is_allocatable_array (self)
 
def is_array_pointer (self)
 
def analyze (self)
 
def error (self, message)
 
def warning (self, message)
 
def info (self, message)
 
- Public Member Functions inherited from fparser.common.utils.classes
def __new__ (metacls, name, bases, dict)
 
- Public Member Functions inherited from fparser.common.utils.meta_classes
def __getattr__ (self, name)
 

Public Attributes

 parent
 
 parents
 
 name
 
 typedecl
 
 dimension
 
 bounds
 
 length
 
 attributes
 
 intent
 
 bind
 
 check
 
 init
 
 rank
 
 shape
 

Static Public Attributes

list known_intent_specs
 
list known_attributes
 

Detailed Description

Variable instance has attributes:
  name
  typedecl
  dimension
  attributes
  intent
  parent - Statement instances defining the variable

Definition at line 170 of file base_classes.py.

Member Data Documentation

◆ known_attributes

list fparser.common.base_classes.Variable.known_attributes
static
Initial value:
= [
"PUBLIC",
"PRIVATE",
"ALLOCATABLE",
"ASYNCHRONOUS",
"EXTERNAL",
"INTRINSIC",
"OPTIONAL",
"PARAMETER",
"POINTER",
"PROTECTED",
"SAVE",
"TARGET",
"VALUE",
"VOLATILE",
"REQUIRED",
]

Definition at line 304 of file base_classes.py.

◆ known_intent_specs

list fparser.common.base_classes.Variable.known_intent_specs
static
Initial value:
= [
"IN",
"OUT",
"INOUT",
"CACHE",
"HIDE",
"COPY",
"OVERWRITE",
"CALLBACK",
"AUX",
"C",
"INPLACE",
"OUT=",
]

Definition at line 278 of file base_classes.py.


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