libdap++  Updated for version 3.14.0
libdap::ServerFunctionsList Class Reference

#include <ServerFunctionsList.h>

Collaboration diagram for libdap::ServerFunctionsList:
Collaboration graph

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
 
ServerFunctiongetFunction (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 ServerFunctionsListTheList ()
 

Protected Member Functions

 ServerFunctionsList ()
 

Friends

class ServerFunctionsListUnitTest
 

Detailed Description

Definition at line 46 of file ServerFunctionsList.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

libdap::ServerFunctionsList::ServerFunctionsList ( )
inlineprotected

Definition at line 59 of file ServerFunctionsList.h.

Member Function Documentation

void libdap::ServerFunctionsList::add_function ( ServerFunction func)
virtual

Adds the passed ServerFunction pointer to the list of ServerFunctions using the value of ServerFunction.getName() as the key in the list.

Parameters
*funcA 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().

Here is the call graph for this function:

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.

bool libdap::ServerFunctionsList::find_function ( const std::string &  name,
bool_func *  f 
) const
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.

Parameters
nameA string containing the name of the function to find.
*fA returned value parameter through which a point to the desired function is returned.

Definition at line 132 of file ServerFunctionsList.cc.

References DBG.

virtual bool libdap::ServerFunctionsList::find_function ( const std::string &  name,
btp_func *  f 
) const
virtual
virtual bool libdap::ServerFunctionsList::find_function ( const std::string &  name,
proj_func *  f 
) const
virtual
virtual bool libdap::ServerFunctionsList::find_function ( const std::string &  name,
D4Function f 
) const
virtual
ServerFunction * libdap::ServerFunctionsList::getFunction ( SFLIter  it)

Definition at line 265 of file ServerFunctionsList.cc.

void libdap::ServerFunctionsList::getFunctionNames ( std::vector< std::string > *  names)
virtual

Definition at line 270 of file ServerFunctionsList.cc.

References libdap::ServerFunction::getName().

Here is the call graph for this function:

ServerFunctionsList * libdap::ServerFunctionsList::TheList ( )
static

Definition at line 91 of file ServerFunctionsList.cc.

References DBG.

Referenced by libdap::ConstraintEvaluator::ConstraintEvaluator().

Friends And Related Function Documentation

friend class ServerFunctionsListUnitTest
friend

Definition at line 56 of file ServerFunctionsList.h.


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