Public Types | Public Member Functions | Private Attributes | List of all members
art::MallocOptionSetter Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Utilities/MallocOpts.h"

Public Types

typedef MallocOpts::opt_type opt_type
 

Public Member Functions

 MallocOptionSetter ()
 
bool retrieveFromCpuType ()
 
bool retrieveFromEnv ()
 
void adjustMallocParams ()
 
bool hasErrors () const
 
std::string error_message () const
 
void set_mmap_max (opt_type mmap_max)
 
void set_trim_thr (opt_type trim_thr)
 
void set_top_pad (opt_type top_pad)
 
void set_mmap_thr (opt_type mmap_thr)
 
MallocOpts get () const
 

Private Attributes

bool changed_
 
MallocOpts values_
 
std::string error_message_
 

Detailed Description

Definition at line 63 of file MallocOpts.h.

Member Typedef Documentation

Definition at line 65 of file MallocOpts.h.

Constructor & Destructor Documentation

art::MallocOptionSetter::MallocOptionSetter ( )

Member Function Documentation

void art::MallocOptionSetter::adjustMallocParams ( )
std::string art::MallocOptionSetter::error_message ( ) const
inline

Definition at line 77 of file MallocOpts.h.

78  {
79  return error_message_;
80  }
std::string error_message_
Definition: MallocOpts.h:117
MallocOpts art::MallocOptionSetter::get ( ) const
inline

Definition at line 108 of file MallocOpts.h.

109  {
110  return values_;
111  }
bool art::MallocOptionSetter::hasErrors ( ) const
inline

Definition at line 72 of file MallocOpts.h.

References string.

73  {
74  return !error_message_.empty();
75  }
std::string error_message_
Definition: MallocOpts.h:117
bool art::MallocOptionSetter::retrieveFromCpuType ( )
bool art::MallocOptionSetter::retrieveFromEnv ( )
void art::MallocOptionSetter::set_mmap_max ( opt_type  mmap_max)
inline

Definition at line 83 of file MallocOpts.h.

84  {
85  values_.mmap_max_ = mmap_max;
86  changed_ = true;
87  }
opt_type mmap_max_
Definition: MallocOpts.h:43
void art::MallocOptionSetter::set_mmap_thr ( opt_type  mmap_thr)
inline

Definition at line 101 of file MallocOpts.h.

102  {
103  values_.mmap_thr_ = mmap_thr;
104  changed_ = true;
105  }
opt_type mmap_thr_
Definition: MallocOpts.h:46
void art::MallocOptionSetter::set_top_pad ( opt_type  top_pad)
inline

Definition at line 95 of file MallocOpts.h.

96  {
97  values_.top_pad_ = top_pad;
98  changed_ = true;
99  }
opt_type top_pad_
Definition: MallocOpts.h:45
void art::MallocOptionSetter::set_trim_thr ( opt_type  trim_thr)
inline

Definition at line 89 of file MallocOpts.h.

90  {
91  values_.trim_thr_ = trim_thr;
92  changed_ = true;
93  }
opt_type trim_thr_
Definition: MallocOpts.h:44

Member Data Documentation

bool art::MallocOptionSetter::changed_
private

Definition at line 114 of file MallocOpts.h.

std::string art::MallocOptionSetter::error_message_
private

Definition at line 117 of file MallocOpts.h.

MallocOpts art::MallocOptionSetter::values_
private

Definition at line 115 of file MallocOpts.h.


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