Tenncor
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
eteq::ConstantNode< T > Struct Template Referencefinal

Constant's node wrapper. More...

#include <constant.hpp>

Inheritance diagram for eteq::ConstantNode< T >:
Inheritance graph
[legend]
Collaboration diagram for eteq::ConstantNode< T >:
Collaboration graph
[legend]

Public Member Functions

 ConstantNode (std::shared_ptr< Constant< T >> cst)
 
ConstantNode< T > * clone (void) const
 Return deep copy of this instance (with a copied constant) More...
 
T * data (void) override
 Implementation of iNode<T> More...
 
void update (void) override
 Implementation of iNode<T> More...
 
teq::TensptrT get_tensor (void) const override
 Implementation of iNode<T> More...
 
- Public Member Functions inherited from eteq::iNode< T >
virtual ~iNode (void)=default
 
iNode< T > * clone (void) const
 Return deep copy of node where internal typed tensor is copied. More...
 
teq::Shape shape (void)
 Return shape of internal tensor. More...
 
std::string to_string (void) const
 Return string representation of internal tensor. More...
 

Protected Member Functions

iNode< T > * clone_impl (void) const override
 

Private Attributes

std::shared_ptr< Constant< T > > cst_
 

Detailed Description

template<typename T>
struct eteq::ConstantNode< T >

Constant's node wrapper.

Constructor & Destructor Documentation

◆ ConstantNode()

template<typename T >
eteq::ConstantNode< T >::ConstantNode ( std::shared_ptr< Constant< T >>  cst)
inline

Member Function Documentation

◆ clone()

template<typename T >
ConstantNode<T>* eteq::ConstantNode< T >::clone ( void  ) const
inline

Return deep copy of this instance (with a copied constant)

◆ clone_impl()

template<typename T >
iNode<T>* eteq::ConstantNode< T >::clone_impl ( void  ) const
inlineoverrideprotectedvirtual

Implements eteq::iNode< T >.

◆ data()

template<typename T >
T* eteq::ConstantNode< T >::data ( void  )
inlineoverridevirtual

Implementation of iNode<T>

Implements eteq::iNode< T >.

◆ get_tensor()

template<typename T >
teq::TensptrT eteq::ConstantNode< T >::get_tensor ( void  ) const
inlineoverridevirtual

Implementation of iNode<T>

Implements eteq::iNode< T >.

◆ update()

template<typename T >
void eteq::ConstantNode< T >::update ( void  )
inlineoverridevirtual

Implementation of iNode<T>

Implements eteq::iNode< T >.

Member Data Documentation

◆ cst_

template<typename T >
std::shared_ptr<Constant<T> > eteq::ConstantNode< T >::cst_
private

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