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

Public Member Functions

 AttrTableLazyPtr (const NCMLParser &parser, AttrTable *pAT=0)
 
AttrTable * get () const
 
void invalidate ()
 
void set (AttrTable *pAT)
 

Detailed Description

Definition at line 120 of file NCMLParser.h.

Constructor & Destructor Documentation

◆ AttrTableLazyPtr()

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 81 of file NCMLParser.cc.

◆ ~AttrTableLazyPtr()

ncml_module::AttrTableLazyPtr::~AttrTableLazyPtr ( )

Definition at line 86 of file NCMLParser.cc.

Member Function Documentation

◆ get()

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.

◆ invalidate()

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 112 of file NCMLParser.cc.

◆ set()

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

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

Definition at line 101 of file NCMLParser.cc.


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