OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
agg_util::DimensionTable Class Reference

Container class for a table of dimensions for a given dataset. More...

#include <Dimension.h>

Collaboration diagram for agg_util::DimensionTable:
Collaboration graph

Public Member Functions

void addDimensionUnique (const Dimension &dim)
 Add the dimension to the table if one with the same name doesn't already exist. More...
 
void clear ()
 
 DimensionTable (unsigned int capacity=0)
 
bool findDimension (const std::string &name, Dimension *pOut=0) const
 Find the dimension with the given name. More...
 
const std::vector< Dimension > & getDimensions () const
 
 ~DimensionTable ()
 

Detailed Description

Container class for a table of dimensions for a given dataset.

Definition at line 80 of file Dimension.h.

Constructor & Destructor Documentation

agg_util::DimensionTable::DimensionTable ( unsigned int  capacity = 0)
agg_util::DimensionTable::~DimensionTable ( )

Member Function Documentation

void agg_util::DimensionTable::addDimensionUnique ( const Dimension dim)

Add the dimension to the table if one with the same name doesn't already exist.

If a dimension with the same name is already there, it is NOT added.

Definition at line 109 of file Dimension.cc.

References BESDEBUG, findDimension(), and agg_util::Dimension::name.

Here is the call graph for this function:

void agg_util::DimensionTable::clear ( )
bool agg_util::DimensionTable::findDimension ( const std::string &  name,
Dimension pOut = 0 
) const

Find the dimension with the given name.

If found, place it into pOut if pOut is non-null

Returns
whether it was found

Definition at line 88 of file Dimension.cc.

Referenced by addDimensionUnique().

const std::vector< Dimension > & agg_util::DimensionTable::getDimensions ( ) const

Definition at line 122 of file Dimension.cc.


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