#include <CVEX_ValueList.h>
Public Member Functions | |
| CVEX_ValueList () | |
| ~CVEX_ValueList () | |
| int | entries () |
| Returns the number of values in the list. | |
| CVEX_Value * | getValue (int i) |
| Get a value by index. | |
| CVEX_Value * | getValue (const char *name, CVEX_Type type) |
| Get a value by name (may return null if the parameter isn't defined). | |
| bool | addValue (const char *name, CVEX_Type type, bool varying) |
| bool | addValue (const char *name, CVEX_Type type, void *data, int array_size) |
| bool | addValue (const char *name, UT_StringArray &strings) |
Friends | |
| class | CVEX_Context |
This class maintains a list of the input and output parameters for a CVEX context.
Both input and output variables are associated with parameters on the VEX function being run. Output variables are those flagged with the export keyword.
Definition at line 35 of file CVEX_ValueList.h.
| CVEX_ValueList::CVEX_ValueList | ( | ) |
| CVEX_ValueList::~CVEX_ValueList | ( | ) |
| bool CVEX_ValueList::addValue | ( | const char * | name, | |
| UT_StringArray & | strings | |||
| ) |
Add a string value (with data)
| bool CVEX_ValueList::addValue | ( | const char * | name, | |
| CVEX_Type | type, | |||
| void * | data, | |||
| int | array_size | |||
| ) |
Add a value by name, type and provide data.
| bool CVEX_ValueList::addValue | ( | const char * | name, | |
| CVEX_Type | type, | |||
| bool | varying | |||
| ) |
Add a value by name type and varying flag. This fails if:
| int CVEX_ValueList::entries | ( | ) | [inline] |
Returns the number of values in the list.
Definition at line 41 of file CVEX_ValueList.h.
| CVEX_Value* CVEX_ValueList::getValue | ( | const char * | name, | |
| CVEX_Type | type | |||
| ) |
Get a value by name (may return null if the parameter isn't defined).
| CVEX_Value* CVEX_ValueList::getValue | ( | int | i | ) | [inline] |
friend class CVEX_Context [friend] |
Definition at line 70 of file CVEX_ValueList.h.
1.5.9