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

Functor's node wrapper. More...

#include <functor.hpp>

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

Public Member Functions

 FunctorNode (std::shared_ptr< Functor< T >> f)
 
FunctorNode< T > * clone (void) const
 Return deep copy of this instance (with a copied functor) 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< Functor< T > > func_
 

Detailed Description

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

Functor's node wrapper.

Constructor & Destructor Documentation

◆ FunctorNode()

template<typename T >
eteq::FunctorNode< T >::FunctorNode ( std::shared_ptr< Functor< T >>  f)
inline

Member Function Documentation

◆ clone()

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

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

◆ clone_impl()

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

Implements eteq::iNode< T >.

◆ data()

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

Implementation of iNode<T>

Implements eteq::iNode< T >.

◆ get_tensor()

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

Implementation of iNode<T>

Implements eteq::iNode< T >.

◆ update()

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

Implementation of iNode<T>

Implements eteq::iNode< T >.

Member Data Documentation

◆ func_

template<typename T >
std::shared_ptr<Functor<T> > eteq::FunctorNode< T >::func_
private

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