A generic port type.
The generic type is a placeholder until the port is specialized (i.e., its type is replaced) with a non-generic type.
|
| VuoGenericType (string typeName, set< string > compatibleSpecializedTypes) |
| Creates a generic type.
|
|
bool | isSpecializedTypeCompatible (string typeName) |
| Returns true if this generic type is allowed to be specialized with the given type.
|
|
bool | isGenericTypeCompatible (VuoGenericType *otherType) |
| Returns true if this generic type has any compatible specialized types in common with the given generic type.
|
|
set< string > | getCompatibleSpecializedTypes (Compatibility &compatibility) |
| Returns a set of the non-generic types compatible with the given type, or an empty set if all types or all list types are compatible.
|
|
| VuoType (string typeName) |
| Creates a type.
|
|
virtual | ~VuoType (void) |
| to make this class dynamic_cast-able
|
|
| VuoBase (string id) |
| Creates a VuoType base class.
|
|
void | setCompiler (VuoCompilerType *compiler) |
| Sets the VuoType base class instance's VuoCompilerType detail class instance.
|
|
VuoCompilerType * | getCompiler (void) const |
| Returns the VuoType base class instance's VuoCompilerType detail class instance.
|
|
bool | hasCompiler (void) const |
| Returns true if this base class instance has a compiler detail.
|
|
void | setRenderer (void *renderer) |
| Does nothing.
|
|
void * | getRenderer (void) const |
| Does nothing.
|
|
bool | hasRenderer (void) const |
| Returns false.
|
|
| VuoModule (string moduleKey) |
| Creates a module.
|
|
string | getModuleKey (void) |
| Returns this module's unique name.
|
|
void | setModuleKey (string moduleKey) |
| Sets this module's unique name.
|
|
string | getDefaultTitle (void) |
| Returns the default title for instances of this module, as specified by the .vuonode/.bc implementation.
|
|
string | getDefaultTitleWithoutSuffix (void) |
| Returns the default title, with the optional parenthetical suffix removed.
|
|
void | setDefaultTitle (string defaultTitle) |
| Sets the default title for instances of this module.
|
|
string | getDescription (void) |
| Returns the description given in the module's metadata, or if none is given, the description found in a separate file in the module's node set.
|
|
void | setDescription (string description) |
| Sets the description of this module provided as documentation.
|
|
string | getVersion (void) |
| Returns the module's version, in Semantic Versioning format.
|
|
void | setVersion (string version) |
| Sets the module's version, in Semantic Versioning format.
|
|
vector< string > | getKeywords (void) |
| Returns a list of the module's keywords.
|
|
void | setKeywords (vector< string > keywords) |
| Sets the module's keywords.
|
|
VuoNodeSet * | getNodeSet (void) |
| Returns the node set containing this module.
|
|
void | setNodeSet (VuoNodeSet *nodeSet) |
| Sets the node set containing this module.
|
|
|
static bool | isGenericTypeName (string typeName) |
| Returns true if the name has the format of a generic type name.
|
|
static size_t | findGenericTypeName (string stringToSearch, size_t startPos, string &genericTypeName) |
| Finds the next generic type name in stringToSearch, starting from startPos.
|
|
static string | replaceInnermostGenericTypeName (string genericTypeName, string replacementTypeName) |
| Returns a type name created by replacing the innermost type name in genericTypeName (either the innermost item type if genericTypeName is a list type, or else genericTypeName itself) with replacementTypeName.
|
|
static string | createGenericTypeName (unsigned int suffix) |
| Creates a generic type name by appending the given numerical suffix.
|
|
static void | sortGenericTypeNames (vector< string > &genericTypeNames) |
| Puts the list of generic type names in ascending order of their numerical suffix.
|
|
static bool | isListTypeName (string typeName) |
| Returns true if the type name is for a list type.
|
|
static bool | isDictionaryTypeName (string typeName) |
| Returns true if the type name is for a dictionary type.
|
|
static string | extractInnermostTypeName (string typeName) |
| If the type name is a list (or list of lists, etc.), returns the innermost item type name.
|
|