YARP
Yet Another Robot Platform
yarp::os::Nodes::Private Class Reference

Public Member Functions

 Private ()
 
 ~Private ()
 
void clear ()
 
NodegetNode (const std::string &name, bool create)
 
void add (Contactable &contactable)
 
void update (Contactable &contactable)
 
void prepare (const std::string &name)
 
void remove (Contactable &contactable)
 
Contact query (const std::string &name, const std::string &category)
 
void interrupt ()
 
bool enable (bool flag)
 
Contact getParent (const std::string &name)
 
Contact getURI (const std::string &name)
 
void setActiveName (const std::string &name)
 
std::string getActiveName ()
 
bool requireActiveName ()
 
void addExternalNode (const std::string &name, Node &node)
 
void removeExternalNode (const std::string &name)
 

Public Attributes

std::map< std::string, std::pair< Node *, bool > > nodes_map
 
std::mutex mutex
 
bool active {false}
 
std::string active_name
 
Nodedummy {nullptr}
 

Detailed Description

Definition at line 17 of file Nodes.cpp.

Constructor & Destructor Documentation

◆ Private()

yarp::os::Nodes::Private::Private ( )

Definition at line 51 of file Nodes.cpp.

◆ ~Private()

yarp::os::Nodes::Private::~Private ( )

Definition at line 56 of file Nodes.cpp.

Member Function Documentation

◆ add()

void yarp::os::Nodes::Private::add ( Contactable contactable)

Definition at line 111 of file Nodes.cpp.

◆ addExternalNode()

void yarp::os::Nodes::Private::addExternalNode ( const std::string &  name,
Node node 
)

Definition at line 244 of file Nodes.cpp.

◆ clear()

void yarp::os::Nodes::Private::clear ( )

Definition at line 61 of file Nodes.cpp.

◆ enable()

bool yarp::os::Nodes::Private::enable ( bool  flag)

Definition at line 191 of file Nodes.cpp.

◆ getActiveName()

std::string yarp::os::Nodes::Private::getActiveName ( )

Definition at line 231 of file Nodes.cpp.

◆ getNode()

Node * yarp::os::Nodes::Private::getNode ( const std::string &  name,
bool  create 
)

Definition at line 83 of file Nodes.cpp.

◆ getParent()

Contact yarp::os::Nodes::Private::getParent ( const std::string &  name)

Definition at line 200 of file Nodes.cpp.

◆ getURI()

Contact yarp::os::Nodes::Private::getURI ( const std::string &  name)

Definition at line 212 of file Nodes.cpp.

◆ interrupt()

void yarp::os::Nodes::Private::interrupt ( )

Definition at line 181 of file Nodes.cpp.

◆ prepare()

void yarp::os::Nodes::Private::prepare ( const std::string &  name)

Definition at line 141 of file Nodes.cpp.

◆ query()

Contact yarp::os::Nodes::Private::query ( const std::string &  name,
const std::string &  category 
)

Definition at line 164 of file Nodes.cpp.

◆ remove()

void yarp::os::Nodes::Private::remove ( Contactable contactable)

Definition at line 153 of file Nodes.cpp.

◆ removeExternalNode()

void yarp::os::Nodes::Private::removeExternalNode ( const std::string &  name)

Definition at line 252 of file Nodes.cpp.

◆ requireActiveName()

bool yarp::os::Nodes::Private::requireActiveName ( )

Definition at line 236 of file Nodes.cpp.

◆ setActiveName()

void yarp::os::Nodes::Private::setActiveName ( const std::string &  name)

Definition at line 225 of file Nodes.cpp.

◆ update()

void yarp::os::Nodes::Private::update ( Contactable contactable)

Definition at line 126 of file Nodes.cpp.

Member Data Documentation

◆ active

bool yarp::os::Nodes::Private::active {false}

Definition at line 46 of file Nodes.cpp.

◆ active_name

std::string yarp::os::Nodes::Private::active_name

Definition at line 47 of file Nodes.cpp.

◆ dummy

Node* yarp::os::Nodes::Private::dummy {nullptr}

Definition at line 48 of file Nodes.cpp.

◆ mutex

std::mutex yarp::os::Nodes::Private::mutex

Definition at line 45 of file Nodes.cpp.

◆ nodes_map

std::map<std::string, std::pair<Node*, bool> > yarp::os::Nodes::Private::nodes_map

Definition at line 43 of file Nodes.cpp.


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