---
name: "sc_ResultInfo"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_ResultInfo"
---

# sc\_ResultInfo(3)

This is a base class for all of Compute's result types.

## NAME

sc::ResultInfo - This is a base class for all of **Compute**'s result types.

## SYNOPSIS

`#include <compute.h>`

Inherited by **sc::AccResultInfo**, **sc::NCResult\< T \>**, and **sc::Result\< T \>**.

### Public Member Functions

**ResultInfo** (**Compute** \*c)\
 int & **compute** ()\
 const int & **compute** () const\
 int **compute** (int c)\
 int & **computed** ()\
 const int & **computed** () const\
 virtual int **needed** () const\

### Protected Member Functions

virtual void **update** ()\
 **ResultInfo** (**StateIn** &, **Compute** \*)\
 **ResultInfo** (const **ResultInfo** &, **Compute** \*)\
 virtual void **save\_data\_state** (**StateOut** &)\
 virtual void **restore\_state** (**StateIn** &)\
 **ResultInfo** & **operator=** (const **ResultInfo** &)\

### Protected Attributes

int **\_compute**\
 int **\_computed**\
 **Compute** \* **\_c**\

## Detailed Description

This is a base class for all of **Compute**'s result types.

Usually Result\<Type\> will be used to create a result that has a particular datum associated with it, however a **ResultInfo** can also be declared to keep track of datum's for which it is awkward to use Result\_dec.

## Author

Generated automatically by Doxygen for MPQC from the source code.
