=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / PortableServer / IdUniquenessPolicy.cpp
blob97a312289aaedca1c003714d2def34d4456c77e6
1 // -*- C++ -*-
2 #include "tao/PortableServer/IdUniquenessPolicy.h"
3 #include "tao/PortableServer/PortableServer.h"
5 #include "ace/CORBA_macros.h"
7 #if !defined (CORBA_E_MICRO)
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 namespace TAO
13 namespace Portable_Server
15 IdUniquenessPolicy::IdUniquenessPolicy (
16 ::PortableServer::IdUniquenessPolicyValue value) :
17 value_ (value)
21 CORBA::Policy_ptr
22 IdUniquenessPolicy::copy ()
24 IdUniquenessPolicy *copy = nullptr;
25 ACE_NEW_THROW_EX (copy,
26 IdUniquenessPolicy (this->value_),
27 CORBA::NO_MEMORY ());
29 return copy;
32 void
33 IdUniquenessPolicy::destroy ()
37 ::PortableServer::IdUniquenessPolicyValue
38 IdUniquenessPolicy::value ()
40 return value_;
43 CORBA::PolicyType
44 IdUniquenessPolicy::policy_type ()
46 return ::PortableServer::ID_UNIQUENESS_POLICY_ID;
49 TAO_Cached_Policy_Type
50 IdUniquenessPolicy::_tao_cached_type () const
52 return TAO_CACHED_POLICY_ID_UNIQUENESS;
55 TAO_Policy_Scope
56 IdUniquenessPolicy::_tao_scope () const
58 return TAO_POLICY_POA_SCOPE;
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #endif