2 #include "tao/DynamicAny/DynValueCommon_i.h"
3 #include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO_DynValueCommon_i::TAO_DynValueCommon_i (CORBA::Boolean allow_truncation
)
8 : TAO_DynCommon (allow_truncation
)
9 , TAO_DynAny_i (allow_truncation
)
14 TAO_DynValueCommon_i::~TAO_DynValueCommon_i ()
19 TAO_DynValueCommon_i::is_null ()
21 return this->is_null_
;
25 TAO_DynValueCommon_i::set_to_null ()
27 this->is_null_
= true;
28 this->component_count_
= 0u;
29 this->current_position_
= -1;
33 TAO_DynValueCommon_i::init_common ()
35 this->ref_to_component_
= false;
36 this->container_is_destroying_
= false;
37 this->has_components_
= true;
38 this->destroyed_
= false;
39 this->set_to_value ();
42 TAO_DynValueCommon_i
*
43 TAO_DynValueCommon_i::_narrow (CORBA::Object_ptr _tao_objref
)
45 return (CORBA::is_nil (_tao_objref
)) ?
47 dynamic_cast<TAO_DynValueCommon_i
*> (_tao_objref
);
50 TAO_END_VERSIONED_NAMESPACE_DECL