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 20 of file Nodes.cpp.

Constructor & Destructor Documentation

◆ Private()

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

Definition at line 54 of file Nodes.cpp.

◆ ~Private()

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

Definition at line 59 of file Nodes.cpp.

Member Function Documentation

◆ add()

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

Definition at line 114 of file Nodes.cpp.

◆ addExternalNode()

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

Definition at line 247 of file Nodes.cpp.

◆ clear()

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

Definition at line 64 of file Nodes.cpp.

◆ enable()

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

Definition at line 194 of file Nodes.cpp.

◆ getActiveName()

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

Definition at line 234 of file Nodes.cpp.

◆ getNode()

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

Definition at line 86 of file Nodes.cpp.

◆ getParent()

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

Definition at line 203 of file Nodes.cpp.

◆ getURI()

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

Definition at line 215 of file Nodes.cpp.

◆ interrupt()

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

Definition at line 184 of file Nodes.cpp.

◆ prepare()

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

Definition at line 144 of file Nodes.cpp.

◆ query()

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

Definition at line 167 of file Nodes.cpp.

◆ remove()

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

Definition at line 156 of file Nodes.cpp.

◆ removeExternalNode()

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

Definition at line 255 of file Nodes.cpp.

◆ requireActiveName()

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

Definition at line 239 of file Nodes.cpp.

◆ setActiveName()

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

Definition at line 228 of file Nodes.cpp.

◆ update()

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

Definition at line 129 of file Nodes.cpp.

Member Data Documentation

◆ active

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

Definition at line 49 of file Nodes.cpp.

◆ active_name

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

Definition at line 50 of file Nodes.cpp.

◆ dummy

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

Definition at line 51 of file Nodes.cpp.

◆ mutex

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

Definition at line 48 of file Nodes.cpp.

◆ nodes_map

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

Definition at line 46 of file Nodes.cpp.


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