CARLA
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MapGen::Position< T > Class Template Reference

#include <Position.h>

+ Inheritance diagram for MapGen::Position< T >:
+ Collaboration diagram for MapGen::Position< T >:

Public Types

using number_type = T
 

Public Member Functions

constexpr bool operator!= (const Position &rhs) const
 
Positionoperator+= (const Position &rhs)
 
Positionoperator-= (const Position &rhs)
 
constexpr bool operator== (const Position &rhs) const
 
 Position ()=default
 
constexpr Position (T X, T Y)
 

Public Attributes

number_type x
 
number_type y
 

Friends

Position operator+ (Position lhs, const Position &rhs)
 
Position operator- (Position lhs, const Position &rhs)
 

Detailed Description

template<typename T>
class MapGen::Position< T >

Definition at line 14 of file Position.h.

Member Typedef Documentation

◆ number_type

template<typename T>
using MapGen::Position< T >::number_type = T

Definition at line 16 of file Position.h.

Constructor & Destructor Documentation

◆ Position() [1/2]

template<typename T>
MapGen::Position< T >::Position ( )
default

◆ Position() [2/2]

template<typename T>
constexpr MapGen::Position< T >::Position ( X,
Y 
)
inline

Definition at line 28 of file Position.h.

Member Function Documentation

◆ operator!=()

template<typename T>
constexpr bool MapGen::Position< T >::operator!= ( const Position< T > &  rhs) const
inline

Definition at line 34 of file Position.h.

◆ operator+=()

template<typename T>
Position& MapGen::Position< T >::operator+= ( const Position< T > &  rhs)
inline

Definition at line 38 of file Position.h.

◆ operator-=()

template<typename T>
Position& MapGen::Position< T >::operator-= ( const Position< T > &  rhs)
inline

Definition at line 49 of file Position.h.

◆ operator==()

template<typename T>
constexpr bool MapGen::Position< T >::operator== ( const Position< T > &  rhs) const
inline

Definition at line 30 of file Position.h.

Friends And Related Function Documentation

◆ operator+

template<typename T>
Position operator+ ( Position< T >  lhs,
const Position< T > &  rhs 
)
friend

Definition at line 44 of file Position.h.

◆ operator-

template<typename T>
Position operator- ( Position< T >  lhs,
const Position< T > &  rhs 
)
friend

Definition at line 55 of file Position.h.

Member Data Documentation

◆ x

template<typename T>
number_type MapGen::Position< T >::x

◆ y

template<typename T>
number_type MapGen::Position< T >::y

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