Cadabra
Computer algebra system for field theory problems
Public Member Functions | List of all members
cadabra::Inherit< T > Class Template Reference

Description

template<class T>
class cadabra::Inherit< T >

If a property X derives from Inherit<Y>, and get<Y> is called on an object which has an X property (but no Y property), then the get<Y> will look at the non-index child of the object to see if that has a Y property.

FIXME: need to decided what to do if there are more non-index children.

#include <Props.hh>

Inheritance diagram for cadabra::Inherit< T >:
cadabra::property

Public Member Functions

virtual ~Inherit ()
 
virtual std::string name () const
 
- Public Member Functions inherited from cadabra::property
 property (bool hidden=false)
 
virtual ~property ()
 
bool parse_to_keyvals (const Ex &, keyval_t &)
 
virtual bool parse (Kernel &, keyval_t &keyvals)
 
virtual bool parse (Kernel &, std::shared_ptr< Ex >, keyval_t &keyvals)
 
virtual void validate (const Kernel &, const Ex &) const
 
virtual void latex (std::ostream &) const
 Display the property on the stream. More...
 
virtual std::string unnamed_argument () const
 
virtual match_t equals (const property *) const
 
void hidden (bool h)
 Properties can be hidden because they only make sense to the system; they will not be printed when the user asks for a list of properties. More...
 
bool hidden (void) const
 

Additional Inherited Members

- Public Types inherited from cadabra::property
enum  match_t { no_match , id_match , exact_match }
 

Constructor & Destructor Documentation

◆ ~Inherit()

template<class T >
virtual cadabra::Inherit< T >::~Inherit ( )
inlinevirtual

Member Function Documentation

◆ name()

template<class T >
virtual std::string cadabra::Inherit< T >::name ( ) const
inlinevirtual

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