PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::NodeFactory Class Reference

#include <NodeFactory.h>

Public Member Functions

std::shared_ptr< NodePageaddPage (std::string name, std::string icon)
 
bool hasPage (std::string name)
 
std::map< std::string, std::shared_ptr< NodePage > > & nodePages ()
 

Static Public Member Functions

static NodeFactoryinstance ()
 

Private Member Functions

 NodeFactory ()=default
 
 ~NodeFactory ()=default
 
 NodeFactory (const NodeFactory &)=delete
 
NodeFactoryoperator= (const NodeFactory &)=delete
 

Private Attributes

std::map< std::string, std::shared_ptr< NodePage > > mPages
 

Static Private Attributes

static std::atomic< NodeFactory * > pInstance
 
static std::mutex mMutex
 

Detailed Description

Definition at line 97 of file NodeFactory.h.

Constructor & Destructor Documentation

◆ NodeFactory() [1/2]

dyno::NodeFactory::NodeFactory ( )
privatedefault
Here is the caller graph for this function:

◆ ~NodeFactory()

dyno::NodeFactory::~NodeFactory ( )
privatedefault

◆ NodeFactory() [2/2]

dyno::NodeFactory::NodeFactory ( const NodeFactory & )
privatedelete
Here is the call graph for this function:

Member Function Documentation

◆ addPage()

std::shared_ptr< NodePage > dyno::NodeFactory::addPage ( std::string name,
std::string icon )

Definition at line 54 of file NodeFactory.cpp.

Here is the caller graph for this function:

◆ hasPage()

bool dyno::NodeFactory::hasPage ( std::string name)

Definition at line 49 of file NodeFactory.cpp.

◆ instance()

NodeFactory * dyno::NodeFactory::instance ( )
static

Definition at line 9 of file NodeFactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nodePages()

std::map< std::string, std::shared_ptr< NodePage > > & dyno::NodeFactory::nodePages ( )
inline

Definition at line 106 of file NodeFactory.h.

Here is the caller graph for this function:

◆ operator=()

NodeFactory & dyno::NodeFactory::operator= ( const NodeFactory & )
privatedelete
Here is the call graph for this function:

Member Data Documentation

◆ mMutex

std::mutex dyno::NodeFactory::mMutex
staticprivate

Definition at line 118 of file NodeFactory.h.

◆ mPages

std::map<std::string, std::shared_ptr<NodePage> > dyno::NodeFactory::mPages
private

Definition at line 120 of file NodeFactory.h.

◆ pInstance

std::atomic< NodeFactory * > dyno::NodeFactory::pInstance
staticprivate

Definition at line 117 of file NodeFactory.h.


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