ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Integer array. More...
#include <intarray.h>
Public Member Functions | |
IntArray (const int d1=1, const int d2=1) | |
Construct a new Int Array object. | |
IntArray (const int d1, const int d2, const int d3) | |
IntArray (const int d1, const int d2, const int d3, const int d4) | |
IntArray (const int d1, const int d2, const int d3, const int d4, const int d5) | |
IntArray (const int d1, const int d2, const int d3, const int d4, const int d5, const int d6) | |
~IntArray () | |
void | create (const int d1, const int d2) |
Create integer arrays. | |
void | create (const int d1, const int d2, const int d3) |
void | create (const int d1, const int d2, const int d3, const int d4) |
void | create (const int d1, const int d2, const int d3, const int d4, const int d5) |
void | create (const int d1, const int d2, const int d3, const int d4, const int d5, const int d6) |
IntArray & | operator= (const IntArray &other) |
copy assignment | |
const IntArray & | operator= (const int &right) |
Equal all elements of an IntArray to an integer. | |
int & | operator() (const int d1, const int d2) |
Access elements by using operator "()". | |
int & | operator() (const int d1, const int d2, const int d3) |
int & | operator() (const int d1, const int d2, const int d3, const int d4) |
int & | operator() (const int d1, const int d2, const int d3, const int d4, const int d5) |
int & | operator() (const int d1, const int d2, const int d3, const int d4, const int d5, const int d6) |
const int & | operator() (const int d1, const int d2) const |
Access elements by using "()" through pointer without changing its elements. | |
const int & | operator() (const int d1, const int d2, const int d3) const |
const int & | operator() (const int d1, const int d2, const int d3, const int d4) const |
const int & | operator() (const int d1, const int d2, const int d3, const int d4, const int d5) const |
const int & | operator() (const int d1, const int d2, const int d3, const int d4, const int d5, const int d6) const |
void | zero_out (void) |
Set all elements of an IntArray to zero. | |
int | getSize () const |
int | getDim () const |
int | getBound1 () const |
int | getBound2 () const |
int | getBound3 () const |
int | getBound4 () const |
int | getBound5 () const |
int | getBound6 () const |
Public Attributes | |
int * | ptr |
Private Member Functions | |
void | freemem () |
Private Attributes | |
int | size =0 |
int | dim =0 |
int | bound1 =0 |
int | bound2 =0 |
int | bound3 =0 |
int | bound4 =0 |
int | bound5 =0 |
int | bound6 =0 |
Integer array.
ModuleBase::IntArray::IntArray | ( | const int | d1 = 1 , |
const int | d2 = 1 |
||
) |
Construct a new Int Array object.
d1 | The first dimension size |
d2 | The second dimension size |
ModuleBase::IntArray::IntArray | ( | const int | d1, |
const int | d2, | ||
const int | d3 | ||
) |
ModuleBase::IntArray::IntArray | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4 | ||
) |
ModuleBase::IntArray::IntArray | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4, | ||
const int | d5 | ||
) |
ModuleBase::IntArray::IntArray | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4, | ||
const int | d5, | ||
const int | d6 | ||
) |
ModuleBase::IntArray::~IntArray | ( | ) |
void ModuleBase::IntArray::create | ( | const int | d1, |
const int | d2 | ||
) |
Create integer arrays.
[in] | d1 | |
[in] | d2 |
void ModuleBase::IntArray::create | ( | const int | d1, |
const int | d2, | ||
const int | d3 | ||
) |
void ModuleBase::IntArray::create | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4 | ||
) |
void ModuleBase::IntArray::create | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4, | ||
const int | d5 | ||
) |
void ModuleBase::IntArray::create | ( | const int | d1, |
const int | d2, | ||
const int | d3, | ||
const int | d4, | ||
const int | d5, | ||
const int | d6 | ||
) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Access elements by using operator "()".
d1 | |
d2 |
|
inline |
Access elements by using "()" through pointer without changing its elements.
d1 | |
d2 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void ModuleBase::IntArray::zero_out | ( | void | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
int* ModuleBase::IntArray::ptr |
|
private |