libdap++
Updated for version 3.14.0
|
#include <ServerFunctionsList.h>
Public Types | |
typedef std::multimap< std::string, ServerFunction * >::const_iterator | SFLCIter |
typedef std::multimap< std::string, ServerFunction * >::iterator | SFLIter |
Public Member Functions | |
virtual void | add_function (ServerFunction *func) |
Adds the passed ServerFunction pointer to the list of ServerFunctions. More... | |
SFLIter | begin () |
Returns an iterator pointing to the first key pair in the ServerFunctionList. More... | |
SFLIter | end () |
Returns an iterator pointing to the last key pair in the ServerFunctionList. More... | |
virtual bool | find_function (const std::string &name, bool_func *f) const |
Find a boolean function with a given name in the function list. More... | |
virtual bool | find_function (const std::string &name, btp_func *f) const |
virtual bool | find_function (const std::string &name, proj_func *f) const |
virtual bool | find_function (const std::string &name, D4Function *f) const |
ServerFunction * | getFunction (SFLIter it) |
Returns the ServerFunction pointed to by the passed iterator. More... | |
virtual void | getFunctionNames (std::vector< std::string > *names) |
Static Public Member Functions | |
static ServerFunctionsList * | TheList () |
Protected Member Functions | |
ServerFunctionsList () | |
Friends | |
class | ServerFunctionsListUnitTest |
Definition at line 46 of file ServerFunctionsList.h.
typedef std::multimap<std::string, ServerFunction *>::const_iterator libdap::ServerFunctionsList::SFLCIter |
Definition at line 64 of file ServerFunctionsList.h.
typedef std::multimap<std::string, ServerFunction *>::iterator libdap::ServerFunctionsList::SFLIter |
Definition at line 63 of file ServerFunctionsList.h.
|
inlineprotected |
Definition at line 59 of file ServerFunctionsList.h.
|
virtual |
Adds the passed ServerFunction pointer to the list of ServerFunctions using the value of ServerFunction.getName() as the key in the list.
*func | A pointer to the ServerFunction object to add to the ServerFunctionList. The pointer is copied, not the object referenced; this class does not delete the pointer. |
Definition at line 106 of file ServerFunctionsList.cc.
References DBG, and libdap::ServerFunction::getName().
ServerFunctionsList::SFLIter libdap::ServerFunctionsList::begin | ( | ) |
Definition at line 248 of file ServerFunctionsList.cc.
ServerFunctionsList::SFLIter libdap::ServerFunctionsList::end | ( | ) |
Definition at line 254 of file ServerFunctionsList.cc.
|
virtual |
Returns the first boolean function in the list whose key value matches the passed string name. When a match is found the function returns true and sets returned value parameter *f to the boolean function held by the ServerFunction object extracted from the list.
Method: Looks through the list of ServerFunctions and compares each function's key value (which would be the value of SurverFunction.getName()) with the value of the string parameter 'name'. When they match then the returned value parameter is set to the value returned by ServerFunction.get_btp_func(). If the ServerFunction is not a instance of a boolean function then the return value will be 0 (null) and the search for matching function will continue. If the ServerFunction is a boolean function then the returned value will be non-zero and the search will return true (it found the thing) and the returned value parameter *f will have it's value set to the boolean function.
name | A string containing the name of the function to find. |
*f | A returned value parameter through which a point to the desired function is returned. |
Definition at line 132 of file ServerFunctionsList.cc.
References DBG.
|
virtual |
|
virtual |
|
virtual |
ServerFunction * libdap::ServerFunctionsList::getFunction | ( | SFLIter | it | ) |
Definition at line 265 of file ServerFunctionsList.cc.
|
virtual |
Definition at line 270 of file ServerFunctionsList.cc.
References libdap::ServerFunction::getName().
|
static |
Definition at line 91 of file ServerFunctionsList.cc.
References DBG.
Referenced by libdap::ConstraintEvaluator::ConstraintEvaluator().
|
friend |
Definition at line 56 of file ServerFunctionsList.h.