CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
RxValue.h File Reference
#include "RxValueType.h"
#include "RxMember.h"
#include "StringArray.h"
#include "IntArray.h"
#include "Ge/GeDoubleArray.h"
#include "StaticRxObject.h"
#include "CmColorBase.h"
#include "DbHandle.h"
#include "TD_PackPush.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

class  OdRxValue
 
class  OdRxBoxedValue
 
class  OdRxBoxedValueOnStack
 
struct  OdRxValueType::Desc< const OdChar * >
 
struct  OdRxValueType::Desc< OdRxClass * >
 
struct  OdRxValueType::Desc< const char * >
 

Macros

#define ODRX_DECLARE_VALUE_TYPE(type, attribute)
 

Typedefs

typedef OdSmartPtr< OdRxBoxedValueOdRxBoxedValuePtr
 

Functions

template<typename ValueType >
ValueType * rxvalue_cast (OdRxValue *value) throw ()
 
template<typename ValueType >
ValueType * rxenum_cast (OdRxValue *value) throw ()
 
template<typename ValueType >
const ValueType * rxvalue_cast (const OdRxValue *value) throw ()
 
template<typename ValueType >
const ValueType * rxenum_cast (const OdRxValue *value) throw ()
 
template<class T >
OdRxValue createOdRxValue ()
 
 ODA_ASSUME (sizeof(OdRxValue)==32)
 
template<>
const voidrxvalue_cast< void > (const OdRxValue *value) throw ()
 
 ODRX_DECLARE_VALUE_TYPE (OdCmTransparency, FIRSTDLL_EXPORT)
 

Macro Definition Documentation

◆ ODRX_DECLARE_VALUE_TYPE

#define ODRX_DECLARE_VALUE_TYPE (   type,
  attribute 
)
Value:
template<> struct OdRxValueType::Desc<type>\
{\
attribute static const OdRxValueType& value() throw();\
attribute static void del();\
};\
template<> OdRxValue::OdRxValue(const type&) throw();
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
static void del()
static const OdRxValueType & value()

Definition at line 799 of file RxValue.h.

Typedef Documentation

◆ OdRxBoxedValuePtr

Smart pointer to objects of the OdRxBoxedValue class.

Definition at line 683 of file RxValue.h.

Function Documentation

◆ createOdRxValue()

template<class T >
OdRxValue createOdRxValue ( )

<group OdRx_Classes>

Creates an empty value of the specific type.

Returns
OdRxValue object that has the specified value type and does not contain a value.

Definition at line 608 of file RxValue.h.

◆ ODA_ASSUME()

ODA_ASSUME ( sizeof(OdRxValue = =32)

◆ ODRX_DECLARE_VALUE_TYPE()

ODRX_DECLARE_VALUE_TYPE ( OdCmTransparency  ,
FIRSTDLL_EXPORT   
)

OdRxValueType specialization for 'OdString' value type.

OdRxValueType specialization for 'OdCmTransparency' value type.

◆ rxenum_cast() [1/2]

template<typename ValueType >
const ValueType * rxenum_cast ( const OdRxValue value)
throw (
)

Const correct safe cast for enumerations. Returns non-NULL only if ValueType is contained in this value.

Parameters
value[in] Enumeration value which to cast a value type from.
Returns
Value type if ValueType is contained in the specified enumeration value. NULL otherwise.

Definition at line 370 of file RxValue.h.

◆ rxenum_cast() [2/2]

template<typename ValueType >
ValueType * rxenum_cast ( OdRxValue value)
throw (
)

Safe cast for enumerations. Returns non-NULL only if ValueType is contained in this value.

Parameters
value[in] Enumeration value which to cast a value type from.
Returns
Value type if ValueType is contained in the specified enumeration value. NULL otherwise.

Definition at line 322 of file RxValue.h.

◆ rxvalue_cast() [1/2]

template<typename ValueType >
const ValueType * rxvalue_cast ( const OdRxValue value)
throw (
)

Const correct safe cast. Returns non-NULL only if ValueType is contained in this value.

Parameters
value[in] Value which to cast a value type from.
Returns
Value type if ValueType is contained in the specified value. NULL otherwise.

Definition at line 355 of file RxValue.h.

◆ rxvalue_cast() [2/2]

template<typename ValueType >
ValueType * rxvalue_cast ( OdRxValue value)
throw (
)

Safe cast. Returns non-NULL only if ValueType is contained in this value.

Parameters
value[in] Value which to cast a value type from.
Returns
Value type if ValueType is contained in the specified value. NULL otherwise.

Definition at line 307 of file RxValue.h.

◆ rxvalue_cast< void >()

template<>
const void * rxvalue_cast< void > ( const OdRxValue value)
throw (
)
inline

<group OdRx_Classes>

Definition at line 617 of file RxValue.h.