Openholo  v5.0
Open Source Digital Holographic Library
oph::ivec4 Struct Reference

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

#include <ivec.h>

Public Member Functions

 ivec4 ()
 
 ivec4 (int a)
 
 ivec4 (int v_1, int v_2, int v_3, int v_4)
 
 ivec4 (const ivec4 &a)
 
ivec4operator= (const ivec4 &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 [4]
 

Static Public Attributes

static const int n
 

Detailed Description

structure for 4-dimensional integer vector and its arithmetic.

Definition at line 701 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec4() [1/4]

oph::ivec4::ivec4 ( )
inline

Definition at line 705 of file ivec.h.

◆ ivec4() [2/4]

oph::ivec4::ivec4 ( int  a)
inline

Definition at line 710 of file ivec.h.

◆ ivec4() [3/4]

oph::ivec4::ivec4 ( int  v_1,
int  v_2,
int  v_3,
int  v_4 
)
inline

Definition at line 715 of file ivec.h.

◆ ivec4() [4/4]

oph::ivec4::ivec4 ( const ivec4 a)
inline

Definition at line 720 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 734 of file ivec.h.

◆ operator()() [2/2]

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

Definition at line 735 of file ivec.h.

◆ operator=()

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

Definition at line 725 of file ivec.h.

◆ operator[]() [1/2]

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

Definition at line 732 of file ivec.h.

◆ operator[]() [2/2]

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

Definition at line 733 of file ivec.h.

Member Data Documentation

◆ n

const int oph::ivec4::n
static

Definition at line 703 of file ivec.h.

◆ v

int oph::ivec4::v[4]

Definition at line 702 of file ivec.h.


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