Hermes  0.9.5-beta
Hierarchical Distributed I/O Buffering System
hermes::Array2DIdx Struct Reference

#include <linprog.h>

Public Member Functions

 Array2DIdx (int nrow, int ncol)
 
int Get (int i, int j)
 
int Begin (int i)
 
int End (int i)
 

Public Attributes

int nrow_
 
int ncol_
 

Detailed Description

A structure to represent 2D array index

Constructor & Destructor Documentation

◆ Array2DIdx()

hermes::Array2DIdx::Array2DIdx ( int  nrow,
int  ncol 
)
inline

Initialize structure with nrow and ncol.

Member Function Documentation

◆ Get()

int hermes::Array2DIdx::Get ( int  i,
int  j 
)
inline

Get the index of row i and column j.

Here is the caller graph for this function:

◆ Begin()

int hermes::Array2DIdx::Begin ( int  i)
inline

Get the beginning index of row i.

Here is the call graph for this function:

◆ End()

int hermes::Array2DIdx::End ( int  i)
inline

Get the last index of row i.

Here is the call graph for this function:

Member Data Documentation

◆ nrow_

int hermes::Array2DIdx::nrow_

number of rows

◆ ncol_

int hermes::Array2DIdx::ncol_

number of columns


The documentation for this struct was generated from the following file: