2018-06-06 11:42:26 -05:00
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=iso-8859-1" >
< title > Katabatic Documentation< / title >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "SoC.css" rel = "stylesheet" type = "text/css" >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" >
< / head >
< h1 id = "pagetop" class = "header" > Katabatic - Routing Toolbox< / h1 >
<!--
< center class = "header" >
< table class = "header" >
< tr >
< td > < a href = "customSummary.html" > Summary< / a > < / td >
< td > < a href = "namespaces.html" > Namespaces< / a > < / td >
< td > < a href = "customHierarchy.html" > Class Hierarchy< / a > < / td >
< td > < a href = "annotated.html" > Classes< / a > < / td >
< td > < a href = "functions.html" > Member Index< / a > < / td >
< / tr >
< / table >
< / center >
-->
< br >
< body onload = "javascript:toggleLevel(1)" >
2018-08-19 06:27:09 -05:00
<!-- Generated by Doxygen 1.8.5 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > Modules< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "files.html" > < span > File  List< / span > < / a > < / li >
< / ul >
< / div >
2018-06-06 11:42:26 -05:00
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "dir_68267d1309a1af8e8297ef4c3efbcdba.html" > src< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_46a5d811a0c60e95b7acaa92d73c003a.html" > katabatic< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "headertitle" >
< div class = "title" > Observer.h< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2018-08-19 06:27:09 -05:00
< div class = "fragment" > < div class = "line" > < a name = "l00001" > < / a > < span class = "lineno" > 1< / span >   < span class = "comment" > // -*- C++ -*-< / span > < / div >
< div class = "line" > < a name = "l00002" > < / a > < span class = "lineno" > 2< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00003" > < / a > < span class = "lineno" > 3< / span >   < span class = "comment" > // This file is part of the Coriolis Software.< / span > < / div >
< div class = "line" > < a name = "l00004" > < / a > < span class = "lineno" > 4< / span >   < span class = "comment" > // Copyright (c) UPMC 2008-2018, All Rights Reserved< / span > < / div >
< div class = "line" > < a name = "l00005" > < / a > < span class = "lineno" > 5< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00006" > < / a > < span class = "lineno" > 6< / span >   < span class = "comment" > // +-----------------------------------------------------------------+< / span > < / div >
< div class = "line" > < a name = "l00007" > < / a > < span class = "lineno" > 7< / span >   < span class = "comment" > // | C O R I O L I S |< / span > < / div >
< div class = "line" > < a name = "l00008" > < / a > < span class = "lineno" > 8< / span >   < span class = "comment" > // | K a t a b a t i c - Routing Toolbox |< / span > < / div >
< div class = "line" > < a name = "l00009" > < / a > < span class = "lineno" > 9< / span >   < span class = "comment" > // | |< / span > < / div >
< div class = "line" > < a name = "l00010" > < / a > < span class = "lineno" > 10< / span >   < span class = "comment" > // | Author : Jean-Paul CHAPUT |< / span > < / div >
< div class = "line" > < a name = "l00011" > < / a > < span class = "lineno" > 11< / span >   < span class = "comment" > // | E-mail : Jean-Paul.Chaput@lip6.fr |< / span > < / div >
< div class = "line" > < a name = "l00012" > < / a > < span class = "lineno" > 12< / span >   < span class = "comment" > // | =============================================================== |< / span > < / div >
< div class = "line" > < a name = "l00013" > < / a > < span class = "lineno" > 13< / span >   < span class = "comment" > // | C++ Header : " ./katabatic/Observer.h" |< / span > < / div >
< div class = "line" > < a name = "l00014" > < / a > < span class = "lineno" > 14< / span >   < span class = "comment" > // +-----------------------------------------------------------------+< / span > < / div >
< div class = "line" > < a name = "l00015" > < / a > < span class = "lineno" > 15< / span >   < / div >
< div class = "line" > < a name = "l00016" > < / a > < span class = "lineno" > 16< / span >   < / div >
< div class = "line" > < a name = "l00017" > < / a > < span class = "lineno" > 17< / span >   < span class = "preprocessor" > #ifndef KATABATIC_OBSERVER_H< / span > < / div >
< div class = "line" > < a name = "l00018" > < / a > < span class = "lineno" > 18< / span >   < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define KATABATIC_OBSERVER_H< / span > < / div >
< div class = "line" > < a name = "l00019" > < / a > < span class = "lineno" > 19< / span >   < span class = "preprocessor" > < / span > < / div >
< div class = "line" > < a name = "l00020" > < / a > < span class = "lineno" > 20< / span >   < span class = "preprocessor" > #include " hurricane/Error.h" < / span > < / div >
< div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > 21< / span >   < / div >
< div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > 22< / span >   < / div >
< div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   < span class = "keyword" > namespace < / span > Katabatic {< / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > 24< / span >   < / div >
< div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > 25< / span >   < / div >
< div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > 26< / span >   < span class = "comment" > // -------------------------------------------------------------------< / span > < / div >
< div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   < span class = "comment" > // Classes : " BaseObserver" & " Observer" .< / span > < / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   < / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1BaseObserver.html" > 29< / a > < / span >   < span class = "keyword" > class < / span > < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > {< / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   < span class = "keyword" > virtual< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f" > notify< / a > ( < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > flags );< / div >
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > 32< / span >   };< / div >
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > 33< / span >   < / div >
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > 34< / span >   < / div >
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > 35< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T> < / div >
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observer.html" > 36< / a > < / span >   < span class = "keyword" > class < / span > < a class = "code" href = "classKatabatic_1_1Observer.html" > Observer< / a > : < span class = "keyword" > public< / span > < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > {< / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > 37< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00038" > < / a > < span class = "lineno" > 38< / span >   < span class = "keyword" > inline< / span > < a class = "code" href = "classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44" > Observer< / a > ( < span class = "keyword" > const< / span > T* owner );< / div >
< div class = "line" > < a name = "l00039" > < / a > < span class = "lineno" > 39< / span >   < span class = "keyword" > inline< / span > T* < a class = "code" href = "classKatabatic_1_1Observer.html#a1515e4d637164e6589f550164c304fe1" > getOwner< / a > () < span class = "keyword" > const< / span > ;< / div >
< div class = "line" > < a name = "l00040" > < / a > < span class = "lineno" > 40< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00041" > < / a > < span class = "lineno" > 41< / span >   < a class = "code" href = "classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44" > Observer< / a > ( < span class = "keyword" > const< / span > < a class = "code" href = "classKatabatic_1_1Observer.html" > Observer< / a > & );< / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > 42< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > 43< / span >   < span class = "keyword" > static< / span > < span class = "keywordtype" > int< / span > _ownerOffset;< / div >
< div class = "line" > < a name = "l00044" > < / a > < span class = "lineno" > 44< / span >   };< / div >
< div class = "line" > < a name = "l00045" > < / a > < span class = "lineno" > 45< / span >   < / div >
< div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > 46< / span >   < / div >
< div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T> < / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > 48< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "classKatabatic_1_1Observer.html" > Observer< T> ::_ownerOffset< / a > = -1;< / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   < / div >
< div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T> < / div >
< div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44" > 51< / a > < / span >   < span class = "keyword" > inline< / span > < a class = "code" href = "classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44" > Observer< T> ::Observer< / a > ( < span class = "keyword" > const< / span > T* owner )< / div >
< div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   : < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > ()< / div >
< div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   {< / div >
< div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / span >   < span class = "keywordflow" > if< / span > (owner == NULL)< / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > 55< / span >   < span class = "keywordflow" > throw< / span > < a class = "codeRef" doxygen = "/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href = "../hurricane/classHurricane_1_1Error.html" > Hurricane::Error< / a > ( < span class = "stringliteral" > " Observer::Observer(), attempt to create with NULL owner." < / span > );< / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > 56< / span >   < / div >
< div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > 57< / span >   < span class = "keywordflow" > if< / span > (_ownerOffset < 0)< / div >
< div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > 58< / span >   _ownerOffset = (< span class = "keywordtype" > unsigned< / span > long)< span class = "keyword" > this< / span > - (< span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > long< / span > )owner;< / div >
< div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   }< / div >
< div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > 60< / span >   < / div >
< div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   < / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T> < / div >
< div class = "line" > < a name = "l00063" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observer.html#a1515e4d637164e6589f550164c304fe1" > 63< / a > < / span >   < span class = "keyword" > inline< / span > T* < a class = "code" href = "classKatabatic_1_1Observer.html#a1515e4d637164e6589f550164c304fe1" > Observer< T> ::getOwner< / a > ()< span class = "keyword" > const < / span > { < span class = "keywordflow" > return< / span > < span class = "keyword" > reinterpret_cast< < / span > T*< span class = "keyword" > > < / span > ((< span class = "keywordtype" > unsigned< / span > long)< span class = "keyword" > this< / span > - _ownerOffset); }< / div >
< div class = "line" > < a name = "l00064" > < / a > < span class = "lineno" > 64< / span >   < / div >
< div class = "line" > < a name = "l00065" > < / a > < span class = "lineno" > 65< / span >   < / div >
< div class = "line" > < a name = "l00066" > < / a > < span class = "lineno" > 66< / span >   < span class = "comment" > // -------------------------------------------------------------------< / span > < / div >
< div class = "line" > < a name = "l00067" > < / a > < span class = "lineno" > 67< / span >   < span class = "comment" > // Class : " Observable" .< / span > < / div >
< div class = "line" > < a name = "l00068" > < / a > < span class = "lineno" > 68< / span >   < / div >
< div class = "line" > < a name = "l00069" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html" > 69< / a > < / span >   < span class = "keyword" > class < / span > < a class = "code" href = "classKatabatic_1_1Observable.html" > Observable< / a > {< / div >
< div class = "line" > < a name = "l00070" > < / a > < span class = "lineno" > 70< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00071" > < / a > < span class = "lineno" > 71< / span >   < span class = "keyword" > inline< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4" > Observable< / a > ();< / div >
< div class = "line" > < a name = "l00072" > < / a > < span class = "lineno" > 72< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T > < / div >
< div class = "line" > < a name = "l00073" > < / a > < span class = "lineno" > 73< / span >   < span class = "keyword" > inline< / span > T* < a class = "code" href = "classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a" > getObserver< / a > ();< / div >
< div class = "line" > < a name = "l00074" > < / a > < span class = "lineno" > 74< / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767" > addObserver< / a > ( < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > * );< / div >
< div class = "line" > < a name = "l00075" > < / a > < span class = "lineno" > 75< / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43" > removeObserver< / a > ( < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > * );< / div >
< div class = "line" > < a name = "l00076" > < / a > < span class = "lineno" > 76< / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f" > notify< / a > ( < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > flags );< / div >
< div class = "line" > < a name = "l00077" > < / a > < span class = "lineno" > 77< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00078" > < / a > < span class = "lineno" > 78< / span >   < a class = "code" href = "classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4" > Observable< / a > ( < span class = "keyword" > const< / span > < a class = "code" href = "classKatabatic_1_1Observable.html" > Observable< / a > & );< / div >
< div class = "line" > < a name = "l00079" > < / a > < span class = "lineno" > 79< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00080" > < / a > < span class = "lineno" > 80< / span >   < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > * _observer;< / div >
< div class = "line" > < a name = "l00081" > < / a > < span class = "lineno" > 81< / span >   };< / div >
< div class = "line" > < a name = "l00082" > < / a > < span class = "lineno" > 82< / span >   < / div >
< div class = "line" > < a name = "l00083" > < / a > < span class = "lineno" > 83< / span >   < / div >
< div class = "line" > < a name = "l00084" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4" > 84< / a > < / span >   < span class = "keyword" > inline< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4" > Observable::Observable< / a > ()< / div >
< div class = "line" > < a name = "l00085" > < / a > < span class = "lineno" > 85< / span >   : _observer(NULL)< / div >
< div class = "line" > < a name = "l00086" > < / a > < span class = "lineno" > 86< / span >   { }< / div >
< div class = "line" > < a name = "l00087" > < / a > < span class = "lineno" > 87< / span >   < / div >
< div class = "line" > < a name = "l00088" > < / a > < span class = "lineno" > 88< / span >   < / div >
< div class = "line" > < a name = "l00089" > < / a > < span class = "lineno" > 89< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T > < / div >
< div class = "line" > < a name = "l00090" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a" > 90< / a > < / span >   T* < a class = "code" href = "classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a" > Observable::getObserver< / a > ()< / div >
< div class = "line" > < a name = "l00091" > < / a > < span class = "lineno" > 91< / span >   {< / div >
< div class = "line" > < a name = "l00092" > < / a > < span class = "lineno" > 92< / span >   < span class = "keywordflow" > if< / span > (_observer) < span class = "keywordflow" > return< / span > (< span class = "keyword" > dynamic_cast< < / span > < a class = "code" href = "classKatabatic_1_1Observer.html" > Observer< T> < / a > * < span class = "keyword" > > < / span > ( _observer ))-> getOwner();< / div >
< div class = "line" > < a name = "l00093" > < / a > < span class = "lineno" > 93< / span >   < span class = "keywordflow" > return< / span > NULL;< / div >
< div class = "line" > < a name = "l00094" > < / a > < span class = "lineno" > 94< / span >   }< / div >
< div class = "line" > < a name = "l00095" > < / a > < span class = "lineno" > 95< / span >   < / div >
< div class = "line" > < a name = "l00096" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767" > 96< / a > < / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767" > Observable::addObserver< / a > ( < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > * observer )< / div >
< div class = "line" > < a name = "l00097" > < / a > < span class = "lineno" > 97< / span >   {< / div >
< div class = "line" > < a name = "l00098" > < / a > < span class = "lineno" > 98< / span >   < span class = "keywordflow" > if< / span > (_observer)< / div >
< div class = "line" > < a name = "l00099" > < / a > < span class = "lineno" > 99< / span >   < span class = "keywordflow" > throw< / span > < a class = "codeRef" doxygen = "/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href = "../hurricane/classHurricane_1_1Error.html" > Hurricane::Error< / a > ( < span class = "stringliteral" > " Observable::addObserver(), trying to add a second observer which is unsupported." < / span > );< / div >
< div class = "line" > < a name = "l00100" > < / a > < span class = "lineno" > 100< / span >   _observer = observer;< / div >
< div class = "line" > < a name = "l00101" > < / a > < span class = "lineno" > 101< / span >   }< / div >
< div class = "line" > < a name = "l00102" > < / a > < span class = "lineno" > 102< / span >   < / div >
< div class = "line" > < a name = "l00103" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43" > 103< / a > < / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43" > Observable::removeObserver< / a > ( < a class = "code" href = "classKatabatic_1_1BaseObserver.html" > BaseObserver< / a > * observer )< / div >
< div class = "line" > < a name = "l00104" > < / a > < span class = "lineno" > 104< / span >   {< / div >
< div class = "line" > < a name = "l00105" > < / a > < span class = "lineno" > 105< / span >   < span class = "keywordflow" > if< / span > (_observer != observer)< / div >
< div class = "line" > < a name = "l00106" > < / a > < span class = "lineno" > 106< / span >   < span class = "keywordflow" > throw< / span > < a class = "codeRef" doxygen = "/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href = "../hurricane/classHurricane_1_1Error.html" > Hurricane::Error< / a > ( < span class = "stringliteral" > " Observable::removeObserver(), trying to remove wrong observer." < / span > );< / div >
< div class = "line" > < a name = "l00107" > < / a > < span class = "lineno" > 107< / span >   _observer = NULL;< / div >
< div class = "line" > < a name = "l00108" > < / a > < span class = "lineno" > 108< / span >   }< / div >
< div class = "line" > < a name = "l00109" > < / a > < span class = "lineno" > 109< / span >   < / div >
< div class = "line" > < a name = "l00110" > < / a > < span class = "lineno" > 110< / span >   < / div >
< div class = "line" > < a name = "l00111" > < / a > < span class = "lineno" > < a class = "line" href = "classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f" > 111< / a > < / span >   < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f" > Observable::notify< / a > ( < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > flags )< / div >
< div class = "line" > < a name = "l00112" > < / a > < span class = "lineno" > 112< / span >   {< / div >
< div class = "line" > < a name = "l00113" > < / a > < span class = "lineno" > 113< / span >   < span class = "keywordflow" > if< / span > (_observer) _observer-> < a class = "code" href = "classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f" > notify< / a > ( flags );< / div >
< div class = "line" > < a name = "l00114" > < / a > < span class = "lineno" > 114< / span >   }< / div >
< div class = "line" > < a name = "l00115" > < / a > < span class = "lineno" > 115< / span >   < / div >
< div class = "line" > < a name = "l00116" > < / a > < span class = "lineno" > 116< / span >   < / div >
< div class = "line" > < a name = "l00117" > < / a > < span class = "lineno" > 117< / span >   } < span class = "comment" > // Katabatic namespace.< / span > < / div >
< div class = "line" > < a name = "l00118" > < / a > < span class = "lineno" > 118< / span >   < / div >
< div class = "line" > < a name = "l00119" > < / a > < span class = "lineno" > 119< / span >   < span class = "preprocessor" > #endif< / span > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html_acaa5a7fc7fa631e3006a42006d753f43" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43" > Katabatic::Observable::removeObserver< / a > < / div > < div class = "ttdeci" > void removeObserver(BaseObserver *)< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:103< / div > < / div >
2018-06-06 11:42:26 -05:00
< div class = "ttc" id = "classKatabatic_1_1BaseObserver_html_a52e577fb0c4f2e3650928334fb621c2f" > < div class = "ttname" > < a href = "classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f" > Katabatic::BaseObserver::notify< / a > < / div > < div class = "ttdeci" > virtual void notify(unsigned int flags)< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.cpp:26< / div > < / div >
2018-08-19 06:27:09 -05:00
< div class = "ttc" id = "classKatabatic_1_1Observer_html_a1515e4d637164e6589f550164c304fe1" > < div class = "ttname" > < a href = "classKatabatic_1_1Observer.html#a1515e4d637164e6589f550164c304fe1" > Katabatic::Observer::getOwner< / a > < / div > < div class = "ttdeci" > T * getOwner() const < / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:63< / div > < / div >
2018-06-06 11:42:26 -05:00
< div class = "ttc" id = "classHurricane_1_1Error_html" > < div class = "ttname" > < a href = "../hurricane/classHurricane_1_1Error.html" > Hurricane::Error< / a > < / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html" > Katabatic::Observable< / a > < / div > < div class = "ttdoc" > Observer Design Pattern, Subject part. < / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:69< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html_a6438e92e07db169a97ed3eba36788dc4" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4" > Katabatic::Observable::Observable< / a > < / div > < div class = "ttdeci" > Observable()< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:84< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observer_html_ab05ec12517c51952960dd4f324499b44" > < div class = "ttname" > < a href = "classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44" > Katabatic::Observer::Observer< / a > < / div > < div class = "ttdeci" > Observer(const T *owner)< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:51< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html_a52e577fb0c4f2e3650928334fb621c2f" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f" > Katabatic::Observable::notify< / a > < / div > < div class = "ttdeci" > void notify(unsigned int flags)< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:111< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html_a783fda85eeabe9c660881f236f162767" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767" > Katabatic::Observable::addObserver< / a > < / div > < div class = "ttdeci" > void addObserver(BaseObserver *)< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:96< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1BaseObserver_html" > < div class = "ttname" > < a href = "classKatabatic_1_1BaseObserver.html" > Katabatic::BaseObserver< / a > < / div > < div class = "ttdoc" > Observer Design Pattern, Observer part. < / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:29< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observer_html" > < div class = "ttname" > < a href = "classKatabatic_1_1Observer.html" > Katabatic::Observer< / a > < / div > < div class = "ttdoc" > Observer Design Pattern, Observer part. < / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:36< / div > < / div >
< div class = "ttc" id = "classKatabatic_1_1Observable_html_acc0b7276e09628f2b101ecf751aacd2a" > < div class = "ttname" > < a href = "classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a" > Katabatic::Observable::getObserver< / a > < / div > < div class = "ttdeci" > T * getObserver()< / div > < div class = "ttdef" > < b > Definition:< / b > Observer.h:90< / div > < / div >
< / div > <!-- fragment --> < / div > <!-- contents -->
< br >
< hr >
< table class = "footer1" >
< tr >
2018-08-19 06:27:09 -05:00
< td class = "LFooter" > < small > Generated by doxygen 1.8.5 on Sat Aug 18 2018< / small > < / td >
2018-06-06 11:42:26 -05:00
< td class = "RFooter" > < a href = '#pagetop' > < small > Return to top of page< / small > < / a > < / td >
< / tr >
< / table >
< table class = "footer2" >
< tr >
< td class = "LFooter" > Katabatic - Routing Toolbox< / td >
< td class = "RFooter" > < small > Copyright © 2008-2016 UPMC. All rights reserved< / small > < / td >
< / tr >
< / table >
< / body >
< / html >