Skyscraper 2.0
SBS::Triangle Struct Reference

#include <triangle.h>

Public Member Functions

 Triangle (unsigned int a, unsigned int b, unsigned int c)
 
 Triangle ()
 
bool operator== (const Triangle &other) const
 
bool operator!= (const Triangle &other) const
 
Triangleoperator+= (const Triangle &other)
 
Triangleoperator+= (const unsigned int value)
 
Triangleoperator-= (const Triangle &other)
 
Triangleoperator-= (const unsigned int value)
 
Triangleoperator= (const Triangle &other)
 
Triangle operator+ (const Triangle &other) const
 
Triangle operator+ (const unsigned int value) const
 
Triangle operator- (const Triangle &other) const
 
Triangle operator- (const unsigned int value) const
 

Public Attributes

unsigned int a
 
unsigned int b
 
unsigned int c
 

Detailed Description

Definition at line 31 of file triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

SBS::Triangle::Triangle ( unsigned int a,
unsigned int b,
unsigned int c )
inline

Definition at line 35 of file triangle.h.

References a, b, and c.

◆ Triangle() [2/2]

SBS::Triangle::Triangle ( )
inline

Definition at line 42 of file triangle.h.

Referenced by operator+(), operator+(), operator-(), and operator-().

Member Function Documentation

◆ operator!=()

bool SBS::Triangle::operator!= ( const Triangle & other) const
inline

Definition at line 54 of file triangle.h.

◆ operator+() [1/2]

Triangle SBS::Triangle::operator+ ( const Triangle & other) const
inline

Definition at line 99 of file triangle.h.

References a, b, c, and Triangle().

Here is the call graph for this function:

◆ operator+() [2/2]

Triangle SBS::Triangle::operator+ ( const unsigned int value) const
inline

Definition at line 104 of file triangle.h.

References a, b, c, and Triangle().

Here is the call graph for this function:

◆ operator+=() [1/2]

Triangle & SBS::Triangle::operator+= ( const Triangle & other)
inline

Definition at line 59 of file triangle.h.

References a, b, and c.

◆ operator+=() [2/2]

Triangle & SBS::Triangle::operator+= ( const unsigned int value)
inline

Definition at line 67 of file triangle.h.

References a, b, and c.

◆ operator-() [1/2]

Triangle SBS::Triangle::operator- ( const Triangle & other) const
inline

Definition at line 109 of file triangle.h.

References a, b, c, and Triangle().

Here is the call graph for this function:

◆ operator-() [2/2]

Triangle SBS::Triangle::operator- ( const unsigned int value) const
inline

Definition at line 114 of file triangle.h.

References a, b, c, and Triangle().

Here is the call graph for this function:

◆ operator-=() [1/2]

Triangle & SBS::Triangle::operator-= ( const Triangle & other)
inline

Definition at line 75 of file triangle.h.

References a, b, and c.

◆ operator-=() [2/2]

Triangle & SBS::Triangle::operator-= ( const unsigned int value)
inline

Definition at line 83 of file triangle.h.

References a, b, and c.

◆ operator=()

Triangle & SBS::Triangle::operator= ( const Triangle & other)
inline

Definition at line 91 of file triangle.h.

References a, b, and c.

◆ operator==()

bool SBS::Triangle::operator== ( const Triangle & other) const
inline

Definition at line 49 of file triangle.h.

References a, b, and c.

Member Data Documentation

◆ a

◆ b

◆ c


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