# SCPView Class Reference

Structure representing part of problem matrix. More...

`#include <LagBaBCover.h>`

List of all members.

## Public Member Functions

| SCPView (CovMatrix *matrix_all, CoveringMatrix *matrix)
| ~SCPView ()
unsigned char | get (int row, int column)
| Get value from SCP's matrix.
int | get_cost (int column)
| Get cost of column.
unsigned int | get_row_count ()
| Get number of rows.
unsigned int | get_column_count ()
| Get number of columns.
int | get_row_map (int row)
| Get ID of row in original problem.
int | get_column_map (int column)
| Get ID of column in original problem.
void | print ()
| Print debugging info to standard output.

## Private Attributes

CovMatrix * | matrix_all
int | row_count
int | column_count
int * | column_map
int * | row_map

## Friends

class | LagrangeSolver

## Detailed Description

Structure representing part of problem matrix.

## Constructor & Destructor Documentation

SCPView::SCPView | ( | CovMatrix * | matrix_all,
|  | CoveringMatrix * | matrix |
| ) |  |  |

SCPView::~SCPView | ( |  | ) |

## Member Function Documentation

unsigned char SCPView::get | ( | int | row,
|  | int | column |
| ) |  |  |

Get value from SCP's matrix.

Parameters:

  | row | Row
  | column | Column

Returns:
  0 or 1

unsigned int SCPView::get_column_count | ( |  | ) | `[inline]`

Get number of columns.

int SCPView::get_column_map | ( | int | column | ) | `[inline]`

Get ID of column in original problem.

Parameters:

  | column | Column index in view

int SCPView::get_cost | ( | int | column | ) |

Get cost of column.

Parameters:

  | column | Column

unsigned int SCPView::get_row_count | ( |  | ) | `[inline]`

Get number of rows.

int SCPView::get_row_map | ( | int | row | ) | `[inline]`

Get ID of row in original problem.

Parameters:

  | row | Row index in view

void SCPView::print | ( |  | ) |

Print debugging info to standard output.

## Friends And Related Function Documentation

friend class LagrangeSolver`[friend]`

## Member Data Documentation

int SCPView::column_count`[private]`

Number of columns

int* SCPView::column_map`[private]`

Column mapping to the original problem columns

CovMatrix* SCPView::matrix_all`[private]`

Pointer to the underlying problem

int SCPView::row_count`[private]`

Number of rows

int* SCPView::row_map`[private]`

Row mapping to the original problem rows

The documentation for this class was generated from the following files:

- LagBaBCover.h
- LagBaBCover.cpp