Tenncor
Public Member Functions | List of all members
teq::iLeaf Struct Referenceabstract

Leaf of the graph commonly representing the variable in an equation. More...

#include <ileaf.hpp>

Inheritance diagram for teq::iLeaf:
Inheritance graph
[legend]
Collaboration diagram for teq::iLeaf:
Collaboration graph
[legend]

Public Member Functions

virtual ~iLeaf (void)=default
 
void accept (iTraveler &visiter) override
 Implementation of iTensor. More...
 
virtual bool is_const (void) const =0
 Return true if leaf is immutable, otherwise false. More...
 
- Public Member Functions inherited from teq::iTensor
virtual ~iTensor (void)=default
 
virtual const Shapeshape (void) const =0
 Return the shape held by this tensor. More...
 
virtual std::string to_string (void) const =0
 Return the string representation of the tensor. More...
 
- Public Member Functions inherited from teq::iData
virtual ~iData (void)=default
 
virtual void * data (void)=0
 Return pointer to internal data. More...
 
virtual const void * data (void) const =0
 Return const pointer to internal data. More...
 
virtual size_t type_code (void) const =0
 Return data type encoding. More...
 
virtual std::string type_label (void) const =0
 Return data type label (for better readability) More...
 
virtual size_t nbytes (void) const =0
 Return number of bytes in the data. More...
 

Detailed Description

Leaf of the graph commonly representing the variable in an equation.

Constructor & Destructor Documentation

◆ ~iLeaf()

virtual teq::iLeaf::~iLeaf ( void  )
virtualdefault

Reimplemented in eteq::iLeaf< T >.

Member Function Documentation

◆ accept()

void teq::iLeaf::accept ( iTraveler visiter)
inlineoverridevirtual

Implementation of iTensor.

Implements teq::iTensor.

◆ is_const()

virtual bool teq::iLeaf::is_const ( void  ) const
pure virtual

Return true if leaf is immutable, otherwise false.

Implemented in eteq::Variable< T >, and eteq::Constant< T >.


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