#include <c4d_graphview.h>
Calculation interface for a port main ID. Used by the convenience functions, for example GvBuildValuesTable(). 
- Note
 - Cannot be instantiated. Use GvNode::AllocCalculationHandler() to allocate it and GvNode::FreeCalculationHandler() to destroy it. 
 
 
◆ GvValue()
◆ ~GvValue()
◆ Calculate()
Calculates all ports of the value. This is the recommended method for calculating ports. After a port has been calculated you can get the value with the various functions in GvPort. 
- Note
 - This function is not equivalent to GvPort::Calculate(). 
 
- Parameters
 - 
  
    | [in] | node | The node that the ports of this value belongs to. The caller owns the pointed node.  | 
    | [in] | io | Currently not used.  | 
    | [in] | r | The run helper. The caller owns the pointed run helper.  | 
    | [in] | c | The calculation helper. The caller owns the pointed calculation helper.  | 
    | [in] | index | The port index or GV_MULTIPLE_PORTS to calculate all ports: 0 <= index < NrOfPorts()  | 
    | [in] | time | If not nullptr animation tracks of the node are evaluated before the calculation.  | 
  
   
- Returns
 - true if the value was calculated, otherwise false. 
 
 
 
◆ IsConnected()
Checks if any port of the value is connected. This is equivalent to a || over all GetPort(index)->GvPort::IsIncomingConnected(). 
- Parameters
 - 
  
  
 
- Returns
 - true if the port is connected, otherwise false. 
 
 
 
◆ IsPort()
Checks if there are any ports in the value. 
- Returns
 - true if if NrOfPorts() > 0, otherwise false. 
 
 
 
◆ NrOfPorts()
The number of ports in this value. 
- Returns
 - The port count. 
 
 
 
◆ GetValueID()
The value ID of the managed ports. For all 0 <= index < NrOfPorts() this is equal to GetPort(index)->GvPort::GetValueType GetValueType(). (Well defined since all ports are of the same type in a GvValue.) 
- Returns
 - The value ID. 
 
 
 
◆ GetMainID()
◆ GetPort()
Retrieves a port by index. 
- Parameters
 - 
  
  
 
- Returns
 - The retrieved port. The node owns the pointed port.