#include <gdtarray.h>
Public Types | |
typedef void * | item |
Public Member Functions | |
gdtarray (int l, int h) | |
gdtarray (int n) | |
gdtarray () | |
gdtarray (const gdtarray< E > &a) | |
~gdtarray () | |
gdtarray< E > & | operator= (const gdtarray< E > &a) |
void | init (int l, int h) |
const E & | operator[] (int x) const |
E & | operator[] (int x) |
void | resize (int a, int b) |
void | resize (int n) |
int | low () const |
int | high () const |
int | size () const |
void | swap (int i, int j) |
const E & | inf (item it) const |
Definition at line 21 of file gdtarray.h.
typedef void* gdt::gdtarray< E >::item |
Definition at line 50 of file gdtarray.h.
gdt::gdtarray< E >::gdtarray | ( | int | l, | |
int | h | |||
) | [inline] |
Definition at line 56 of file gdtarray.h.
References gdt::gdtarray< E >::init().
gdt::gdtarray< E >::gdtarray | ( | int | n | ) | [inline] |
Definition at line 57 of file gdtarray.h.
References gdt::gdtarray< E >::init().
gdt::gdtarray< E >::gdtarray | ( | ) | [inline] |
Definition at line 58 of file gdtarray.h.
gdt::gdtarray< E >::gdtarray | ( | const gdtarray< E > & | a | ) | [inline] |
Definition at line 60 of file gdtarray.h.
gdt::gdtarray< E >::~gdtarray | ( | ) | [inline] |
Definition at line 62 of file gdtarray.h.
Definition at line 64 of file gdtarray.h.
void gdt::gdtarray< E >::init | ( | int | l, | |
int | h | |||
) | [inline] |
Definition at line 70 of file gdtarray.h.
References NULL.
Referenced by gdt::gdtarray< E >::gdtarray().
const E& gdt::gdtarray< E >::operator[] | ( | int | x | ) | const [inline] |
Definition at line 77 of file gdtarray.h.
References gdt::gdtarray< E >::high(), and gdt::gdtarray< E >::low().
E& gdt::gdtarray< E >::operator[] | ( | int | x | ) | [inline] |
Definition at line 82 of file gdtarray.h.
References gdt::gdtarray< E >::high(), and gdt::gdtarray< E >::low().
void gdt::gdtarray< E >::resize | ( | int | a, | |
int | b | |||
) | [inline] |
Definition at line 87 of file gdtarray.h.
References gdt::gdtarray< E >::high(), gdt::gdtarray< E >::low(), MAX, MIN, and gdt::gdtarray< E >::size().
Referenced by gdt::gdtarray< E >::resize().
void gdt::gdtarray< E >::resize | ( | int | n | ) | [inline] |
Definition at line 103 of file gdtarray.h.
References gdt::gdtarray< E >::resize().
int gdt::gdtarray< E >::low | ( | ) | const [inline] |
Definition at line 107 of file gdtarray.h.
Referenced by gdt::gdtarray< E >::operator[](), gdt::gdtarray< E >::resize(), and gdt::gdtarray< E >::swap().
int gdt::gdtarray< E >::high | ( | ) | const [inline] |
Definition at line 108 of file gdtarray.h.
Referenced by gdt::gdtarray< E >::operator[](), and gdt::gdtarray< E >::resize().
int gdt::gdtarray< E >::size | ( | ) | const [inline] |
Definition at line 109 of file gdtarray.h.
Referenced by gdt::gdtarray< E >::resize().
void gdt::gdtarray< E >::swap | ( | int | i, | |
int | j | |||
) | [inline] |
Definition at line 111 of file gdtarray.h.
References gdt::gdtarray< E >::low().
const E& gdt::gdtarray< E >::inf | ( | item | it | ) | const [inline] |
Definition at line 122 of file gdtarray.h.