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

# sc\_MOPairIter(3)

MOPairIter gives the ordering of orbital pairs.

## NAME

sc::MOPairIter - **MOPairIter** gives the ordering of orbital pairs.

## SYNOPSIS

`#include <pairiter.h>`

Inherits **sc::RefCount**.

Inherited by **sc::SpatialMOPairIter**.

### Public Member Functions

**MOPairIter** (const **Ref**\< **MOIndexSpace** \> &space\_i, const **Ref**\< **MOIndexSpace** \> &space\_j)\
 Initialize an iterator for the given MO spaces.  virtual void **start** (const int first\_ij=0)=0\
 Start the iteration.  virtual void **next** ()=0\
 Move to the next pair.  virtual **operator int** () const =0\
 Returns nonzero if the iterator currently hold valid data.  int **ni** () const\
 Returns the number of functions in space i.  int **nj** () const\
 Returns the number of functions in space j.  int **i** () const\
 Returns index i.  int **j** () const\
 Returns index j.  int **nij** () const\
 Returns the number of pair combinations for this iterator.  int **ij** () const\
 Returns the current iteration.

### Protected Attributes

bool **i\_eq\_j\_**\
 int **ni\_**\
 int **nj\_**\
 int **i\_**\
 int **j\_**\
 int **nij\_**\
 int **ij\_**\

### Additional Inherited Members

## Detailed Description

**MOPairIter** gives the ordering of orbital pairs.

## Member Function Documentation

### virtual void sc::MOPairIter::next ()` [pure virtual]`

Move to the next pair.

Implemented in **sc::SpatialMOPairIter\_eq**, and **sc::SpatialMOPairIter\_neq**.

### virtual sc::MOPairIter::operator int () const` [pure virtual]`

Returns nonzero if the iterator currently hold valid data.

Implemented in **sc::SpatialMOPairIter\_eq**, and **sc::SpatialMOPairIter\_neq**.

### virtual void sc::MOPairIter::start (const int first\_ij = `0`)` [pure virtual]`

Start the iteration.

Implemented in **sc::SpatialMOPairIter\_eq**, and **sc::SpatialMOPairIter\_neq**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
