Vigilante Game Framework  1.0.0.8
A 2D/3D C++ Game Framework using SFML.
Public Member Functions | Public Attributes | List of all members
VRange< T > Class Template Reference

Class that holds two of the same variable for min/max range. More...

#include <VRange.h>

Public Member Functions

 VRange (T value)
 
 VRange (T min, T max)
 
bool operator== (VRange< T > range)
 
bool operator!= (VRange< T > range)
 

Public Attributes

A
 Smallest value in range.
 
B
 Largest value in range.
 

Detailed Description

template<typename T>
class VRange< T >

Class that holds two of the same variable for min/max range.

Constructor & Destructor Documentation

◆ VRange() [1/2]

template<typename T>
VRange< T >::VRange ( value)
inline
Parameters
valueThe value to set both ranges to. (Seems almost unnecessary for a range but it saves time setting one value to both manually).

◆ VRange() [2/2]

template<typename T>
VRange< T >::VRange ( min,
max 
)
inline
Parameters
minThe lowest value in the range.
maxThe highest value in the range.

Member Function Documentation

◆ operator!=()

template<typename T>
bool VRange< T >::operator!= ( VRange< T >  range)
inline
Parameters
rangeThe other VRange.
Returns
Returns true if the range doesn't match.

◆ operator==()

template<typename T>
bool VRange< T >::operator== ( VRange< T >  range)
inline
Parameters
rangeThe other VRange.
Returns
Returns true if all ranges match.

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