|
bes
Updated for version 3.20.13
|

Public Member Functions | |
| virtual const AMDList & | getDatasetList () const |
| GridAggregationBase (const GridAggregationBase &proto) | |
| GridAggregationBase (const libdap::Grid &proto, const AMDList &memberDatasets, const DDSLoader &loaderProto) | |
| GridAggregationBase (const string &name, const AMDList &memberDatasets, const DDSLoader &loaderProto) | |
| GridAggregationBase & | operator= (const GridAggregationBase &rhs) |
| bool | read () override |
| bool | serialize (libdap::ConstraintEvaluator &eval, libdap::DDS &dds, libdap::Marshaller &m, bool ce_eval) override |
| void | setShapeFrom (const libdap::Grid &protoSubGrid, bool addMaps) |
| void | transform_to_dap4 (libdap::D4Group *root, libdap::Constructor *container) override |
Protected Member Functions | |
| void | copyProtoMapsIntoThisGrid (const Dimension &aggDim) |
| virtual const Dimension & | getAggregationDimension () const =0 |
| Grid * | getSubGridTemplate () |
| void | printConstraints (const libdap::Array &fromArray) |
| virtual void | readAndAggregateConstrainedMapsHook () |
| void | readProtoSubGrid () |
| virtual void | transferConstraintsToSubGridHook (Grid *pSubGrid) |
Definition at line 46 of file GridAggregationBase.h.
| agg_util::GridAggregationBase::GridAggregationBase | ( | const string & | name, |
| const AMDList & | memberDatasets, | ||
| const DDSLoader & | loaderProto | ||
| ) |
Construct an EMPTY Grid structure with given name. NOTE: The result is an incomplete type!
The shape prototype will be added by hand later for this case, where the caller needs more control than initializing the Grid from another Grid.
| name | name to give the grid |
| memberDatasets | the granules defining the aggregation |
| loaderProto | the laoder to use |
Definition at line 63 of file GridAggregationBase.cc.
|
protected |
Copy the template's read in subgrid maps into this. Skip any map found in the subgrid named aggDim.name since we handle the aggregation dimension map specially.
| aggDim | a map with aggDim.name is NOT copied. |
Definition at line 388 of file GridAggregationBase.cc.
|
protectedpure virtual |
Get the contained aggregation dimension info
Implemented in agg_util::GridJoinExistingAggregation, and agg_util::GridAggregateOnOuterDimension.
|
virtual |
Accessor for the dataset description list that describes this aggregation.
Definition at line 162 of file GridAggregationBase.cc.
|
protected |
Reveals the raw ptr, but only to subclasses. Don't delete it, but can be changed etc.
Definition at line 322 of file GridAggregationBase.cc.
|
override |
Read in only those datasets that are in the constrained output making sure to apply the internal dimension constraints to the member datasets properly before reading them! Stream the data into the output buffer correctly.
NOTE: Subclasses should implement the protected hooks if possible rather than overriding this function!
Definition at line 168 of file GridAggregationBase.cc.
|
protectedvirtual |
Called from read()! Invokes the user hooks eventually. Can be overridden, but default calls should suffice for now.
Definition at line 345 of file GridAggregationBase.cc.
|
protected |
Transfer constraints properly from this object's maps and read in the proto subgrid entirely (respecting constraints)
Definition at line 369 of file GridAggregationBase.cc.
|
override |
Pipelining data reads and network writes. This version of serialize(), like the versions in ArrayAggregation... also here in the NCML module, handles interleaved data reads and network write operations.
| eval | |
| dds | |
| m | |
| ce_eval |
Definition at line 218 of file GridAggregationBase.cc.
| void agg_util::GridAggregationBase::setShapeFrom | ( | const libdap::Grid & | protoSubGrid, |
| bool | addMaps | ||
| ) |
Use the data array and maps from protoSubGrid as the initial point for the shape of the Grid. It may still not be complete until the callers adds maps, etc.
| protoSubGrid | describes the data array and map templates to use for the granules (modulo any agg subclass changes). |
| addMaps | if true, add's all the maps in protoSubGrid into this. if false, does not. |
Definition at line 134 of file GridAggregationBase.cc.
|
protectedvirtual |
To be specialized in subclass to copy constraints on this object properly into the given pSubGrid map list and data array for read.
Should handle the aggregation dimension properly, hence the specialization.
Called from readProtoSubGrid
| pSubGrid | Grid to modify with the constraints |
Reimplemented in agg_util::GridJoinExistingAggregation, and agg_util::GridAggregateOnOuterDimension.
Definition at line 438 of file GridAggregationBase.cc.