Minesweeper2  V1.1.1 Game in C++ by Górka Mateusz
Vector2D.hpp File Reference
#include <iostream>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  Vector2D_t< T >
 2 dimension vector More...
 

Typedefs

typedef Vector2D_t< short int > Vector2D
 Vector2D typedef. More...
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &strm, const Vector2D_t< T > &vec)
 Display operator. More...
 

Typedef Documentation

◆ Vector2D

typedef Vector2D_t< short int > Vector2D

Vector2D typedef.

Function Documentation

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  strm,
const Vector2D_t< T > &  vec 
)

Display operator.

Only for debug!

Parameters
strm-
vec-
Returns
std::ostream& -
117  {
118  strm << "[" << vec.x << "; " << vec.y << "]";
119  return strm;
120 }
Vector2D_t::x
T x
X coordinate of vectior.
Definition: Vector2D.hpp:11
Vector2D_t::y
T y
Y coordinate of vectior.
Definition: Vector2D.hpp:12