Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / DynamicAny / DynValueCommon_i.cpp
blob7a10595340961646db0eb37039cac8e65a0d02c7
1 // -*- C++ -*-
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)
10 , is_null_ (true)
14 TAO_DynValueCommon_i::~TAO_DynValueCommon_i ()
18 CORBA::Boolean
19 TAO_DynValueCommon_i::is_null ()
21 return this->is_null_;
24 void
25 TAO_DynValueCommon_i::set_to_null ()
27 this->is_null_ = true;
28 this->component_count_ = 0u;
29 this->current_position_ = -1;
32 void
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)) ?
46 0 :
47 dynamic_cast<TAO_DynValueCommon_i *> (_tao_objref);
50 TAO_END_VERSIONED_NAMESPACE_DECL