Public Member Functions | Public Attributes

TAO_CSD_Strategy_Repository::Strategy_Node Struct Reference

Collaboration diagram for TAO_CSD_Strategy_Repository::Strategy_Node:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Strategy_Node (const ACE_CString &poa_name, CSD_Framework::Strategy_ptr strategy)
 ~Strategy_Node ()
void add_node (Strategy_Node *)
Strategy_Nodefind (const ACE_CString &name)

Public Attributes

ACE_CString poa_name_
CSD_Framework::Strategy_var strategy_
Strategy_Nodenext_

Detailed Description

Definition at line 57 of file CSD_Strategy_Repository.h.


Constructor & Destructor Documentation

TAO_CSD_Strategy_Repository::Strategy_Node::Strategy_Node ( const ACE_CString poa_name,
CSD_Framework::Strategy_ptr  strategy 
)

Definition at line 73 of file CSD_Strategy_Repository.cpp.

  : poa_name_(name),
    strategy_(CSD_Framework::Strategy::_duplicate(strat)),
    next_(0)
{
}

TAO_CSD_Strategy_Repository::Strategy_Node::~Strategy_Node (  ) 

Definition at line 81 of file CSD_Strategy_Repository.cpp.

{
  if (this->next_)
    delete this->next_;
}


Member Function Documentation

void TAO_CSD_Strategy_Repository::Strategy_Node::add_node ( Strategy_Node node  ) 

Definition at line 88 of file CSD_Strategy_Repository.cpp.

{
  if (this->next_)
    this->next_->add_node(node);
  else
    this->next_ = node;
}

TAO_CSD_Strategy_Repository::Strategy_Node * TAO_CSD_Strategy_Repository::Strategy_Node::find ( const ACE_CString name  ) 

Definition at line 97 of file CSD_Strategy_Repository.cpp.

{
  if (this->poa_name_ == name)
    return this;
  if (this->next_)
    return this->next_->find(name);
  return 0;
}


Member Data Documentation

Definition at line 66 of file CSD_Strategy_Repository.h.

Definition at line 64 of file CSD_Strategy_Repository.h.

Definition at line 65 of file CSD_Strategy_Repository.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines