CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdDbEvalContextPair Class Reference

#include <DbEvalGraph.h>

Public Member Functions

 OdDbEvalContextPair ()
 
 OdDbEvalContextPair (const OdString &key, void *value)
 
virtual ~OdDbEvalContextPair ()
 
void setKey (const OdString &key)
 
const OdString key () const
 
void setValue (void *value)
 
voidvalue () const
 

Detailed Description

This class represents key - value pairs stored in an OdDbEvalContext object.

Remarks
Values stored are void pointers. Neither OdDbEvalContext nor OdDbEvalContextPair manage the memory allocated to the values.

Corresponding C++ library: TD_DynBlocks <group OdDb_Classes>

See also
OdDbEvalConnectable OdDbEvalContext OdDbEvalContextIterator OdDbEvalEdgeInfo OdDbEvalExpr OdDbEvalGraph

Definition at line 1041 of file DbEvalGraph.h.

Constructor & Destructor Documentation

◆ OdDbEvalContextPair() [1/2]

OdDbEvalContextPair::OdDbEvalContextPair ( )

◆ OdDbEvalContextPair() [2/2]

OdDbEvalContextPair::OdDbEvalContextPair ( const OdString key,
void value 
)
Parameters
key[in] ContextPair key.
value[in] ContextPair value.

◆ ~OdDbEvalContextPair()

virtual OdDbEvalContextPair::~OdDbEvalContextPair ( )
virtual

Member Function Documentation

◆ key()

const OdString OdDbEvalContextPair::key ( ) const

Returns the key of this ContextPair object.

Parameters
key[in] ContextPair key.

◆ setKey()

void OdDbEvalContextPair::setKey ( const OdString key)

Sets the key of this ContextPair object.

Parameters
key[in] ContextPair key.

◆ setValue()

void OdDbEvalContextPair::setValue ( void value)

Sets the value of this ContextPair object.

Parameters
value[in] ContextPair value.
Remarks
It is up to the caller to allocate and free memory pointed to by value.

◆ value()

void* OdDbEvalContextPair::value ( ) const

Returns the value of this ContextPair object.

Parameters
value[in] ContextPair value.

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