Openholo  v4.0
Open Source Digital Holographic Library
oph::ivec2 Struct Reference

structure for 2-dimensional integer vector and its arithmetic. More...

#include <ivec.h>

Public Member Functions

 ivec2 ()
 
 ivec2 (int a)
 
 ivec2 (int v_1, int v_2)
 
 ivec2 (const ivec2 &a)
 
ivec2operator= (const ivec2 &a)
 
int & operator[] (int i)
 
const int & operator[] (int i) const
 
int & operator() (int i)
 
const int & operator() (int i) const
 

Public Attributes

int v [2]
 

Static Public Attributes

static const int n
 

Detailed Description

structure for 2-dimensional integer vector and its arithmetic.

Definition at line 66 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec2() [1/4]

oph::ivec2::ivec2 ( )
inline

Definition at line 70 of file ivec.h.

◆ ivec2() [2/4]

oph::ivec2::ivec2 ( int  a)
inline

Definition at line 75 of file ivec.h.

◆ ivec2() [3/4]

oph::ivec2::ivec2 ( int  v_1,
int  v_2 
)
inline

Definition at line 80 of file ivec.h.

◆ ivec2() [4/4]

oph::ivec2::ivec2 ( const ivec2 a)
inline

Definition at line 85 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

int& oph::ivec2::operator() ( int  i)
inline

Definition at line 99 of file ivec.h.

◆ operator()() [2/2]

const int& oph::ivec2::operator() ( int  i) const
inline

Definition at line 100 of file ivec.h.

◆ operator=()

ivec2& oph::ivec2::operator= ( const ivec2 a)
inline

Definition at line 90 of file ivec.h.

◆ operator[]() [1/2]

int& oph::ivec2::operator[] ( int  i)
inline

Definition at line 97 of file ivec.h.

◆ operator[]() [2/2]

const int& oph::ivec2::operator[] ( int  i) const
inline

Definition at line 98 of file ivec.h.

Member Data Documentation

◆ n

const int oph::ivec2::n
static

Definition at line 68 of file ivec.h.

◆ v

int oph::ivec2::v[2]

Definition at line 67 of file ivec.h.


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