bes  Updated for version 3.17.4
functions::TabularSequence Class Reference

Specialization of Sequence for tables of data. More...

#include <TabularSequence.h>

Inheritance diagram for functions::TabularSequence:
Inheritance graph

Public Member Functions

virtual void dump (ostream &strm) const
 dumps information about this object More...
 
virtual void intern_data (libdap::ConstraintEvaluator &eval, libdap::DDS &dds)
 
TabularSequenceoperator= (const TabularSequence &rhs)
 
virtual BaseType * ptr_duplicate ()
 
virtual bool serialize (libdap::ConstraintEvaluator &eval, libdap::DDS &dds, libdap::Marshaller &m, bool ce_eval=true)
 
 TabularSequence (const string &n)
 The Sequence constructor. More...
 
 TabularSequence (const string &n, const string &d)
 The Sequence server-side constructor. More...
 
 TabularSequence (const TabularSequence &rhs)
 The Sequence copy constructor.
 

Protected Member Functions

void load_prototypes_with_values (libdap::BaseTypeRow &btr, bool safe=true)
 

Detailed Description

Assumes that the data are loaded into the Sequence using set_value()

Definition at line 59 of file TabularSequence.h.

Constructor & Destructor Documentation

◆ TabularSequence() [1/2]

functions::TabularSequence::TabularSequence ( const string &  n)
inline

The Sequence constructor requires only the name of the variable to be created. The name may be omitted, which will create a nameless variable. This may be adequate for some applications.

Parameters
nA string containing the name of the variable to be created.

Definition at line 74 of file TabularSequence.h.

◆ TabularSequence() [2/2]

functions::TabularSequence::TabularSequence ( const string &  n,
const string &  d 
)
inline

The Sequence server-side constructor requires the name of the variable to be created and the dataset name from which this variable is being created.

Parameters
nA string containing the name of the variable to be created.
dA string containing the name of the dataset from which this variable is being created.

Definition at line 86 of file TabularSequence.h.

Member Function Documentation

◆ dump()

void functions::TabularSequence::dump ( ostream &  strm) const
virtual

Displays the pointer value of this instance and information about this instance.

Parameters
strmC++ i/o stream to dump the information to
Returns
void

Definition at line 250 of file TabularSequence.cc.

◆ intern_data()

void functions::TabularSequence::intern_data ( libdap::ConstraintEvaluator &  eval,
libdap::DDS &  dds 
)
virtual

Specialized intern_data(). This version copies data from the TabularSequence's local store and filters it. Because callers of intern_data() expect that the object will, after calling this method, hold only data to be sent, this version performs both projection and selection operations.

Parameters
eval
dds

Definition at line 194 of file TabularSequence.cc.

◆ serialize()

bool functions::TabularSequence::serialize ( libdap::ConstraintEvaluator &  eval,
libdap::DDS &  dds,
libdap::Marshaller &  m,
bool  ce_eval = true 
)
virtual

Specialized version of Sequence::serialize() for tables that already hold their data. This will not work for nested Sequences.

Note
The ce_eval parameter was being set to false in BESDapResponseBuilder when the code was processing a response from a function. I changed that to 'true' in that code to avoid the special case here. Our tests for the functions are pretty thin at this point, however, so the change should be reviewed when those tests are improved.
Parameters
eval
dds
m
ce_eval
Returns

Definition at line 141 of file TabularSequence.cc.


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