Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccPixelBuf Class Reference

#include <IccUtil.h>

+ Collaboration diagram for CIccPixelBuf:

Public Member Functions

 CIccPixelBuf (int nChan=100)
 
icFloatNumberget ()
 
 operator icFloatNumber * ()
 
 operator void * ()
 
icFloatNumberoperator[] (int nPos)
 
 ~CIccPixelBuf ()
 

Protected Attributes

icFloatNumber m_buf [100]
 
icFloatNumberm_pixel
 

Detailed Description

Definition at line 374 of file IccUtil.h.

Constructor & Destructor Documentation

◆ CIccPixelBuf()

CIccPixelBuf::CIccPixelBuf ( int nChan = 100)

Definition at line 2596 of file IccUtil.cpp.

2596 : m_buf{}
2597{
2598 if (nChan>icDefaultPixelBufSize) {
2599 m_pixel = new icFloatNumber[nChan];
2600 }
2601 else {
2602 m_pixel = m_buf;
2603 }
2604}
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
#define icDefaultPixelBufSize
Type: Class.
Definition IccUtil.h:373
icFloatNumber m_buf[100]
Definition IccUtil.h:386
icFloatNumber * m_pixel
Definition IccUtil.h:387

References icDefaultPixelBufSize, m_buf, and m_pixel.

◆ ~CIccPixelBuf()

CIccPixelBuf::~CIccPixelBuf ( )

Definition at line 2606 of file IccUtil.cpp.

2607{
2608 if (m_pixel && m_pixel!=m_buf)
2609 delete [] m_pixel;
2610}

References m_buf, and m_pixel.

Member Function Documentation

◆ get()

icFloatNumber * CIccPixelBuf::get ( )
inline

Definition at line 380 of file IccUtil.h.

380{ return m_pixel;}

◆ operator icFloatNumber *()

CIccPixelBuf::operator icFloatNumber * ( )
inline

Definition at line 382 of file IccUtil.h.

382{ return m_pixel; }

◆ operator void *()

CIccPixelBuf::operator void * ( )
inline

Definition at line 383 of file IccUtil.h.

383{ return m_pixel; }

◆ operator[]()

icFloatNumber & CIccPixelBuf::operator[] ( int nPos)
inline

Definition at line 379 of file IccUtil.h.

379{ return m_pixel[nPos]; }

Member Data Documentation

◆ m_buf

icFloatNumber CIccPixelBuf::m_buf[100]
protected

Definition at line 386 of file IccUtil.h.

Referenced by CIccPixelBuf(), and ~CIccPixelBuf().

◆ m_pixel

icFloatNumber* CIccPixelBuf::m_pixel
protected

Definition at line 387 of file IccUtil.h.

Referenced by CIccPixelBuf(), and ~CIccPixelBuf().


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