netxsimdg
Loading...
Searching...
No Matches
Configured.hpp File Reference
#include "include/ConfigMap.hpp"
#include "include/ConfigurationHelp.hpp"
#include "include/Configurator.hpp"
#include <boost/program_options.hpp>
#include <map>
#include <string>
#include <typeinfo>
Include dependency graph for Configured.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Nextsim::ConfiguredBase
 A base class necessary for the tryConfigure() functions to work. More...
 
class  Nextsim::Configured< C >
 

Functions

template<typename T >
void Nextsim::tryConfigure (T &t)
 Template function for conditionally configuring references.
 
template<typename T >
void Nextsim::tryConfigure (T *p_t)
 Template function for conditionally configuring classes via a pointer.
 

Detailed Description

Date
Oct 8, 2021
Author
Tim Spain timot.nosp@m.hy.s.nosp@m.pain@.nosp@m.ners.nosp@m.c.no

Definition in file Configured.hpp.

Function Documentation

◆ tryConfigure() [1/2]

template<typename T >
void Nextsim::tryConfigure ( T & t)

Template function for conditionally configuring references.

Pass any class to this function (or its pointer equivalent). If it is a derived class of Configured, the overridden configure() function will be called. If it is not, the function will do nothing, gracefully.

Parameters
refA reference to the class on which to attempt configuration.

Definition at line 271 of file Configured.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryConfigure() [2/2]

template<typename T >
void Nextsim::tryConfigure ( T * p_t)

Template function for conditionally configuring classes via a pointer.

Pass any class to this function (or its reference equivalent). If it is a derived class of Configured, the overridden configure() function will be called. If it is not, the function will do nothing, gracefully.

Parameters
ptrA pointer to the class on which to attempt configuration.

Definition at line 284 of file Configured.hpp.

Here is the call graph for this function: