Alexandria 2.31.4
SDC-CH common library for the Euclid project
|
Namespaces | |
namespace | Configuration |
namespace | FilePool |
namespace | GridContainer |
namespace | Histogram |
namespace | InstOrRefHolder_Impl |
namespace | MathUtils |
namespace | NdArray |
namespace | PhysicsUtils |
namespace | regex |
namespace | SOM |
namespace | SourceCatalog |
namespace | Table |
namespace | Tuple |
namespace | XYDataset |
Classes | |
struct | _index_sequence_helper |
struct | _index_sequence_helper< 0, Rest... > |
struct | _integer_sequence |
class | InstOrRefHolder |
class | Semaphore |
class | ThreadPool |
Basic thread pool implementation. More... |
Typedefs | |
template<std::size_t... Idx> | |
using | _index_sequence = _integer_sequence<std::size_t, Idx...> |
template<std::size_t N> | |
using | _make_index_sequence = typename _index_sequence_helper<N>::type |
Functions | |
template<typename T, typename... Args> | |
std::unique_ptr< T > | make_unique (Args &&... args) |
Constructs an object of type T and wraps it in a std::unique_ptr using args as the parameter list for the constructor of T. | |
template<typename T> | |
std::vector< T > | stringToVector (std::string str, const std::string &separators=std::string(", ")) |
Copyright (C) 2012-2021 Euclid Science Ground Segment
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Created on : Feb 4, 2014 Author : Nicolas Morisset
using Euclid::_index_sequence = _integer_sequence<std::size_t, Idx...> |
Definition at line 50 of file index_sequence.h.
using Euclid::_make_index_sequence = typename _index_sequence_helper<N>::type |
Definition at line 61 of file index_sequence.h.
std::unique_ptr< T > Euclid::make_unique | ( | Args &&... | args | ) |
Constructs an object of type T and wraps it in a std::unique_ptr using args as the parameter list for the constructor of T.
args | list of arguments with which the instance of T will be constructed |
Definition at line 42 of file memory_tools.h.
References std::forward().
Referenced by Euclid::Histogram::Histogram< VarType, WeightType >::ComputationImpl< BinType >::clone(), Euclid::MathUtils::InterpNAdapter< N, _index_sequence< Is... > >::clone(), Euclid::MathUtils::Piecewise::clone(), Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >::copy(), Euclid::InstOrRefHolder< InterfaceType >::create(), Euclid::InstOrRefHolder< InterfaceType >::create(), Euclid::SourceCatalog::PdfFromRow< T >::createAttribute(), Euclid::SourceCatalog::TableRowAttributeFromRow::createAttribute(), Euclid::MathUtils::createSamplerFromGrid(), Euclid::MathUtils::createSamplerFromGrid(), Euclid::GridContainer::GridCellManagerTraits< GridCellManagerVectorOfVectors< T > >::factory(), Euclid::Table::FitsReader::FitsReader(), Euclid::Table::FitsReader::FitsReader(), Euclid::XYDataset::AsciiParser::getDataset(), Euclid::XYDataset::FitsParser::getDataset(), Euclid::XYDataset::FitsParser::getParameter(), Euclid::Histogram::Histogram< VarType, WeightType >::Histogram(), Euclid::Histogram::Histogram< VarType, WeightType >::Histogram(), Euclid::MathUtils::interpn(), Euclid::MathUtils::interpolate(), Euclid::MathUtils::interpolate(), Euclid::XYDataset::FitsParser::isDatasetFile(), Euclid::MathUtils::multiplyPiecewises(), Euclid::MathUtils::multiplyPiecewiseWithGeneric(), and Euclid::MathUtils::multiplyPolynomials().
std::vector< T > Euclid::stringToVector | ( | std::string | str, |
const std::string & | separators = std::string(", ") ) |
Convert a string into a vector of any given type.
T | The destination type. boost::lexical_cast<T> will be used internally. |
str | The original string. |
separators | List of characters to be used as separator. Defaults to the space and the comma. |
Definition at line 44 of file StringUtils.h.
References std::vector< T >::begin(), std::vector< T >::end(), std::vector< T >::size(), and std::transform().
Referenced by Euclid::NdArray::parseNpyDict().