Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template basic_native_environment

boost::process::basic_native_environment — Definition of the environment for the current process.

Synopsis

// In header: <boost/process/environment.hpp>

template<typename Char> 
class basic_native_environment {
public:
  // types
  typedef                                ;   
  typedef        ;      
  typedef  ;
  typedef                                              ;     
  typedef                                              ; 
  typedef                                              ;     

  // member classes/structs/unions
  template<typename Char, typename Environment> 
  struct const_entry_type {
    // types
    typedef                              ;   
    typedef                ;      
    typedef   ;  
    typedef  ;        
    typedef                       ;

    // construct/copy/destruct
     () = ;

    // public member functions
     () ;
     () = ;
     () ;
  };
  template<typename Char, typename Environment> 
  struct entry_type {
    // types
    typedef                              ;   
    typedef                ;      
    typedef   ;  
    typedef  ;        
    typedef                       ;

    // construct/copy/destruct
     () = ;
     ();
     ();

    // public member functions
     () ;
     () = ;
     () ;
     ();
     ();
     ();
     ();
     ();
  };

  // construct/copy/destruct
  ();
  (basic_native_environment &&);
  basic_native_environment & (basic_native_environment &&);

  // public member functions
   ();
   () ;
   () ;
   ();
   () ;
   () ;
   ();
   () ;
   () ;
   ();
   
  (, );
   ();
   () ;
  entry_type ();
  const_entry_type () ;
  entry_type ();
};

Description

Template representation of the environment of this process. It takes a template as template parameter to implement the environment. All instances of this class refer to the same environment, but might not get updated if another one makes changes.

basic_native_environment public construct/copy/destruct

  1. ();
    Default constructor.
  2. (basic_native_environment &&);
    Move constructor.
  3. basic_native_environment & (basic_native_environment &&);
    Move assignment.

basic_native_environment public member functions

  1.  ();
    Returns an iterator to the beginning.
  2.  () ;
    Returns an iterator to the beginning.
  3.  () ;
    Returns an iterator to the beginning.
  4.  ();
    Returns an iterator to the end.
  5.  () ;
    Returns an iterator to the end.
  6.  () ;
    Returns an iterator to the end.
  7.  ( key);
    Find a variable by its name.
  8.  ( key) ;
    Find a variable by its name.
  9.  ( st) ;
    Number of variables.
  10.  ( id);

    Erase variable by id.

  11.  
    ( id,  value);
    Emplace an environment variable.
  12.  ();
    Check if environment has entries.
  13.  () ;
    Get the number of variables.
  14. entry_type ( key);
    Get the entry with the key. Throws if it does not exist.
  15. const_entry_type ( key) ;
    Get the entry with the key. Throws if it does not exist.
  16. entry_type ( key);
    Get the entry with the given key. It creates the entry if it doesn't exist.

PrevUpHomeNext