
#include <nub/ref.h>
Definition at line 231 of file ref.h.
Public Member Functions | |
| soft_ref () | |
| soft_ref (nub::uid i, ref_type tp=STRONG) | |
| soft_ref (T *master, ref_type tp=STRONG, ref_vis vis=DEFAULT) | |
| template<class U> | |
| soft_ref (const soft_ref< U > &other) | |
| template<class U> | |
| soft_ref (const ref< U > &other) | |
| void | reset (T *p=0) |
| Shorthand for assignment. | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator * () const |
| T * | get_weak () const throw () |
| ref_type | get_ref_type () const throw () |
| bool | is_valid () const throw () |
| bool | is_invalid () const throw () |
| bool | operator== (const soft_ref &other) const throw () |
| bool | operator!= (const soft_ref &other) const throw () |
| bool | operator< (const soft_ref &other) const throw () |
| Comparison operator for sorting, to insert in std::map or std::set, etc. | |
| nub::uid | id () const throw () |
| T * | getWeak () const throw () |
| bool | isValid () const throw () |
| bool | isInvalid () const throw () |
|
|||||||||
|
Returns the pointee, or if throws an exception if there is not a valid pointee. Definition at line 274 of file ref.h. Referenced by MSTChannel::doInput(), JunctionChannel::doInput(), dyn_cast(), dyn_cast_weak(), MyBeoChipListener::event(), BiasImageForm::evolveBrain(), ObjRecSalBayes::evolveBrain(), BeoSubOneBal::getBallasts(), BeoSubOneBal::getFrontBallast(), BeoSubOneBal::getRearBallast(), getSalRegions(), GrabQtMainForm::init(), tcl::obj_caster::is_id_my_type(), main(), mexFunction(), modelcomponent_xx_root_object_xx_1(), BeobotVisualCortex::process(), BeoSubBallast::set(), BiasImageForm::showSMap(), and submain(). |
|
|||||||||
|
Returns the pointee, or returns null if there is not a valid pointee. Will not throw an exception. Definition at line 281 of file ref.h. Referenced by ModelComponent::getParent(). |
|
||||||||||
|
Comparison operator for sorting, to insert in std::map or std::set, etc.
|
|
||||||||||
|
Shorthand for assignment. Given ref<T> rr and T* p, then rr.reset(p) is shorthand for rr=ref<T>(p). But of course, rr.reset(p) is much less typing if T happens to be spelt SomeLongType<WithTemplateParams>. Definition at line 270 of file ref.h. Referenced by BeoSubOneBal::BeoSubOneBal(), SingleChannelBeoServer::check(), SDLdisplayStream::closeStream(), Context::Context(), getSalRegions(), GrabQtMainForm::init(), main(), TigsInputFrameSeries::paramChanged(), VisualCortexConfigurator::paramChanged(), FrameGrabberConfigurator::paramChanged(), SDLdisplayStream::SDLdisplayStream(), and SDLdisplayStream::writeFrame(). |
1.4.4