STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
__gnu_profile::__cost_factor_setter Struct Reference

#include <profile/impl/profiler_trace.h>

Public Member Functions

void operator() (__cost_factor *__factor)
 

Member Function Documentation

void __gnu_profile::__cost_factor_setter::operator() ( __cost_factor __factor)
inline
552  {
553  // Look it up in the process environment first.
554  const char* __env_value = std::getenv(__factor->__env_var);
555 
556  if (!__env_value)
557  {
558  // Look it up in the config file.
559  __env_t::iterator __it
560  = _GLIBCXX_PROFILE_DATA(__env).find(__factor->__env_var);
561  if (__it != _GLIBCXX_PROFILE_DATA(__env).end())
562  __env_value = (*__it).second.c_str();
563  }
564 
565  if (__env_value)
566  __factor->__value = std::atof(__env_value);
567  }
#define _GLIBCXX_PROFILE_DATA(__name)
Definition: profiler.h:48

The documentation for this struct was generated from the following file: