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

# sc\_RefSCDimension(3)

The RefSCDimension class is a smart pointer to an SCDimension specialization.

## NAME

sc::RefSCDimension - The **RefSCDimension** class is a smart pointer to an **SCDimension** specialization.

## SYNOPSIS

`#include <dim.h>`

Inherits **sc::Ref\< SCDimension \>**.

### Public Member Functions

**RefSCDimension** ()\
 Initializes the dimension pointer to 0.  **RefSCDimension** (const **RefSCDimension** &d)\
 Make this and d refer to the same **SCDimension**.  **RefSCDimension** (**SCDimension** \*d)\
 Make this refer to d.  **RefSCDimension** & **operator=** (**SCDimension** \*d)\
 Make this refer to d.  **RefSCDimension** & **operator\<\<** (**RefCount** \*)\
 **RefSCDimension** & **operator\<\<** (const **RefBase** &)\
 **RefSCDimension** & **operator=** (const **RefSCDimension** &d)\
 Make this and d refer to the same **SCDimension**.  **operator int** () const\
 Return the dimension.  int **n** () const\
 void **print** (std::ostream &o=**ExEnv::out0**()) const\

### Additional Inherited Members

## Detailed Description

The **RefSCDimension** class is a smart pointer to an **SCDimension** specialization.

## Constructor & Destructor Documentation

### sc::RefSCDimension::RefSCDimension ()

Initializes the dimension pointer to 0. The reference must be initialized before it is used.

## Author

Generated automatically by Doxygen for MPQC from the source code.
