eq::base::RefPtr< T > Class Template Reference
A smart reference pointer.
More...
#include <refPtr.h>
List of all members.
Detailed Description
template<class T>
class eq::base::RefPtr< T >
A smart reference pointer.
Relies on the held object to implement ref and unref correctly.
Definition at line 37 of file refPtr.h.
Constructor & Destructor Documentation
Construct a new, empty reference pointer.
- Version:
- 1.0
Definition at line 41 of file refPtr.h.
Construct a reference pointer from a C pointer.
- Version:
- 1.0
Definition at line 43 of file refPtr.h.
Construct a copy of a reference pointer.
- Version:
- 1.0
Definition at line 45 of file refPtr.h.
Destruct this reference pointer.
- Version:
- 1.0
Definition at line 47 of file refPtr.h.
Member Function Documentation
Assign another RefPtr to this reference pointer.
- Version:
- 1.0
Definition at line 69 of file refPtr.h.
Assign a C pointer to this reference pointer.
- Version:
- 1.0
Definition at line 82 of file refPtr.h.
- Returns:
- true if both reference pointers hold the same C pointer.
- Version:
- 1.0
Definition at line 98 of file refPtr.h.
- Returns:
- true if both reference pointer hold different C pointer.
- Version:
- 1.0
Definition at line 105 of file refPtr.h.
- Returns:
- true if the left RefPtr is smaller then the right.
- Version:
- 1.0
Definition at line 112 of file refPtr.h.
- Returns:
- true if the right RefPtr is smaller then the left.
- Version:
- 1.0
Definition at line 119 of file refPtr.h.
- Returns:
- true if the RefPtr is empty.
- Version:
- 1.0
Definition at line 123 of file refPtr.h.
- Returns:
- true if the reference pointers holds the C pointer.
- Version:
- 1.0
Definition at line 129 of file refPtr.h.
- Returns:
- true if the reference pointers does not hold the C pointer
- Version:
- 1.0
Definition at line 135 of file refPtr.h.
Access the held object.
- Version:
- 1.0
Definition at line 138 of file refPtr.h.
Access the held object.
- Version:
- 1.0
Definition at line 141 of file refPtr.h.
Access the held object.
- Version:
- 1.0
Definition at line 144 of file refPtr.h.
Access the held object.
- Version:
- 1.0
Definition at line 147 of file refPtr.h.
- Returns:
- the C pointer.
- Version:
- 1.0
Definition at line 151 of file refPtr.h.
Referenced by eq::net::Node::_connect(), eq::net::RSPConnection::acceptSync(), eq::net::Node::close(), eq::Client::connectServer(), eq::Client::disconnectServer(), eq::GLXEventHandler::dispatchAll(), eq::Config::getServer(), eq::net::RSPConnection::listen(), eq::Node::releaseFrame(), eq::net::ConnectionSet::select(), eq::Channel::setNearFar(), eq::Window::setPixelViewport(), eq::Server::shutdown(), and eq::GLXEventHandler::~GLXEventHandler().
- Returns:
- the C pointer.
- Version:
- 1.0
Definition at line 153 of file refPtr.h.
- Returns:
- true if the RefPtr holds a non-0 pointer.
- Version:
- 1.0
Definition at line 156 of file refPtr.h.
Referenced by eq::net::Node::_connect(), eq::net::MCIPConnection::acceptNB(), eq::net::MCIPConnection::acceptSync(), eq::net::Object::becomeMaster(), eq::net::RSPConnection::close(), eq::net::EventConnection::close(), eq::net::Node::connect(), eq::net::DataOStream::enable(), eq::net::Barrier::enter(), eq::net::Node::getMulticast(), eq::net::MCIPConnection::getNotifier(), eq::net::Session::notifyMapped(), eq::net::MCIPConnection::readNB(), eq::net::MCIPConnection::readSync(), eq::net::Connection::setDescription(), eq::net::VersionedSlaveCM::sync(), eq::net::Session::unmapObject(), eq::net::RSPConnection::write(), and eq::net::MCIPConnection::write().
The documentation for this class was generated from the following file: