Rosetta  2019.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
ObjexxFCL::internal::ObserverGraph Class Reference

ObserverGraph: Observer Graph Representation. More...

#include <ObserverGraph.hh>

Public Types

typedef std::size_t size_type
 
typedef std::size_t Size
 
typedef std::map< Observer
*, size_type
Graph
 
typedef std::vector
< Graph::iterator > 
Sources
 

Public Member Functions

 ObserverGraph (Subject const &s)
 Subject Constructor. More...
 
 ~ObserverGraph ()
 Destructor. More...
 
bool empty () const
 Empty? More...
 
bool push (Subject const &s_root, Subject const &s)
 Push a Subject's Transitive Observers onto Graph and Return Acyclicity. More...
 
Observerpop ()
 Pop a Source Observer from Graph. More...
 

Private Attributes

Graph graph_
 Graph representation. More...
 
Sources sources_
 Source Observers with in-degree == zero. More...
 

Detailed Description

ObserverGraph: Observer Graph Representation.

Member Typedef Documentation

typedef std::vector< Graph::iterator > ObjexxFCL::internal::ObserverGraph::Sources

Constructor & Destructor Documentation

ObjexxFCL::internal::ObserverGraph::ObserverGraph ( Subject const &  s)
ObjexxFCL::internal::ObserverGraph::~ObserverGraph ( )
inline

Destructor.

Member Function Documentation

bool ObjexxFCL::internal::ObserverGraph::empty ( ) const
inline

Empty?

References graph_.

Referenced by ObjexxFCL::internal::ObserverMediator::notify().

Observer * ObjexxFCL::internal::ObserverGraph::pop ( )

Pop a Source Observer from Graph.

References graph_, and sources_.

Referenced by ObjexxFCL::internal::ObserverMediator::notify().

bool ObjexxFCL::internal::ObserverGraph::push ( Subject const &  s_root,
Subject const &  s 
)

Push a Subject's Transitive Observers onto Graph and Return Acyclicity.

References graph_.

Referenced by ObserverGraph().

Member Data Documentation

Graph ObjexxFCL::internal::ObserverGraph::graph_
private

Graph representation.

Referenced by empty(), ObserverGraph(), pop(), and push().

Sources ObjexxFCL::internal::ObserverGraph::sources_
private

Source Observers with in-degree == zero.

Referenced by ObserverGraph(), and pop().


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