Cortenn
Public Member Functions | Public Attributes | Private Attributes | List of all members
llo::Variable Struct Referencefinal

Leaf node containing GenericData. More...

#include <data.hpp>

Inheritance diagram for llo::Variable:
Inheritance graph
[legend]
Collaboration diagram for llo::Variable:
Collaboration graph
[legend]

Public Member Functions

 Variable (const char *data, age::_GENERATED_DTYPE dtype, ade::Shape shape, std::string label)
 
 Variable (const Variable &other)
 
 Variable (Variable &&other)
 
Variableoperator= (const Variable &other)
 
Variableoperator= (Variable &&other)
 
template<typename T >
Variableoperator= (std::vector< T > data)
 Assign vectorized data to data source. More...
 
Variableoperator= (GenericRef data)
 Assign generic reference to data source. More...
 
const ade::Shape & shape (void) const override
 Implementation of iTensor. More...
 
std::string to_string (void) const override
 Implementation of iTensor. More...
 
void * data (void) override
 Implementation of iLeaf. More...
 
const void * data (void) const override
 Implementation of iLeaf. More...
 
size_t type_code (void) const override
 Implementation of iLeaf. More...
 
size_t nbytes (void) const
 Return number of bytes in data source. More...
 

Public Attributes

std::string label_
 Label for distinguishing variable nodes. More...
 

Private Attributes

GenericData data_
 Generic data source. More...
 

Detailed Description

Leaf node containing GenericData.

Constructor & Destructor Documentation

◆ Variable() [1/3]

llo::Variable::Variable ( const char *  data,
age::_GENERATED_DTYPE  dtype,
ade::Shape  shape,
std::string  label 
)
inline

◆ Variable() [2/3]

llo::Variable::Variable ( const Variable other)
inline

◆ Variable() [3/3]

llo::Variable::Variable ( Variable &&  other)
inline

Member Function Documentation

◆ data() [1/2]

void* llo::Variable::data ( void  )
inlineoverride

Implementation of iLeaf.

◆ data() [2/2]

const void* llo::Variable::data ( void  ) const
inlineoverride

Implementation of iLeaf.

◆ nbytes()

size_t llo::Variable::nbytes ( void  ) const
inline

Return number of bytes in data source.

◆ operator=() [1/4]

Variable& llo::Variable::operator= ( const Variable other)
inline

◆ operator=() [2/4]

Variable& llo::Variable::operator= ( Variable &&  other)
inline

◆ operator=() [3/4]

template<typename T >
Variable& llo::Variable::operator= ( std::vector< T >  data)
inline

Assign vectorized data to data source.

◆ operator=() [4/4]

Variable& llo::Variable::operator= ( GenericRef  data)
inline

Assign generic reference to data source.

◆ shape()

const ade::Shape& llo::Variable::shape ( void  ) const
inlineoverride

Implementation of iTensor.

◆ to_string()

std::string llo::Variable::to_string ( void  ) const
inlineoverride

Implementation of iTensor.

◆ type_code()

size_t llo::Variable::type_code ( void  ) const
inlineoverride

Implementation of iLeaf.

Member Data Documentation

◆ data_

GenericData llo::Variable::data_
private

Generic data source.

◆ label_

std::string llo::Variable::label_

Label for distinguishing variable nodes.


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