GDAL
|
Class returned by GetLayers() that acts as a range of layers. More...
#include <gdal_priv.h>
Classes | |
class | Iterator |
Layer iterator. More... | |
Public Member Functions | |
Iterator | begin () const |
Return beginning of layer iterator. | |
Iterator | end () const |
Return end of layer iterator. | |
size_t | size () const |
Get the number of layers in this dataset. | |
OGRLayer * | operator[] (int iLayer) |
Fetch a layer by index. | |
OGRLayer * | operator[] (size_t iLayer) |
Fetch a layer by index. | |
OGRLayer * | operator[] (const char *pszLayername) |
Fetch a layer by name. | |
Friends | |
class | GDALDataset |
Class returned by GetLayers() that acts as a range of layers.
GDALDataset::Layers::Iterator GDALDataset::Layers::begin | ( | ) | const |
Return beginning of layer iterator.
GDALDataset::Layers::Iterator GDALDataset::Layers::end | ( | ) | const |
Return end of layer iterator.
OGRLayer * GDALDataset::Layers::operator[] | ( | const char * | pszLayerName | ) |
Fetch a layer by name.
The returned layer remains owned by the GDALDataset and should not be deleted by the application.
pszLayerName | layer name |
OGRLayer * GDALDataset::Layers::operator[] | ( | int | iLayer | ) |
Fetch a layer by index.
The returned layer remains owned by the GDALDataset and should not be deleted by the application.
iLayer | a layer number between 0 and size()-1. |
OGRLayer * GDALDataset::Layers::operator[] | ( | size_t | iLayer | ) |
Fetch a layer by index.
The returned layer remains owned by the GDALDataset and should not be deleted by the application.
iLayer | a layer number between 0 and size()-1. |
size_t GDALDataset::Layers::size | ( | ) | const |
Get the number of layers in this dataset.