#include <node.h>


Public Types | |
| enum | State { STATE_STOPPED = 0, STATE_INITIALIZING, STATE_INIT_SUCCESS, STATE_INIT_FAILED, STATE_RUNNING, STATE_EXITING, STATE_EXIT_SUCCESS, STATE_EXIT_FAILED } |
Public Member Functions | |
| Node () | |
| Constructs a new Node. | |
| Node (const Node &from, Config *config) | |
| Constructs a new deep copy of a node. | |
| void | send (net::SessionPacket &packet) |
| void | send (net::SessionPacket &packet, const std::string &string) |
| template<typename T > | |
| void | send (net::SessionPacket &packet, const std::vector< T > &data) |
| void | flushSendBuffer () |
| void | addConnectionDescription (ConnectionDescriptionPtr desc) |
| Adds a new description how this node can be reached. | |
| void | removeConnectionDescription (const uint32_t index) |
| Removes a connection description. | |
| const ConnectionDescriptionVector & | getConnectionDescriptions () const |
Data Access. | |
| Config * | getConfig () const |
| Server * | getServer () const |
| net::NodePtr | getNode () const |
| void | setNode (net::NodePtr node) |
| bool | isApplicationNode () const |
| NodePath | getPath () const |
| Channel * | getChannel (const ChannelPath &path) |
| State | getState () const |
| net::CommandQueue * | getServerThreadQueue () |
| net::CommandQueue * | getCommandThreadQueue () |
| uint32_t | getFinishedFrame () const |
| void | addPipe (Pipe *pipe) |
| Adds a new pipe to this node. | |
| bool | removePipe (Pipe *pipe) |
| Removes a pipe from this node. | |
| const PipeVector & | getPipes () const |
| VisitorResult | accept (NodeVisitor &visitor) |
| Traverse this node and all children using a node visitor. | |
| VisitorResult | accept (ConstNodeVisitor &visitor) const |
| void | activate () |
| Increase node activition count. | |
| void | deactivate () |
| Decrease node activition count. | |
| bool | isActive () const |
| void | addTasks (const uint32_t tasks) |
| Add additional tasks this node might potentially execute. | |
| void | setName (const std::string &name) |
| const std::string & | getName () const |
| void | setLastDrawPipe (const Pipe *pipe) |
| The last drawing channel for this entity. | |
| const Pipe * | getLastDrawPipe () const |
Operations | |
| void | updateRunning (const uint32_t initID, const uint32_t frameNumber) |
| Update (init and exit) this node and its children as needed. | |
| bool | syncRunning () |
| Finalize the last updateRunning changes. | |
| void | update (const uint32_t frameID, const uint32_t frameNumber) |
| Trigger the rendering of a new frame for this node. | |
| void | flushFrames (const uint32_t frameNumber) |
| Flush the processing of frames, including frameNumber. | |
| void | finishFrame (const uint32_t frame) |
| Synchronize the completion of the rendering of a frame. | |
Attributes | |
| void | setIAttribute (const eq::Node::IAttribute attr, const int32_t value) |
| int32_t | getIAttribute (const eq::Node::IAttribute attr) const |
Barrier Cache | |
Caches barriers for which this node is the master. | |
| net::Barrier * | getBarrier () |
| Get a new barrier of height 0. | |
| void | releaseBarrier (net::Barrier *barrier) |
| Release a barrier server by this node. | |
Error information. | |
| const std::string & | getErrorMessage () const |
Protected Member Functions | |
| virtual void | attachToSession (const uint32_t id, const uint32_t instanceID, net::Session *session) |
Protected Attributes | |
| base::RequestHandler | _requestHandler |
| Registers request packets waiting for a return value. | |
Friends | |
| class | Config |
Definition at line 44 of file server/node.h.
| NodePath eq::server::Node::getPath | ( | ) | const |
Definition at line 142 of file server/node.cpp.
References eq::server::Config::getNodes().
Referenced by eq::server::Pipe::getPath().


| State eq::server::Node::getState | ( | ) | const [inline] |
Definition at line 86 of file server/node.h.
References eq::base::Monitor< T >::get().

| uint32_t eq::server::Node::getFinishedFrame | ( | ) | const [inline] |
Definition at line 94 of file server/node.h.
Referenced by eq::server::Config::notifyNodeFrameFinished().

| void eq::server::Node::addPipe | ( | Pipe * | pipe | ) |
Adds a new pipe to this node.
| pipe | the pipe. |
Definition at line 120 of file server/node.cpp.
References eq::server::Pipe::_node, and eq::server::Pipe::getWindows().
Referenced by eq::server::Pipe::Pipe().


