lsst.modelfit.parameters g35bb328faa+afb4790f61
 
Loading...
Searching...
No Matches
lsst::modelfit::parameters::Object Class Referenceabstract

#include <object.h>

Inheritance diagram for lsst::modelfit::parameters::Object:
lsst::modelfit::parameters::Limits< T > lsst::modelfit::parameters::ParameterBase< T > lsst::modelfit::parameters::Transform< T > lsst::modelfit::parameters::Parameter< T, C > lsst::modelfit::parameters::UnitTransform< T >

Public Member Functions

virtual std::string repr (bool name_keywords=false, const std::string_view &namespace_separator=CC_NAMESPACE_SEPARATOR) const =0
 
virtual std::string str () const =0
 Return a brief, human-readable string representation of this.
 

Static Public Attributes

static constexpr std::string_view CC_NAMESPACE_SEPARATOR = "::"
 The C++ namespace separator.
 

Friends

std::ostream & operator<< (std::ostream &out, const Object &obj)
 

Detailed Description

A generic object from the parameters library.

Objects have string representations that are guaranteed to be valid in C++ and should also be valid in Python bindings, if implemented correctly. The interface may be expanded in the future.

Member Function Documentation

◆ repr()

virtual std::string lsst::modelfit::parameters::Object::repr ( bool name_keywords = false,
const std::string_view & namespace_separator = CC_NAMESPACE_SEPARATOR ) const
pure virtual

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.

Implemented in lsst::modelfit::parameters::Limits< T >, lsst::modelfit::parameters::Parameter< T, C >, and lsst::modelfit::parameters::UnitTransform< T >.

◆ str()

virtual std::string lsst::modelfit::parameters::Object::str ( ) const
pure virtual

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

Implemented in lsst::modelfit::parameters::Limits< T >, lsst::modelfit::parameters::Parameter< T, C >, and lsst::modelfit::parameters::UnitTransform< T >.


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