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

#include <IccEnvVar.h>

+ Inheritance diagram for CIccCmmVarLookup:
+ Collaboration diagram for CIccCmmVarLookup:

Public Member Functions

 CIccCmmVarLookup (icCmmEnvSigMap &map)
 
virtual bool GetEnvVar (icSigCmmEnvVar sig, icFloatNumber &val)
 
virtual bool IndexedEnvVar (icUInt32Number nIndex, icSigCmmEnvVar &sig, icFloatNumber &val)
 
virtual ~CIccCmmVarLookup ()
 
- Public Member Functions inherited from IIccCmmEnvVarLookup
virtual ~IIccCmmEnvVarLookup ()
 

Protected Attributes

icCmmEnvSigMapm_map
 

Detailed Description

Definition at line 85 of file IccEnvVar.h.

Constructor & Destructor Documentation

◆ CIccCmmVarLookup()

CIccCmmVarLookup::CIccCmmVarLookup ( icCmmEnvSigMap & map)

Definition at line 3 of file IccEnvVar.cpp.

4{
5 m_map = new icCmmEnvSigMap();
6 *m_map = map;
7}
std::map< icSignature, icFloatNumber > icCmmEnvSigMap
Definition IccEnvVar.h:83
icCmmEnvSigMap * m_map
Definition IccEnvVar.h:94

References m_map.

◆ ~CIccCmmVarLookup()

CIccCmmVarLookup::~CIccCmmVarLookup ( )
virtual

Definition at line 9 of file IccEnvVar.cpp.

10{
11 delete m_map;
12}

References m_map.

Member Function Documentation

◆ GetEnvVar()

bool CIccCmmVarLookup::GetEnvVar ( icSigCmmEnvVar sig,
icFloatNumber & val )
virtual

Implements IIccCmmEnvVarLookup.

Definition at line 14 of file IccEnvVar.cpp.

15{
16 icCmmEnvSigMap::iterator v=m_map->find((icSignature)sig);
17
18 if (v==m_map->end()) {
19 val = (icFloatNumber)0.0;
20 return false;
21 }
22 val = v->second;
23 return true;
24}
icArraySignature sig
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
icUInt32Number icSignature

References m_map, and sig.

◆ IndexedEnvVar()

bool CIccCmmVarLookup::IndexedEnvVar ( icUInt32Number nIndex,
icSigCmmEnvVar & sig,
icFloatNumber & val )
virtual

Implements IIccCmmEnvVarLookup.

Definition at line 26 of file IccEnvVar.cpp.

27{
28 if (nIndex>=m_map->size()) {
30 val = (icFloatNumber)0.0;
31 return false;
32 }
34 icCmmEnvSigMap::iterator v;
35
36 for (v=m_map->begin(), i=0; i<nIndex; v++, i++);
37
38 sig = (icSigCmmEnvVar)(v->first);
39 val = v->second;
40 return true;
41}
unsigned int icUInt32Number
icSigCmmEnvVar

References m_map, and sig.

Member Data Documentation

◆ m_map

icCmmEnvSigMap* CIccCmmVarLookup::m_map
protected

Definition at line 94 of file IccEnvVar.h.

Referenced by CIccCmmVarLookup(), GetEnvVar(), IndexedEnvVar(), and ~CIccCmmVarLookup().


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