| bool eq::server::Node::removePipe | ( | Pipe * | pipe | ) |
Removes a pipe from this node.
| pipe | the pipe |
true if the pipe was removed, false otherwise. Definition at line 128 of file server/node.cpp.
References eq::server::Pipe::_node, and eq::server::Pipe::getWindows().

| const PipeVector& eq::server::Node::getPipes | ( | ) | const [inline] |
Definition at line 113 of file server/node.h.
Referenced by eq::server::Pipe::getPath(), and Node().

| VisitorResult eq::server::Node::accept | ( | NodeVisitor & | visitor | ) |
Traverse this node and all children using a node visitor.
| visitor | the visitor. |
Definition at line 210 of file server/node.cpp.
| void eq::server::Node::activate | ( | ) |
Increase node activition count.
Definition at line 220 of file server/node.cpp.
References EQLOG.
Referenced by eq::server::Pipe::activate().

| void eq::server::Node::deactivate | ( | ) |
Decrease node activition count.
Definition at line 226 of file server/node.cpp.
References EQLOG.
Referenced by eq::server::Pipe::deactivate().

| bool eq::server::Node::isActive | ( | ) | const [inline] |
Definition at line 131 of file server/node.h.
Referenced by eq::server::Config::notifyNodeFrameFinished(), syncRunning(), and updateRunning().

| void eq::server::Node::addTasks | ( | const uint32_t | tasks | ) | [inline] |
Add additional tasks this node might potentially execute.
Definition at line 134 of file server/node.h.
Referenced by eq::server::Pipe::addTasks().

| void eq::server::Node::setLastDrawPipe | ( | const Pipe * | pipe | ) | [inline] |
The last drawing channel for this entity.
Definition at line 140 of file server/node.h.
Referenced by eq::server::ConfigUpdateDataVisitor::visitPost().

| void eq::server::Node::updateRunning | ( | const uint32_t | initID, | |
| const uint32_t | frameNumber | |||
| ) |
Update (init and exit) this node and its children as needed.
Definition at line 241 of file server/node.cpp.
References isActive().

| bool eq::server::Node::syncRunning | ( | ) |
Finalize the last updateRunning changes.
Definition at line 265 of file server/node.cpp.
References eq::server::Pipe::getErrorMessage(), eq::server::Pipe::getName(), isActive(), and eq::server::Pipe::syncRunning().

| void eq::server::Node::update | ( | const uint32_t | frameID, | |
| const uint32_t | frameNumber | |||
| ) |
Trigger the rendering of a new frame for this node.
| frameID | a per-frame identifier passed to all rendering methods. | |
| frameNumber | the number of the frame. |
Definition at line 386 of file server/node.cpp.
References EQLOG, EQVERB, eq::server::Pipe::isActive(), eq::LOG_TASKS, and eq::server::Pipe::update().

| void eq::server::Node::flushFrames | ( | const uint32_t | frameNumber | ) |
Flush the processing of frames, including frameNumber.
| frameNumber | the number of the frame. |
Definition at line 470 of file server/node.cpp.
References EQVERB.
| void eq::server::Node::finishFrame | ( | const uint32_t | frame | ) |
Synchronize the completion of the rendering of a frame.
| net::Barrier * eq::server::Node::getBarrier | ( | ) |
Get a new barrier of height 0.
Definition at line 500 of file server/node.cpp.
References eq::net::Session::registerObject(), eq::net::Object::setAutoObsolete(), and eq::net::Barrier::setHeight().
Referenced by eq::server::Window::joinNVSwapBarrier(), and eq::server::Window::joinSwapBarrier().


| void eq::server::Node::releaseBarrier | ( | net::Barrier * | barrier | ) |
Release a barrier server by this node.
| barrier | the barrier. |
Definition at line 518 of file server/node.cpp.
| void eq::server::Node::addConnectionDescription | ( | ConnectionDescriptionPtr | desc | ) | [inline] |
Adds a new description how this node can be reached.
| desc | the connection description. |
Definition at line 230 of file server/node.h.
Referenced by Node().

| void eq::server::Node::removeConnectionDescription | ( | const uint32_t | index | ) |
Removes a connection description.
| index | the index of the connection description. |
| const ConnectionDescriptionVector& eq::server::Node::getConnectionDescriptions | ( | ) | const [inline] |
Definition at line 241 of file server/node.h.
Referenced by Node().

| const std::string& eq::server::Node::getErrorMessage | ( | ) | const [inline] |
| void eq::server::Node::attachToSession | ( | const uint32_t | id, | |
| const uint32_t | instanceID, | |||
| net::Session * | session | |||
| ) | [protected, virtual] |
Reimplemented from eq::net::Object.
Definition at line 105 of file server/node.cpp.
References eq::net::Dispatcher::registerCommand().

0.9 by
1.5.8