Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
WsNode::compareNodes Struct Reference

Compares two nodes and returns true or false depending on : If Sort order is asc in the node configuration file, return true if the lhs sort number > rhs sort number, false otherwise If there are no sort number return true if lhs.getName < rhs.getName. If the sort order is desc, the return values are inversed. More...

#include <WsNode.h>

Collaboration diagram for WsNode::compareNodes:
Collaboration graph

Public Member Functions

bool operator() (NodePtr lhs, NodePtr rhs)
 

Detailed Description

Compares two nodes and returns true or false depending on : If Sort order is asc in the node configuration file, return true if the lhs sort number > rhs sort number, false otherwise If there are no sort number return true if lhs.getName < rhs.getName. If the sort order is desc, the return values are inversed.

Returns
true or false

Definition at line 38 of file WsNode.h.

Member Function Documentation

bool WsNode::compareNodes::operator() ( NodePtr  lhs,
NodePtr  rhs 
)
inline

Definition at line 39 of file WsNode.h.


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