libdap  Updated for version 3.17.0
libdap::D4Dimensions Class Reference

#include <D4Dimensions.h>

List of all members.

Public Types

typedef vector< D4Dimension * >
::const_iterator 
D4DimensionsCIter
typedef vector< D4Dimension * >
::iterator 
D4DimensionsIter
 Iterator used for D4Dimensions.

Public Member Functions

void add_dim (D4Dimension *dim)
void add_dim_nocopy (D4Dimension *dim)
 D4Dimensions (D4Group *g)
 D4Dimensions (const D4Dimensions &rhs)
D4DimensionsIter dim_begin ()
 Get an iterator to the start of the dimensions.
D4DimensionsIter dim_end ()
 Get an iterator to the end of the dimensions.
bool empty () const
 Does this D4Dimensions object actually have dimensions?
D4Dimensionfind_dim (const string &name)
void insert_dim (D4Dimension *dim, D4DimensionsIter i)
void insert_dim_nocopy (D4Dimension *dim, D4DimensionsIter i)
D4Dimensionsoperator= (const D4Dimensions &rhs)
D4Groupparent () const
void print_dap4 (XMLWriter &xml, bool constrained=false) const
void set_parent (D4Group *g)

Protected Member Functions

void m_duplicate (const D4Dimensions &rhs)

Detailed Description

This class holds information about dimensions. This can be used to store actual dimension information in an instance of BaseType and it can be used to store the definition of a dimension in an instance of Group.

Definition at line 101 of file D4Dimensions.h.


Member Typedef Documentation

Iterator used for D4Dimensions.

Definition at line 122 of file D4Dimensions.h.


Member Function Documentation

void libdap::D4Dimensions::add_dim ( D4Dimension dim) [inline]

Append a new dimension. In DAP4 dimensions are either of a known size or are varying. For fixed-size dimensions, the value of varying should be false. For varying dimensions the value of 'size' will be ignored - any value can be used when called this method.

Parameters:
dimPointer to the D4Dimension object to add; deep copy

Definition at line 155 of file D4Dimensions.h.

Append a new dimension.

Parameters:
dimPointer to the D4Dimension object to add; copies the pointer

Definition at line 160 of file D4Dimensions.h.

Get an iterator to the start of the dimensions.

Definition at line 163 of file D4Dimensions.h.

Get an iterator to the end of the dimensions.

Definition at line 166 of file D4Dimensions.h.

bool libdap::D4Dimensions::empty ( ) const [inline]

Does this D4Dimensions object actually have dimensions?

Definition at line 142 of file D4Dimensions.h.

Insert a dimension. Insert a dimension before the position specified by the iterator.

Note:
Calling this method invalidates all iterators that reference this D4Dimension object.
Parameters:
dimInserted before i; deep copy
iiterator

Definition at line 177 of file D4Dimensions.h.

Insert a dimension.

Parameters:
dimInserted before i; pointer copy
iiterator

Definition at line 185 of file D4Dimensions.h.


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