An array of Gaussian objects. More...
#include <gaussian.h>
Public Types | |
| typedef std::vector< std::shared_ptr< Gaussian > > | Data |
| using | iterator = typename Data::iterator |
| using | const_iterator = typename Data::const_iterator |
Public Member Functions | |
| Gaussians (std::optional< const Data > data) | |
| Gaussians (std::vector< std::optional< const Data > > data) | |
| Gaussian & | operator[] (size_t i) |
| const Gaussian & | operator[] (size_t i) const |
| Gaussian & | at (size_t i) const |
| const Gaussian & | at_const (size_t i) const |
| std::shared_ptr< Gaussian > | at_ptr (size_t i) const |
| Data::iterator | begin () noexcept |
| Data::const_iterator | cbegin () const noexcept |
| Data::const_iterator | begin () const noexcept |
| Data::const_iterator | end () const noexcept |
| Data::iterator | end () noexcept |
| Data::const_iterator | cend () const noexcept |
| Data | get_data () const |
| size_t | size () const |
| std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override |
| std::string | str () const override |
| Return a brief, human-readable string representation of this. | |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst::gauss2d::Object | |
| static std::string_view | null_str (const std::string_view &namespace_separator) |
Static Public Attributes inherited from lsst::gauss2d::Object | |
| static constexpr std::string_view | CC_NAMESPACE_SEPARATOR = "::" |
| The C++ namespace separator. | |
| static constexpr std::string_view | NULL_STR_GENERAL = "None" |
| static constexpr std::string_view | PY_NAMESPACE_SEPARATOR = "." |
An array of Gaussian objects.
This class exists partly to be an immutable container of Gaussians with convenient constructors, but also so that it can be neatly wrapped with pybind11.
|
overridevirtual |
Return a full, callable string representation of this.
| name_keywords | Whether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python). |
| namespace_separator | The string to use to delimit namespaces, i.e. :: in C++ and . in Python. |
Implements lsst::gauss2d::Object.
|
overridevirtual |
Return a brief, human-readable string representation of this.
Implements lsst::gauss2d::Object.