Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.dataflow.vtype.Type Class Reference
Inheritance diagram for cpc.dataflow.vtype.Type:
cpc.dataflow.description.Describable cpc.dataflow.vtype.ArrayType cpc.dataflow.vtype.BoolType cpc.dataflow.vtype.DictType cpc.dataflow.vtype.FileType cpc.dataflow.vtype.FloatType cpc.dataflow.vtype.IntType cpc.dataflow.vtype.RecordType cpc.dataflow.vtype.StringType

Public Member Functions

def getName
 
def isAnonymous
 
def isBuiltin
 
def getParent
 
def hasMembers
 
def getMembers
 
def isCompound
 
def valueFromLiteral
 
def valueToLiteral
 
def isSubtype
 
def remove
 
def getLib
 
def setLib
 
def getFullName
 
def inherit
 
def writeXML
 
def writePartsXML
 
def getSubItem
 
def getBaseType
 
def getBaseTypeName
 
def jsonDescribe
 
def containsBasetype
 
def isImplicit
 
def markImplicit
 
- Public Member Functions inherited from cpc.dataflow.description.Describable
def setDescription
 
def getDescription
 

Public Attributes

 name
 
 parent
 
 compound
 
 lib
 
 implicit
 
 builtin
 
 simpleLiteral
 
- Public Attributes inherited from cpc.dataflow.description.Describable
 desc
 

Detailed Description

The class describing a data type.

Member Function Documentation

def cpc.dataflow.vtype.Type.containsBasetype (   self,
  basetype 
)
Check whether the type or one of its members contains a subtype
   of basetype.
def cpc.dataflow.vtype.Type.getBaseType (   self)
Get the base type of this type.
def cpc.dataflow.vtype.Type.getBaseTypeName (   self)
Get the base type of this type.
def cpc.dataflow.vtype.Type.getFullName (   self)
def cpc.dataflow.vtype.Type.getLib (   self)
Get the library this type is in.
def cpc.dataflow.vtype.Type.getMembers (   self)
def cpc.dataflow.vtype.Type.getName (   self)
def cpc.dataflow.vtype.Type.getParent (   self)
def cpc.dataflow.vtype.Type.getSubItem (   self,
  item 
)
Get a specific sub-item.
def cpc.dataflow.vtype.Type.hasMembers (   self)
Returns whether the type has member variables
def cpc.dataflow.vtype.Type.inherit (   self,
  newName,
  lib 
)
def cpc.dataflow.vtype.Type.isAnonymous (   self)
def cpc.dataflow.vtype.Type.isBuiltin (   self)
Returns whether the type is built-in
def cpc.dataflow.vtype.Type.isCompound (   self)
Whether the type consists of several items.
def cpc.dataflow.vtype.Type.isImplicit (   self)
Whether the type is implicit (i.e. does not need to be written
   out with the state)
def cpc.dataflow.vtype.Type.isSubtype (   self,
  type 
)
Check whether this type is an instance (i.e. inherited from) of the
   given type. Any type is a subtype of itself.
def cpc.dataflow.vtype.Type.jsonDescribe (   self)
Get a description of a type in a JSON-serializable format.
def cpc.dataflow.vtype.Type.markImplicit (   self)
Mark the type as implicit.
def cpc.dataflow.vtype.Type.remove (   self,
  value 
)
Perform a clean-up of a value
def cpc.dataflow.vtype.Type.setLib (   self,
  lib 
)
Set the library this type is in.
def cpc.dataflow.vtype.Type.valueFromLiteral (   self,
  string 
)
Convert a value from a string.
def cpc.dataflow.vtype.Type.valueToLiteral (   self,
  value 
)
Convert a value to a string.
def cpc.dataflow.vtype.Type.writePartsXML (   self,
  outf,
  indent = 0 
)
Write the xml of the constituent parts of the type for compound
    types.
def cpc.dataflow.vtype.Type.writeXML (   self,
  outf,
  indent = 0 
)
Describe the type.

Member Data Documentation

cpc.dataflow.vtype.Type.builtin
cpc.dataflow.vtype.Type.compound
cpc.dataflow.vtype.Type.implicit
cpc.dataflow.vtype.Type.lib
cpc.dataflow.vtype.Type.name
cpc.dataflow.vtype.Type.parent
cpc.dataflow.vtype.Type.simpleLiteral

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