Openholo  v4.1
Open Source Digital Holographic Library
oph::ivec3 Struct Reference

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

#include <ivec.h>

Public Member Functions

 ivec3 ()
 
 ivec3 (int a)
 
 ivec3 (int v_1, int v_2, int v_3)
 
 ivec3 (const ivec3 &a)
 
ivec3operator= (const ivec3 &a)
 
int & operator[] (int i)
 
const int & operator[] (int i) const
 
int & operator() (int i)
 
const int & operator() (int i) const
 
 ivec3 ()
 
 ivec3 (int a)
 
 ivec3 (int v_1, int v_2, int v_3)
 
 ivec3 (const ivec3 &a)
 
ivec3operator= (const ivec3 &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 [3]
 

Static Public Attributes

static const int n
 

Detailed Description

structure for 3-dimensional integer vector and its arithmetic.

Definition at line 386 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec3() [1/8]

oph::ivec3::ivec3 ( )
inline

Definition at line 390 of file ivec.h.

◆ ivec3() [2/8]

oph::ivec3::ivec3 ( int  a)
inline

Definition at line 395 of file ivec.h.

◆ ivec3() [3/8]

oph::ivec3::ivec3 ( int  v_1,
int  v_2,
int  v_3 
)
inline

Definition at line 400 of file ivec.h.

◆ ivec3() [4/8]

oph::ivec3::ivec3 ( const ivec3 a)
inline

Definition at line 405 of file ivec.h.

◆ ivec3() [5/8]

oph::ivec3::ivec3 ( )
inline

Definition at line 390 of file ivec.h.

◆ ivec3() [6/8]

oph::ivec3::ivec3 ( int  a)
inline

Definition at line 395 of file ivec.h.

◆ ivec3() [7/8]

oph::ivec3::ivec3 ( int  v_1,
int  v_2,
int  v_3 
)
inline

Definition at line 400 of file ivec.h.

◆ ivec3() [8/8]

oph::ivec3::ivec3 ( const ivec3 a)
inline

Definition at line 405 of file ivec.h.

Member Function Documentation

◆ operator()() [1/4]

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

Definition at line 419 of file ivec.h.

◆ operator()() [2/4]

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

Definition at line 419 of file ivec.h.

◆ operator()() [3/4]

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

Definition at line 420 of file ivec.h.

◆ operator()() [4/4]

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

Definition at line 420 of file ivec.h.

◆ operator=() [1/2]

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

Definition at line 410 of file ivec.h.

◆ operator=() [2/2]

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

Definition at line 410 of file ivec.h.

◆ operator[]() [1/4]

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

Definition at line 417 of file ivec.h.

◆ operator[]() [2/4]

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

Definition at line 417 of file ivec.h.

◆ operator[]() [3/4]

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

Definition at line 418 of file ivec.h.

◆ operator[]() [4/4]

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

Definition at line 418 of file ivec.h.

Member Data Documentation

◆ n

static const int oph::ivec3::n
static

Definition at line 388 of file ivec.h.

◆ v

int oph::ivec3::v

Definition at line 387 of file ivec.h.


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