Openholo  v4.0
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
 

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/4]

oph::ivec3::ivec3 ( )
inline

Definition at line 390 of file ivec.h.

◆ ivec3() [2/4]

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

Definition at line 395 of file ivec.h.

◆ ivec3() [3/4]

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

Definition at line 400 of file ivec.h.

◆ ivec3() [4/4]

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

Definition at line 405 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 419 of file ivec.h.

◆ operator()() [2/2]

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

Definition at line 420 of file ivec.h.

◆ operator=()

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

Definition at line 410 of file ivec.h.

◆ operator[]() [1/2]

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

Definition at line 417 of file ivec.h.

◆ operator[]() [2/2]

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

Definition at line 418 of file ivec.h.

Member Data Documentation

◆ n

const int oph::ivec3::n
static

Definition at line 388 of file ivec.h.

◆ v

int oph::ivec3::v[3]

Definition at line 387 of file ivec.h.


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