timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
This class exists to simplify creating argument arrays compatible with execv* routines and MPI_Comm_spawn/MPI_Comm_spawn_multiple. More...
#include "timemory/utility/argparse.hpp"
Classes | |
struct | c_args |
Public Types | |
using | base_type = std::vector< std::string > |
using | cargs_t = c_args |
Public Member Functions | |
template<typename... Args> | |
argument_vector (Args &&... args) | |
argument_vector (int &argc, char **&argv) | |
argument_vector (int &argc, const char **&argv) | |
argument_vector (int &argc, const char *const *&argv) | |
cargs_t | get_execv (const base_type &_prepend, size_t _beg=0, size_t _end=std::numeric_limits< size_t >::max()) const |
cargs_t | get_execv (size_t _beg=0, size_t _end=std::numeric_limits< size_t >::max()) const |
Static Public Member Functions | |
static void | free_execv (cargs_t &itr) |
This class exists to simplify creating argument arrays compatible with execv* routines and MPI_Comm_spawn/MPI_Comm_spawn_multiple.
Definition at line 269 of file argparse.hpp.
using tim::argparse::argument_vector::base_type = std::vector<std::string> |
Definition at line 296 of file argparse.hpp.
Definition at line 297 of file argparse.hpp.
|
inline |
Definition at line 300 of file argparse.hpp.
|
explicit |
|
explicit |
Definition at line 48 of file argparse.cpp.
References tim::argv.
|
explicit |
Definition at line 57 of file argparse.cpp.
References tim::argv.
|
inlinestatic |
Definition at line 314 of file argparse.hpp.
References tim::argparse::argument_vector::c_args::clear().
TIMEMORY_UTILITY_INLINE argument_vector::cargs_t tim::argparse::argument_vector::get_execv | ( | const base_type & | _prepend, |
size_t | _beg = 0 , |
||
size_t | _end = std::numeric_limits<size_t>::max() |
||
) | const |
Definition at line 65 of file argparse.cpp.
References tim::at(), tim::plotting::cmd, and strdup().
Referenced by get_execv().
TIMEMORY_UTILITY_INLINE argument_vector::cargs_t tim::argparse::argument_vector::get_execv | ( | size_t | _beg = 0 , |
size_t | _end = std::numeric_limits<size_t>::max() |
||
) | const |
Definition at line 103 of file argparse.cpp.
References get_execv().