proxygen
Transformer< It, tag > Class Template Reference
Inheritance diagram for Transformer< It, tag >:

Public Member Functions

 Transformer (const It &it)
 
iterator_traits< It >::value_type & dereference () const
 

Private Attributes

shared_ptr< set< It > > dereferenced
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename It, class tag>
class Transformer< It, tag >

Definition at line 1593 of file StlVectorTest.cpp.

Constructor & Destructor Documentation

template<typename It , class tag >
Transformer< It, tag >::Transformer ( const It &  it)
inlineexplicit

Definition at line 1602 of file StlVectorTest.cpp.

1603  : Transformer::iterator_adaptor_(it), dereferenced(new set<It>()) {}
shared_ptr< set< It > > dereferenced

Member Function Documentation

template<typename It , class tag >
iterator_traits<It>::value_type& Transformer< It, tag >::dereference ( ) const
inline

Definition at line 1605 of file StlVectorTest.cpp.

1605  {
1606  if (dereferenced->find(this->base_reference()) != dereferenced->end()) {
1607  cerr << "iterator dereferenced more than once" << endl;
1608  exit(1);
1609  }
1610  dereferenced->insert(this->base_reference());
1611  return *this->base_reference();
1612  }
shared_ptr< set< It > > dereferenced

Friends And Related Function Documentation

template<typename It , class tag >
friend class boost::iterator_core_access
friend

Definition at line 1598 of file StlVectorTest.cpp.

Member Data Documentation

template<typename It , class tag >
shared_ptr<set<It> > Transformer< It, tag >::dereferenced
private

Definition at line 1599 of file StlVectorTest.cpp.


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