bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
XDArray Class Reference
Inheritance diagram for XDArray:
Inheritance graph
Collaboration diagram for XDArray:
Collaboration graph

Public Member Functions

virtual void end_xml_declaration (libdap::XMLWriter *writer)
 
int get_nth_dim_size (size_t n) throw (InternalErr)
 
vector< intget_shape_vector (size_t n) throw (InternalErr)
 
virtual bool increment_state (vector< int > *state, const vector< int > &shape)
 
void print_xml_data (XMLWriter *writer, bool show_type) throw (InternalErr)
 
virtual void print_xml_data (libdap::XMLWriter *writer, bool show_type)
 
void print_xml_map_data (XMLWriter *writer, bool show_type) throw (InternalErr)
 
virtual BaseType * ptr_duplicate ()
 
virtual void start_xml_declaration (XMLWriter *writer, const char *element=0) throw (InternalErr)
 
virtual void start_xml_declaration (libdap::XMLWriter *writer, const char *element=0)
 
 XDArray (Array *bt)
 
 XDArray (const string &n, BaseType *v)
 

Protected Attributes

libdap::BaseType * d_redirect
 

Friends

class XDArrayTest
 

Detailed Description

Definition at line 42 of file XDArray.h.

Constructor & Destructor Documentation

◆ XDArray() [1/2]

XDArray::XDArray ( const string & n,
BaseType * v )

Definition at line 61 of file XDArray.cc.

◆ XDArray() [2/2]

XDArray::XDArray ( Array * bt)

Definition at line 65 of file XDArray.cc.

◆ ~XDArray()

XDArray::~XDArray ( )
virtual

Definition at line 90 of file XDArray.cc.

Member Function Documentation

◆ get_nth_dim_size()

int XDArray::get_nth_dim_size ( size_t n)
throw (InternalErr )

Get the size of the Nth dimension. The first dimension is N == 0.

Parameters
nThe index. Uses sero-based indexing.
Returns
the size of the dimension.

Definition at line 355 of file XDArray.cc.

◆ get_shape_vector()

vector< int > XDArray::get_shape_vector ( size_t n)
throw (InternalErr )

Get the sizes of the first N dimensions of this array. This ‘shape vector’ may be used in all sorts of output formatters.

Returns
A vector describing the shape of the array. Each value contains the highest index value. To get the size, add one.

Definition at line 332 of file XDArray.cc.

◆ print_xml_data()

void XDArray::print_xml_data ( XMLWriter * writer,
bool show_type )
throw (InternalErr )

Definition at line 116 of file XDArray.cc.

◆ print_xml_map_data()

void XDArray::print_xml_map_data ( XMLWriter * writer,
bool show_type )
throw (InternalErr )

Print an array as a Map.

Note
For use with XDGrid
Parameters
writer
show_typeIgnored

Definition at line 100 of file XDArray.cc.

◆ ptr_duplicate()

BaseType * XDArray::ptr_duplicate ( )
virtual

Definition at line 56 of file XDArray.cc.

◆ start_xml_declaration()

void XDArray::start_xml_declaration ( XMLWriter * writer,
const char * element = 0 )
throw (InternalErr )
virtual

Definition at line 166 of file XDArray.cc.

Friends And Related Symbol Documentation

◆ XDArrayTest

friend class XDArrayTest
friend

Definition at line 52 of file XDArray.h.

Member Data Documentation

◆ d_redirect

libdap::BaseType* XDOutput::d_redirect
protectedinherited

Definition at line 47 of file XDOutput.h.


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