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

#include <DbEvalGraph.h>

Inheritance diagram for OdDbEvalContext:
OdRxObject

Public Member Functions

 OdDbEvalContext ()
 
virtual ~OdDbEvalContext ()
 
 ODRX_DECLARE_MEMBERS (OdDbEvalContext)
 
virtual void insertAt (const OdDbEvalContextPair &pair)
 
virtual void removeAt (const OdString &key)
 
virtual bool getAt (OdDbEvalContextPair &pair) const
 
virtual OdDbEvalContextIteratorPtr newIterator () const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Friends

class OdDbImpEvalContextIterator
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class represents application data used during the evaluation of an OdDbEvalGraph object.

Remarks
The graph passes the OdDbEvalContext object passed to OdDbEvalGraph::evaluate() to each node in the graph traversed as a result of calling OdDbEvalExpr::evaluate().

Corresponding C++ library: TD_DynBlocks <group OdDb_Classes>

See also
OdDbEvalConnectable OdDbEvalContextIterator OdDbEvalContextPair OdDbEvalEdgeInfo OdDbEvalExpr OdDbEvalGraph

Definition at line 971 of file DbEvalGraph.h.

Constructor & Destructor Documentation

◆ OdDbEvalContext()

OdDbEvalContext::OdDbEvalContext ( )

◆ ~OdDbEvalContext()

virtual OdDbEvalContext::~OdDbEvalContext ( )
virtual

Member Function Documentation

◆ getAt()

virtual bool OdDbEvalContext::getAt ( OdDbEvalContextPair pair) const
virtual

Returns the ContextPair with the specified key from this Context object.

pair (I/0) Specifies / receives the ContextPair.

Remarks
pair is initialized with the key of the ContextPair to return. If the key exists in this Context object, its associated value replaces the value in the specified ContextPair.

Returns true if and only if the pari exists.

◆ insertAt()

virtual void OdDbEvalContext::insertAt ( const OdDbEvalContextPair pair)
virtual

Inserts the specified ContextPair into this Context object.

Parameters
pair[in] ContextPair to insert.
Remarks
Replaces any ContextPair with the same key.

◆ newIterator()

virtual OdDbEvalContextIteratorPtr OdDbEvalContext::newIterator ( ) const
virtual

Returns an Iterator object that can be used to traverse this Context object.

◆ ODRX_DECLARE_MEMBERS()

OdDbEvalContext::ODRX_DECLARE_MEMBERS ( OdDbEvalContext  )

◆ removeAt()

virtual void OdDbEvalContext::removeAt ( const OdString key)
virtual

Removes the ContextPair with the specified key from this Context object.

Parameters
key[in] Key of ContextPair to remove.

Friends And Related Function Documentation

◆ OdDbImpEvalContextIterator

friend class OdDbImpEvalContextIterator
friend

Definition at line 1020 of file DbEvalGraph.h.


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