torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Linker::UnresolvedInstances Class Reference

#include <Linker.hpp>

Public Member Functions

const ViewSharedPtr getExternView () const
 
void setExternView (const ViewSharedPtr &inValue)
 
void addInstance (const InstanceSharedPtr &inInstance)
 
const std::vector
< InstanceSharedPtr > & 
getInstances () const
 
void setInstances (const std::vector< InstanceSharedPtr > &value)
 
template<typename _Tp >
void applyActionOnInstances (const _Tp &action)
 
 UnresolvedInstances ()
 
 ~UnresolvedInstances () throw ()
 
 UnresolvedInstances (const UnresolvedInstances &inSource)
 
UnresolvedInstancesoperator= (const UnresolvedInstances &inSource)
 

Private Attributes

ViewSharedPtr mExternView
 
std::vector< InstanceSharedPtrmInstances
 

Detailed Description

Represents a collection of instances that are connected to an extern.

Definition at line 93 of file Linker.hpp.

Constructor & Destructor Documentation

torc::generic::Linker::UnresolvedInstances::UnresolvedInstances ( )

Definition at line 119 of file Linker.cpp.

120  :mExternView(),
121  mInstances() {}
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128
torc::generic::Linker::UnresolvedInstances::~UnresolvedInstances ( )
throw (
)

Definition at line 123 of file Linker.cpp.

123 {}
torc::generic::Linker::UnresolvedInstances::UnresolvedInstances ( const UnresolvedInstances inSource)

Definition at line 125 of file Linker.cpp.

127  :mExternView(inSource.mExternView),
128  mInstances(inSource.mInstances) {}
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128

Member Function Documentation

void torc::generic::Linker::UnresolvedInstances::addInstance ( const InstanceSharedPtr inInstance)

Definition at line 107 of file Linker.cpp.

108  {
109  mInstances.push_back(inInstance);
110 }
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128
template<typename _Tp >
void torc::generic::Linker::UnresolvedInstances::applyActionOnInstances ( const _Tp &  action)
inline

Definition at line 105 of file Linker.hpp.

105  {
106  std::vector<InstanceSharedPtr>::iterator first = mInstances.begin();
107  std::vector<InstanceSharedPtr>::iterator last = mInstances.end();
108  for(; first != last; ++first) {
109  try {
110  action(*first);
111  } catch(Error& e) {
112  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
113  throw;
114  }
115  }
116  }
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128

+ Here is the call graph for this function:

const ViewSharedPtr torc::generic::Linker::UnresolvedInstances::getExternView ( ) const
inline

Definition at line 230 of file Linker.hpp.

230  {
231  return mExternView;
232 }
const std::vector< InstanceSharedPtr > & torc::generic::Linker::UnresolvedInstances::getInstances ( ) const
inline

Definition at line 234 of file Linker.hpp.

234  {
235  return mInstances;
236 }
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128
Linker::UnresolvedInstances & torc::generic::Linker::UnresolvedInstances::operator= ( const UnresolvedInstances inSource)

Definition at line 131 of file Linker.cpp.

132  {
133  if(this != &inSource)
134  {
135  mExternView = inSource.mExternView;
136  mInstances = inSource.mInstances;
137  }
138  return *this;
139 }
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128
void torc::generic::Linker::UnresolvedInstances::setExternView ( const ViewSharedPtr inValue)

Definition at line 101 of file Linker.cpp.

102  {
103  mExternView = inValue;
104 }
void torc::generic::Linker::UnresolvedInstances::setInstances ( const std::vector< InstanceSharedPtr > &  value)

Definition at line 113 of file Linker.cpp.

115  {
116  mInstances = inValue;
117 }
std::vector< InstanceSharedPtr > mInstances
Definition: Linker.hpp:128

Field Documentation

ViewSharedPtr torc::generic::Linker::UnresolvedInstances::mExternView
private

Definition at line 127 of file Linker.hpp.

std::vector<InstanceSharedPtr> torc::generic::Linker::UnresolvedInstances::mInstances
private

Definition at line 128 of file Linker.hpp.


The documentation for this class was generated from the following files: