AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Property< value_t > Class Template Reference

Detailed Description

template<typename value_t>
class AmpGen::Property< value_t >

Definition at line 25 of file Property.h.

Public Member Functions

template<typename T>
 Property (T *parent, const std::string &name, const value_t &def=value_t(), const std::string_view &helpString="")
 Property (const std::nullptr_t, const std::string &name, const value_t &def=value_t(), const std::string_view &helpString="")
void set (const value_t &val)
template<typename T>
bool operator== (const T &other) const
template<typename T>
bool operator!= (const T &other) const
 operator const value_t & () const
 operator value_t & ()
const value_t & value () const
const std::string & name () const
bool setFromStrings (const std::vector< std::string > &vsl)

Protected Attributes

std::string m_name
std::string m_helpString
value_t m_value

Friends

template<typename T>
std::ostream & operator<< (std::ostream &os, const Property< T > &np)

Constructor & Destructor Documentation

◆ Property() [1/2]

template<typename value_t>
template<typename T>
AmpGen::Property< value_t >::Property ( T * parent,
const std::string & name,
const value_t & def = value_t(),
const std::string_view & helpString = "" )
inline

Definition at line 33 of file Property.h.

◆ Property() [2/2]

template<typename value_t>
AmpGen::Property< value_t >::Property ( const std::nullptr_t ,
const std::string & name,
const value_t & def = value_t(),
const std::string_view & helpString = "" )
inline

Definition at line 43 of file Property.h.

Member Function Documentation

◆ name()

template<typename value_t>
const std::string & AmpGen::Property< value_t >::name ( ) const
inline

Definition at line 55 of file Property.h.

◆ operator const value_t &()

template<typename value_t>
AmpGen::Property< value_t >::operator const value_t & ( ) const
inline

Definition at line 52 of file Property.h.

◆ operator value_t &()

template<typename value_t>
AmpGen::Property< value_t >::operator value_t & ( )
inline

Definition at line 53 of file Property.h.

◆ operator!=()

template<typename value_t>
template<typename T>
bool AmpGen::Property< value_t >::operator!= ( const T & other) const
inline

Definition at line 51 of file Property.h.

◆ operator==()

template<typename value_t>
template<typename T>
bool AmpGen::Property< value_t >::operator== ( const T & other) const
inline

Definition at line 50 of file Property.h.

◆ set()

template<typename value_t>
void AmpGen::Property< value_t >::set ( const value_t & val)
inline

Definition at line 49 of file Property.h.

◆ setFromStrings()

template<typename value_t>
bool AmpGen::Property< value_t >::setFromStrings ( const std::vector< std::string > & vsl)
inline

Definition at line 57 of file Property.h.

◆ value()

template<typename value_t>
const value_t & AmpGen::Property< value_t >::value ( ) const
inline

Definition at line 54 of file Property.h.

◆ operator<<

template<typename value_t>
template<typename T>
std::ostream & operator<< ( std::ostream & os,
const Property< T > & np )
friend

Member Data Documentation

◆ m_helpString

template<typename value_t>
std::string AmpGen::Property< value_t >::m_helpString
protected

Definition at line 28 of file Property.h.

◆ m_name

template<typename value_t>
std::string AmpGen::Property< value_t >::m_name
protected

Definition at line 27 of file Property.h.

◆ m_value

template<typename value_t>
value_t AmpGen::Property< value_t >::m_value
protected

Definition at line 29 of file Property.h.


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