Compute Library
 21.08
PrintAccessor Class Referencefinal

Print accessor class. More...

#include <GraphUtils.h>

Collaboration diagram for PrintAccessor:
[legend]

Public Member Functions

 PrintAccessor (std::ostream &output_stream=std::cout, IOFormatInfo io_fmt=IOFormatInfo())
 Constructor. More...
 
 PrintAccessor (PrintAccessor &&)=default
 Allow instances of this class to be move constructed. More...
 
 PrintAccessor (const PrintAccessor &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
PrintAccessoroperator= (const PrintAccessor &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
bool access_tensor (ITensor &tensor) override
 Interface to be implemented to access a given tensor. More...
 
- Public Member Functions inherited from ITensorAccessor
virtual ~ITensorAccessor ()=default
 Default virtual destructor. More...
 

Detailed Description

Print accessor class.

Note
The print accessor will print only when asserts are enabled.

Definition at line 205 of file GraphUtils.h.

Constructor & Destructor Documentation

◆ PrintAccessor() [1/3]

PrintAccessor ( std::ostream &  output_stream = std::cout,
IOFormatInfo  io_fmt = IOFormatInfo() 
)

Constructor.

Parameters
[out]output_stream(Optional) Output stream
[in]io_fmt(Optional) Format information

Referenced by NumPyAccessor::access_tensor().

◆ PrintAccessor() [2/3]

PrintAccessor ( PrintAccessor &&  )
default

Allow instances of this class to be move constructed.

◆ PrintAccessor() [3/3]

PrintAccessor ( const PrintAccessor )
delete

Prevent instances of this class from being copied (As this class contains pointers)

Member Function Documentation

◆ access_tensor()

bool access_tensor ( ITensor tensor)
overridevirtual

Interface to be implemented to access a given tensor.

Parameters
[in]tensorTensor to be accessed
Returns
True if access is successful else false

Implements ITensorAccessor.

Referenced by NumPyAccessor::access_tensor().

◆ operator=()

PrintAccessor& operator= ( const PrintAccessor )
delete

Prevent instances of this class from being copied (As this class contains pointers)


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