| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes
TeMemoryPage Class Reference

A page of memory. More...

`#include <TeDecoderVirtualMemory.h>`

List of all members.

## Public Member Functions

| TeMemoryPage (unsigned long size, double defValue, TeDataType dataType=TeDOUBLE)
| Constructor.
| ~TeMemoryPage ()
| Destructor.
| TeMemoryPage (const TeMemoryPage &rhs)
| Copy constructor.
TeMemoryPage & | operator= (const TeMemoryPage &rhs)
| Operator =.
double | getVal (int col, int lin, int nCols)
| Returns the value of on position within the block.
void | setVal (int col, int lin, int nCols, double val)
| Sets the value of a position within the block.
void | clear ()
| Set all positions of the page to the default value;.
long | pageSize ()
| Returns the physical size of a memory page.

## Public Attributes

void * | data_
bool | used_
unsigned long | size_
int | ulLin_
int | ulCol_
double | defValue_
TeDataType | dataType_

## Detailed Description

A page of memory.

## Constructor & Destructor Documentation

TeMemoryPage::TeMemoryPage | ( | unsigned long | size,
|  | double | defValue,
|  | TeDataType | dataType = `TeDOUBLE`
| ) |  |

Constructor.

TeMemoryPage::~TeMemoryPage | ( |  | ) |

Destructor.

TeMemoryPage::TeMemoryPage | ( | const TeMemoryPage & | rhs | ) |

Copy constructor.

## Member Function Documentation

void TeMemoryPage::clear | ( |  | ) |

Set all positions of the page to the default value;.

double TeMemoryPage::getVal | ( | int | col,
|  | int | lin,
|  | int | nCols
| ) |  |

Returns the value of on position within the block.

TeMemoryPage & TeMemoryPage::operator= | ( | const TeMemoryPage & | rhs | ) |

Operator =.

long TeMemoryPage::pageSize | ( |  | ) |

Returns the physical size of a memory page.

void TeMemoryPage::setVal | ( | int | col,
|  | int | lin,
|  | int | nCols,
|  | double | val
| ) |  |

Sets the value of a position within the block.

## Member Data Documentation

void* TeMemoryPage::data_

TeDataType TeMemoryPage::dataType_

double TeMemoryPage::defValue_

unsigned long TeMemoryPage::size_

int TeMemoryPage::ulCol_

int TeMemoryPage::ulLin_

bool TeMemoryPage::used_

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDecoderVirtualMemory.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDecoderVirtualMemory.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines