lsst.gauss2d gbf99507273+afb4790f61
 
Loading...
Searching...
No Matches
lsst::gauss2d::Image< T, C > Class Template Reference

#include <image.h>

Inheritance diagram for lsst::gauss2d::Image< T, C >:
lsst::gauss2d::Object lsst::gauss2d::python::Image< double > lsst::gauss2d::python::Image< bool > lsst::gauss2d::python::Image< double > lsst::gauss2d::python::Image< bool >

Public Member Functions

 Image (size_t n_rows, size_t n_cols, const T *value_init=_value_default_ptr(), std::shared_ptr< const CoordinateSystem > coordsys=nullptr)=delete
 
 Image (std::shared_ptr< const CoordinateSystem > coordsys=nullptr)
 
T & _get_value (size_t row, size_t col)
 
T & _get_value_impl (size_t row, size_t col)
 
T & _get_value_unchecked (size_t row, size_t col)
 
T & _get_value_unchecked_impl (size_t row, size_t col)=delete
 
void _check_row_col (size_t row, size_t col) const
 
void _check_row_col_impl (size_t row, size_t col) const
 
const CoordinateSystemget_coordsys () const
 
std::shared_ptr< const CoordinateSystemget_coordsys_ptr_const () const
 
size_t get_n_cols () const
 
size_t get_n_cols_impl () const =delete
 
size_t get_n_rows () const
 
size_t get_n_rows_impl ()=delete
 
void add_value (size_t row, size_t col, T value)
 
void add_value_impl (size_t row, size_t col, T value)
 
void add_value_unchecked (size_t row, size_t col, T value)
 
void add_value_unchecked_impl (size_t row, size_t col, T value)
 
void fill (T value)
 
void fill_impl (T value)
 
get_value (size_t row, size_t col) const
 
get_value_impl (size_t row, size_t col) const
 
get_value_unchecked (size_t row, size_t col) const
 
get_value_unchecked_impl (size_t row, size_t col) const =delete
 
void set_value (size_t row, size_t col, T value)
 
void set_value_impl (size_t row, size_t col, T value)
 
void set_value_unchecked (size_t row, size_t col, T value)
 
void set_value_unchecked_impl (size_t row, size_t col, T value)
 
std::array< size_t, 2 > shape () const
 
size_t size () const
 
std::string repr (bool name_keywords, std::string_view namespace_separator) const override
 
std::string str () const override
 Return a brief, human-readable string representation of this.
 
Image< T, C > & operator+= (T value)
 
Image< T, C > & operator*= (T value)
 
bool operator== (const Image &other) const
 
const bool operator!= (const Image &other) const
 

Static Public Member Functions

static const T * _value_default_ptr ()
 
- Static Public Member Functions inherited from lsst::gauss2d::Object
static std::string_view null_str (const std::string_view &namespace_separator)
 

Static Public Attributes

static constexpr T _value_default = 0
 
- 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 = "."
 

Detailed Description

template<typename T, class C>
class lsst::gauss2d::Image< T, C >

A 2D image with scalar numeric values, using CRTP.

Basic implementations of most functions are provided. Derived classes should override any and all if the default implementations are not efficient enough.

Template Parameters
tThe numeric type.
CThe specialized class.

Member Function Documentation

◆ repr()

template<typename T, class C>
std::string lsst::gauss2d::Image< T, C >::repr ( bool name_keywords,
std::string_view namespace_separator ) const
inlineoverridevirtual

Return a full, callable string representation of this.

Parameters
name_keywordsWhether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python).
namespace_separatorThe string to use to delimit namespaces, i.e. :: in C++ and . in Python.
Returns
A callable string representation of this, which should return an an identical object to this.
Note
The representation with name_keywords=false must be callable in C++. The representation with name_keywords=true should be callable in Python, if there are any bindings.

Implements lsst::gauss2d::Object.

◆ str()

template<typename T, class C>
std::string lsst::gauss2d::Image< T, C >::str ( ) const
inlineoverridevirtual

Return a brief, human-readable string representation of this.

Implements lsst::gauss2d::Object.


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