Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | Public Attributes | List of all members
bridges::datastructure::Array2D< E >::Bracket_helper Struct Reference

#include <Array2D.h>

Detailed Description

template<typename E>
struct bridges::datastructure::Array2D< E >::Bracket_helper

helper class to make [][] operators work on array 2d. You should never use it directly

Public Member Functions

 Bracket_helper (Array2D< E > &a, int r)
 
E & operator[] (int col)
 

Public Attributes

Array2D< E > & arr
 
int row
 

Constructor & Destructor Documentation

◆ Bracket_helper()

template<typename E >
bridges::datastructure::Array2D< E >::Bracket_helper::Bracket_helper ( Array2D< E > &  a,
int  r 
)
inline

Member Function Documentation

◆ operator[]()

template<typename E >
E& bridges::datastructure::Array2D< E >::Bracket_helper::operator[] ( int  col)
inline

Member Data Documentation

◆ arr

template<typename E >
Array2D<E>& bridges::datastructure::Array2D< E >::Bracket_helper::arr

◆ row

template<typename E >
int bridges::datastructure::Array2D< E >::Bracket_helper::row

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