libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
libdap::Array::dimension Struct Reference

#include <Array.h>

Collaboration diagram for libdap::Array::dimension:
Collaboration graph

Public Member Functions

 dimension ()=default
 
 dimension (D4Dimension *d)
 
 dimension (int64_t s, string n)
 

Public Attributes

int64_t c_size = 0
 Size of dimension once constrained.
 
D4Dimensiondim = nullptr
 If not null, a weak pointer to the D4Dimension.
 
string name
 The name of this dimension.
 
int64_t size = 0
 The unconstrained dimension size.
 
int64_t start = 0
 The constraint start index.
 
int64_t stop = 0
 The constraint end index.
 
int64_t stride = 1
 The constraint stride.
 
bool use_sdim_for_slice = false
 Used to control printing the DMR in data responses.
 

Detailed Description

Information about a dimension. Each Array has one or more dimensions. For each of an Array's dimensions, a corresponding instance of this struct holds the natural size, name, constraint information and constrained size.

Note
Instead of using this struct's fields directly, use Array's dimension accessor methods.
This struct is public because its type is used in public typedefs.

Definition at line 133 of file Array.h.

Constructor & Destructor Documentation

◆ dimension() [1/3]

libdap::Array::dimension::dimension ( )
default

◆ dimension() [2/3]

libdap::Array::dimension::dimension ( int64_t s,
string n )
inline

Definition at line 162 of file Array.h.

◆ dimension() [3/3]

libdap::Array::dimension::dimension ( D4Dimension * d)
explicit

Definition at line 61 of file Array.cc.

Member Data Documentation

◆ c_size

int64_t libdap::Array::dimension::c_size = 0

Size of dimension once constrained.

Definition at line 158 of file Array.h.

◆ dim

D4Dimension* libdap::Array::dimension::dim = nullptr

If not null, a weak pointer to the D4Dimension.

Definition at line 145 of file Array.h.

◆ name

string libdap::Array::dimension::name

The name of this dimension.

Definition at line 143 of file Array.h.

◆ size

int64_t libdap::Array::dimension::size = 0

The unconstrained dimension size.

Definition at line 142 of file Array.h.

◆ start

int64_t libdap::Array::dimension::start = 0

The constraint start index.

Definition at line 155 of file Array.h.

◆ stop

int64_t libdap::Array::dimension::stop = 0

The constraint end index.

Definition at line 156 of file Array.h.

◆ stride

int64_t libdap::Array::dimension::stride = 1

The constraint stride.

Definition at line 157 of file Array.h.

◆ use_sdim_for_slice

bool libdap::Array::dimension::use_sdim_for_slice = false

Used to control printing the DMR in data responses.

Definition at line 153 of file Array.h.


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