Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Public Attributes | List of all members
core_mathlib::ivec2 Class Reference

2D Vector Vector defined with 2 integers More...

#include <mathlib.h>

Public Member Functions

 ivec2 (void)
 
 ivec2 (long _a, long _b)
 
 ivec2 (const long *iv)
 
 ivec2 (const ivec2 &iv)
 
int operator== (const ivec2 &iv)
 
int operator!= (const ivec2 &iv)
 
ivec2operator= (long _i)
 
const ivec2 operator* (long _i) const
 
const ivec2 operator/ (long _i) const
 
const ivec2 operator+ (const ivec2 &iv) const
 
const ivec2 operator- () const
 
const ivec2 operator- (const ivec2 &iv) const
 
ivec2operator*= (long _i)
 
ivec2operator/= (long _i)
 
ivec2operator+= (const ivec2 &iv)
 
ivec2operator-= (const ivec2 &iv)
 
long operator* (const ivec2 &iv) const
 
 operator long * ()
 
 operator const long * () const
 
void set (long _a, long _b)
 
void reset (void)
 
void swap (ivec2 &iv)
 
void swap (ivec2 *iv)
 

Public Attributes

union {
   struct {
      long   a
 
      long   b
 
   } 
 
   struct {
      long   x
 
      long   y
 
   } 
 
   long   i [2]
 
}; 
 

Detailed Description

2D Vector Vector defined with 2 integers

Definition at line 919 of file mathlib.h.

Constructor & Destructor Documentation

◆ ivec2() [1/4]

core_mathlib::ivec2::ivec2 ( void  )
inline

Definition at line 922 of file mathlib.h.

Here is the caller graph for this function:

◆ ivec2() [2/4]

core_mathlib::ivec2::ivec2 ( long  _a,
long  _b 
)
inline

Definition at line 923 of file mathlib.h.

◆ ivec2() [3/4]

core_mathlib::ivec2::ivec2 ( const long *  iv)
inline

Definition at line 924 of file mathlib.h.

◆ ivec2() [4/4]

core_mathlib::ivec2::ivec2 ( const ivec2 iv)
inline

Definition at line 925 of file mathlib.h.

Member Function Documentation

◆ operator const long *()

core_mathlib::ivec2::operator const long * ( ) const
inline

Definition at line 989 of file mathlib.h.

◆ operator long *()

core_mathlib::ivec2::operator long * ( )
inline

Definition at line 985 of file mathlib.h.

◆ operator!=()

int core_mathlib::ivec2::operator!= ( const ivec2 iv)
inline

Definition at line 931 of file mathlib.h.

◆ operator*() [1/2]

long core_mathlib::ivec2::operator* ( const ivec2 iv) const
inline

Definition at line 980 of file mathlib.h.

◆ operator*() [2/2]

const ivec2 core_mathlib::ivec2::operator* ( long  _i) const
inline

Definition at line 942 of file mathlib.h.

Here is the call graph for this function:

◆ operator*=()

ivec2& core_mathlib::ivec2::operator*= ( long  _i)
inline

Definition at line 963 of file mathlib.h.

◆ operator+()

const ivec2 core_mathlib::ivec2::operator+ ( const ivec2 iv) const
inline

Definition at line 950 of file mathlib.h.

Here is the call graph for this function:

◆ operator+=()

ivec2& core_mathlib::ivec2::operator+= ( const ivec2 iv)
inline

Definition at line 971 of file mathlib.h.

◆ operator-() [1/2]

const ivec2 core_mathlib::ivec2::operator- ( ) const
inline

Definition at line 954 of file mathlib.h.

Here is the call graph for this function:

◆ operator-() [2/2]

const ivec2 core_mathlib::ivec2::operator- ( const ivec2 iv) const
inline

Definition at line 958 of file mathlib.h.

Here is the call graph for this function:

◆ operator-=()

ivec2& core_mathlib::ivec2::operator-= ( const ivec2 iv)
inline

Definition at line 975 of file mathlib.h.

◆ operator/()

const ivec2 core_mathlib::ivec2::operator/ ( long  _i) const
inline

Definition at line 946 of file mathlib.h.

Here is the call graph for this function:

◆ operator/=()

ivec2& core_mathlib::ivec2::operator/= ( long  _i)
inline

Definition at line 967 of file mathlib.h.

◆ operator=()

ivec2& core_mathlib::ivec2::operator= ( long  _i)
inline

Definition at line 936 of file mathlib.h.

◆ operator==()

int core_mathlib::ivec2::operator== ( const ivec2 iv)
inline

Definition at line 927 of file mathlib.h.

◆ reset()

void core_mathlib::ivec2::reset ( void  )
inline

Definition at line 1001 of file mathlib.h.

◆ set()

void core_mathlib::ivec2::set ( long  _a,
long  _b 
)
inline

Definition at line 996 of file mathlib.h.

◆ swap() [1/2]

void core_mathlib::ivec2::swap ( ivec2 iv)
inline

Definition at line 1005 of file mathlib.h.

Here is the caller graph for this function:

◆ swap() [2/2]

void core_mathlib::ivec2::swap ( ivec2 iv)
inline

Definition at line 1014 of file mathlib.h.

Here is the call graph for this function:

Member Data Documentation

◆ 

union { ... }

◆ a

long core_mathlib::ivec2::a

Definition at line 1023 of file mathlib.h.

◆ b

long core_mathlib::ivec2::b

Definition at line 1023 of file mathlib.h.

◆ i

long core_mathlib::ivec2::i[2]

Definition at line 1029 of file mathlib.h.

◆ x

long core_mathlib::ivec2::x

Definition at line 1027 of file mathlib.h.

◆ y

long core_mathlib::ivec2::y

Definition at line 1027 of file mathlib.h.


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