torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::IndexFinder< _Base, _Derived > Struct Template Reference

#include <InternalUtilityFunctions.hpp>

+ Inheritance diagram for torc::generic::IndexFinder< _Base, _Derived >:
+ Collaboration diagram for torc::generic::IndexFinder< _Base, _Derived >:

Public Member Functions

std::vector< size_t > operator() (const boost::shared_ptr< _Base > &inPtr)
 
void visit (_Derived &inObj) throw (Error)
 
 IndexFinder ()
 
 ~IndexFinder () throw ()
 

Data Fields

std::vector< size_t > mIndices
 

Detailed Description

template<typename _Base, typename _Derived>
struct torc::generic::IndexFinder< _Base, _Derived >

Definition at line 73 of file InternalUtilityFunctions.hpp.

Constructor & Destructor Documentation

template<typename _Base , typename _Derived >
torc::generic::IndexFinder< _Base, _Derived >::IndexFinder ( )
inline

Definition at line 88 of file InternalUtilityFunctions.hpp.

88  : _Derived::Visitor(), mIndices() {
89  }
template<typename _Base , typename _Derived >
torc::generic::IndexFinder< _Base, _Derived >::~IndexFinder ( )
throw (
)
inline

Definition at line 90 of file InternalUtilityFunctions.hpp.

90  {
91  }

Member Function Documentation

template<typename _Base , typename _Derived >
std::vector<size_t> torc::generic::IndexFinder< _Base, _Derived >::operator() ( const boost::shared_ptr< _Base > &  inPtr)
inline

Definition at line 74 of file InternalUtilityFunctions.hpp.

74  {
75  inPtr->accept(*this);
76  return mIndices;
77  }
template<typename _Base , typename _Derived >
void torc::generic::IndexFinder< _Base, _Derived >::visit ( _Derived &  inObj)
throw (Error
)
inline

Definition at line 79 of file InternalUtilityFunctions.hpp.

79  {
80  try {
81  mIndices = inObj.getIndices();
82  } catch(Error& e) {
83  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
84  throw;
85  }
86  }

+ Here is the call graph for this function:

Field Documentation

template<typename _Base , typename _Derived >
std::vector<size_t> torc::generic::IndexFinder< _Base, _Derived >::mIndices

Definition at line 93 of file InternalUtilityFunctions.hpp.


The documentation for this struct was generated from the following file: