TAO_Notify_PropertyBase_T< TYPE > Class Template Reference

#include <Property_T.h>

Inheritance diagram for TAO_Notify_PropertyBase_T< TYPE >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_PropertyBase_T< TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_PropertyBase_T (const char *name, const TYPE &initial)
 Constuctor.

 TAO_Notify_PropertyBase_T (const char *name)
 Constuctor.

 TAO_Notify_PropertyBase_T (const TAO_Notify_PropertyBase_T &rhs)
 Copy Constuctor.

 ~TAO_Notify_PropertyBase_T ()
 Destructor.

bool operator== (const TYPE &rhs) const
 Equality comparison operator.

bool operator!= (const TYPE &rhs) const
 Inequality comparison operator.

void get (CosNotification::PropertySeq &prop_seq)
 Populate the Property Sequence with this valid value.

void assign (const TYPE &value)
const TYPE & value (void) const
 Return the value.

const char * name (void) const
 Return the name.

CORBA::Boolean is_valid (void) const
 Is the current value valid.

void invalidate (void)
 Invalidate this property's value.


Protected Attributes

const char * name_
 The Property name.

TYPE value_
 The value.

CORBA::Boolean valid_
 Is the value valid.

template<class TYPE>
class TAO_Notify_PropertyBase_T< TYPE >


Constructor & Destructor Documentation

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T const char *  name,
const TYPE &  initial
 

Constuctor.

Definition at line 29 of file Property_T.cpp.

00030   : name_ (name), value_ (initial), valid_ (1)
00031 {
00032 }

template<class TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T const char *  name  ) 
 

Constuctor.

Definition at line 23 of file Property_T.cpp.

00024   : name_ (name), valid_(0)
00025 {
00026 }

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T const TAO_Notify_PropertyBase_T< TYPE > &  rhs  ) 
 

Copy Constuctor.

Definition at line 35 of file Property_T.cpp.

00037   : name_ (rhs.name_),
00038     value_ (rhs.value_),
00039     valid_ (rhs.valid_)
00040 {
00041 
00042 }

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::~TAO_Notify_PropertyBase_T  ) 
 

Destructor.

Definition at line 45 of file Property_T.cpp.

00046 {
00047 }


Member Function Documentation

template<class TYPE>
ACE_INLINE void TAO_Notify_PropertyBase_T< TYPE >::assign const TYPE &  value  ) 
 

Definition at line 46 of file Property_T.inl.

Referenced by TAO_Notify::NVPList::load().

00047 {
00048   this->value_ = value;
00049   this->valid_ = 1;
00050 }

template<class TYPE>
void TAO_Notify_PropertyBase_T< TYPE >::get CosNotification::PropertySeq prop_seq  ) 
 

Populate the Property Sequence with this valid value.

Make space

Definition at line 50 of file Property_T.cpp.

References CosNotification::PropertySeq.

00051 {
00052   /// Make space
00053   prop_seq.length (prop_seq.length () + 1);
00054 
00055   prop_seq[prop_seq.length () - 1].value <<= this->value_;
00056 }

template<class TYPE>
ACE_INLINE void TAO_Notify_PropertyBase_T< TYPE >::invalidate void   ) 
 

Invalidate this property's value.

Definition at line 39 of file Property_T.inl.

00040 {
00041   this->valid_ = 0;
00042 }

template<class TYPE>
ACE_INLINE CORBA::Boolean TAO_Notify_PropertyBase_T< TYPE >::is_valid void   )  const
 

Is the current value valid.

Definition at line 21 of file Property_T.inl.

Referenced by TAO_Notify_Buffering_Strategy::discard(), TAO_Notify_SequencePushConsumer::dispatch_from_queue(), TAO_Notify_Buffering_Strategy::enqueue(), TAO_Notify_SequencePushConsumer::enqueue_if_necessary(), TAO_Notify_QoSProperties::init(), TAO_Notify_Method_Request_Queueable::init(), TAO_Notify_AdminProperties::init(), TAO_Notify::Topology_Object::is_persistent(), TAO_Notify_Buffering_Strategy::queue(), and TAO_Notify_Consumer::schedule_timer().

00022 {
00023   return this->valid_;
00024 }

template<class TYPE>
ACE_INLINE const char * TAO_Notify_PropertyBase_T< TYPE >::name void   )  const
 

Return the name.

Definition at line 15 of file Property_T.inl.

Referenced by TAO_Notify::NVPList::load().

00016 {
00017   return this->name_;
00018 }

template<class TYPE>
ACE_INLINE bool TAO_Notify_PropertyBase_T< TYPE >::operator!= const TYPE &  rhs  )  const
 

Inequality comparison operator.

Definition at line 33 of file Property_T.inl.

00034 {
00035   return (this->value_ != rhs);
00036 }

template<class TYPE>
ACE_INLINE bool TAO_Notify_PropertyBase_T< TYPE >::operator== const TYPE &  rhs  )  const
 

Equality comparison operator.

Definition at line 27 of file Property_T.inl.

00028 {
00029   return (this->value_ == rhs);
00030 }

template<class TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE const TYPE & TAO_Notify_PropertyBase_T< TYPE >::value void   )  const
 

Return the value.

Definition at line 8 of file Property_T.inl.

Referenced by TAO_Notify_ProxySupplier::connect(), TAO_Notify_ProxyConsumer::connect(), TAO_Notify_SequencePushConsumer::dispatch_from_queue(), TAO_Notify_Buffering_Strategy::enqueue(), TAO_Notify_SequencePushConsumer::enqueue_if_necessary(), TAO_Notify_QoSProperties::init(), TAO_Notify_Method_Request_Queueable::init(), TAO_Notify_AdminProperties::init(), TAO_Notify::Topology_Object::is_persistent(), TAO_Notify::NVP::NVP(), TAO_Notify_Buffering_Strategy::queue(), and TAO_Notify_AdminProperties::queue_full().

00009 {
00010   return this->value_;
00011 }


Member Data Documentation

template<class TYPE>
const char* TAO_Notify_PropertyBase_T< TYPE >::name_ [protected]
 

The Property name.

Definition at line 78 of file Property_T.h.

template<class TYPE>
CORBA::Boolean TAO_Notify_PropertyBase_T< TYPE >::valid_ [protected]
 

Is the value valid.

Definition at line 84 of file Property_T.h.

template<class TYPE>
TYPE TAO_Notify_PropertyBase_T< TYPE >::value_ [protected]
 

The value.

Definition at line 81 of file Property_T.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:32:34 2006 for TAO_CosNotification by doxygen 1.3.6