Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::TilingView Class Reference

#include <mapping_options.h>

Inheritance diagram for tc::TilingView:

Public Member Functions

 TilingView (const TilingView &)=default
 Construct a view that refers to a protocol buffers message. More...
 
 TilingView (TilingProto &p)
 
std::vector< uint64_t > extractVector () const
 Return a copy of values as std::vector. More...
 
size_t size () const
 Number of values held. More...
 
ValueAccessor< uint64_t > operator[] (size_t i)
 
uint64_t operator[] (size_t i) const
 Access the values positionally (x=0, y=1, z=2). More...
 
TilingViewoperator= (const TilingView &view)
 Assign the values from another view. More...
 
bool operator== (const TilingView &view) const
 Compare the values with those from another view. More...
 
bool operator!= (const TilingView &view) const
 
std::string toCommaSeparatedString () const
 Conversion to string and output operators. More...
 

Public Attributes

TilingProto & proto
 

Private Member Functions

 TilingView ()=default
 

Friends

std::ostream & operator<< (std::ostream &os, const TilingView &view)
 

Detailed Description

View of a TilingProto.

Provides sequence container-like access to TilingProto.

Constructor & Destructor Documentation

tc::TilingView::TilingView ( )
privatedefault
tc::TilingView::TilingView ( const TilingView )
default

Construct a view that refers to a protocol buffers message.

tc::TilingView::TilingView ( TilingProto &  p)
inlineexplicit

Member Function Documentation

std::vector< uint64_t > tc::TilingView::extractVector ( ) const
inline

Return a copy of values as std::vector.

bool tc::TilingView::operator!= ( const TilingView view) const
inline
TilingView & tc::TilingView::operator= ( const TilingView view)
inline

Assign the values from another view.

bool tc::TilingView::operator== ( const TilingView view) const
inline

Compare the values with those from another view.

ValueAccessor< uint64_t > tc::TilingView::operator[] ( size_t  i)
inline

Return a modifiable object which replicates assignments back to the underlying protocol buffers message.

uint64_t tc::TilingView::operator[] ( size_t  i) const
inline

Access the values positionally (x=0, y=1, z=2).

size_t tc::TilingView::size ( ) const
inline

Number of values held.

std::string tc::TilingView::toCommaSeparatedString ( ) const

Conversion to string and output operators.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TilingView view 
)
friend

Member Data Documentation

TilingProto& tc::TilingView::proto

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