OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
ncml_module::AttrTableLazyPtr Class Reference

#include <NCMLParser.h>

Collaboration diagram for ncml_module::AttrTableLazyPtr:
Collaboration graph

Public Member Functions

 AttrTableLazyPtr (const NCMLParser &parser, AttrTable *pAT=0)
 Create a lazy loading AttrTable. More...
 
AttrTable * get () const
 Get the table, loading it from the current dataset in _parser if !_loaded yet (hasn't been set() ). More...
 
void invalidate ()
 Dirty the cache so the next get() goes and gets the AttrTable for the current dataset, whatever that is. More...
 
void set (AttrTable *pAT)
 Once set is called, _loaded it true unless pAT is null. More...
 
 ~AttrTableLazyPtr ()
 

Detailed Description

Definition at line 126 of file NCMLParser.h.

Constructor & Destructor Documentation

ncml_module::AttrTableLazyPtr::AttrTableLazyPtr ( const NCMLParser parser,
AttrTable *  pAT = 0 
)

Create a lazy loading AttrTable.

Parameters
parserthe parser whose current dataset should be used to load.
pATInitial value for the ptr. No loading ininitally occurs if pAT isn't null.
Returns

Definition at line 79 of file NCMLParser.cc.

ncml_module::AttrTableLazyPtr::~AttrTableLazyPtr ( )

Definition at line 86 of file NCMLParser.cc.

Member Function Documentation

AttrTable * ncml_module::AttrTableLazyPtr::get ( ) const

Get the table, loading it from the current dataset in _parser if !_loaded yet (hasn't been set() ).

Returns
the ptr to the current table, or NULL if no valid current dataset.

Definition at line 93 of file NCMLParser.cc.

void ncml_module::AttrTableLazyPtr::invalidate ( )

Dirty the cache so the next get() goes and gets the AttrTable for the current dataset, whatever that is.

Definition at line 117 of file NCMLParser.cc.

void ncml_module::AttrTableLazyPtr::set ( AttrTable *  pAT)

Once set is called, _loaded it true unless pAT is null.

Definition at line 103 of file NCMLParser.cc.


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