Turi Create  4.0
turi::sframe_rows::row Struct Reference

#include <core/storage/sframe_data/sframe_rows.hpp>

Classes

struct  const_iterator
 

Public Member Functions

void copy_reference (const row &other)
 
rowoperator= (const row &other)
 
rowoperator= (row &&other)
 
 operator std::vector< flexible_type > () const
 
const flexible_typeat (size_t i) const
 
flexible_typeat (size_t i)
 
const flexible_typefast_at (size_t i) const
 
const flexible_typeoperator[] (size_t i) const
 
flexible_typeoperator[] (size_t i)
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

An row object which refererences a row of the sframe_rows and mimics a std::vector<flexible_type>.

sframe_rows::row& r = rows[5];
// assigns row 5 in the sframe_rows object "rows" to be the same as row 10
r = rows[10];
// assigns row 5 in the sframe_rows object "rows" to be the same as row 7
// in some other sframe_rows object
r = some_other_rows[7]

Definition at line 177 of file sframe_rows.hpp.

Member Function Documentation

◆ at() [1/2]

const flexible_type& turi::sframe_rows::row::at ( size_t  i) const
inline

Equivalent to operator[] but performs bounds checking

Definition at line 237 of file sframe_rows.hpp.

◆ at() [2/2]

flexible_type& turi::sframe_rows::row::at ( size_t  i)
inline

Equivalent to operator[] but performs bounds checking

Definition at line 245 of file sframe_rows.hpp.

◆ begin()

const_iterator turi::sframe_rows::row::begin ( ) const
inline

Gets a constant iterator to the first element of the row.

Definition at line 337 of file sframe_rows.hpp.

◆ copy_reference()

void turi::sframe_rows::row::copy_reference ( const row other)
inline

Makes the current row object have the same reference as another row object.

Definition at line 193 of file sframe_rows.hpp.

◆ end()

const_iterator turi::sframe_rows::row::end ( ) const
inline

Gets a constant iterator to the last element of the row

Definition at line 344 of file sframe_rows.hpp.

◆ fast_at()

const flexible_type& turi::sframe_rows::row::fast_at ( size_t  i) const
inline

Directly index column i of this row

Definition at line 254 of file sframe_rows.hpp.

◆ operator std::vector< flexible_type >()

turi::sframe_rows::row::operator std::vector< flexible_type > ( ) const
inline

Implicit cast to std::vector<flexible_type>

Definition at line 228 of file sframe_rows.hpp.

◆ operator=() [1/2]

row& turi::sframe_rows::row::operator= ( const row other)
inline

Assigns the value of this row. Modifies the row this row references to have the same values as another row.

Definition at line 202 of file sframe_rows.hpp.

◆ operator=() [2/2]

row& turi::sframe_rows::row::operator= ( row &&  other)
inline

Moves another row value to this row. Modifies the row this row references to have the same values as another row.

Definition at line 214 of file sframe_rows.hpp.

◆ operator[]() [1/2]

const flexible_type& turi::sframe_rows::row::operator[] ( size_t  i) const
inline

Directly index column i of this row

Definition at line 262 of file sframe_rows.hpp.

◆ operator[]() [2/2]

flexible_type& turi::sframe_rows::row::operator[] ( size_t  i)
inline

Directly index column i of this row

Definition at line 270 of file sframe_rows.hpp.

◆ size()

size_t turi::sframe_rows::row::size ( ) const
inline

Returns the number of columns in this row.

Definition at line 278 of file sframe_rows.hpp.


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