#include <tnt/scope.h>

Inheritance diagram for tnt::Scope:
cxxtools::AtomicRefCounted tnt::Sessionscope

Public Types

typedef Object::pointer_type pointer_type
typedef
container_type::const_iterator 
const_iterator
typedef container_type::iterator iterator
typedef container_type::value_type value_type

Public Member Functions

 Scope ()
virtual ~Scope ()
void lock ()
void unlock ()
bool has (const std::string &key) const
template<typename T >
T * get (const std::string &key)
template<typename T , template< class > class destroyPolicy>
void put (const std::string &key, T *o)
 Put new Object in scope.
template<typename T >
void put (const std::string &key, T *o)
template<typename T >
void put (const std::string &key, T *o, bool transferOwnership)
void erase (const std::string &key)
bool empty () const
void clear ()
const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
- Public Member Functions inherited from cxxtools::AtomicRefCounted
 AtomicRefCounted ()
 AtomicRefCounted (unsigned refs_)
virtual ~AtomicRefCounted ()
virtual atomic_t addRef ()
virtual atomic_t release ()
atomic_t refs () const

Member Typedef Documentation

typedef container_type::const_iterator tnt::Scope::const_iterator
typedef container_type::iterator tnt::Scope::iterator
typedef container_type::value_type tnt::Scope::value_type

Constructor & Destructor Documentation

tnt::Scope::Scope ( )
virtual tnt::Scope::~Scope ( )
virtual

Member Function Documentation

const_iterator tnt::Scope::begin ( ) const
inline
iterator tnt::Scope::begin ( )
inline
void tnt::Scope::clear ( )
inline
bool tnt::Scope::empty ( ) const
inline
const_iterator tnt::Scope::end ( ) const
inline
iterator tnt::Scope::end ( )
inline
void tnt::Scope::erase ( const std::string &  key)
inline
template<typename T >
T* tnt::Scope::get ( const std::string &  key)
inline
bool tnt::Scope::has ( const std::string &  key) const
inline
void tnt::Scope::lock ( )
inline
template<typename T , template< class > class destroyPolicy>
void tnt::Scope::put ( const std::string &  key,
T *  o 
)
inline

Put new Object in scope.

If key already exists, it is replaced and old Object released.

template<typename T >
void tnt::Scope::put ( const std::string &  key,
T *  o 
)
inline
template<typename T >
void tnt::Scope::put ( const std::string &  key,
T *  o,
bool  transferOwnership 
)
inline
void tnt::Scope::unlock ( )
inline

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