OpenWalnut  1.3.1
Public Member Functions | List of all members
IsLeafVisitor Class Reference

Visitor to identify whether the given variant of type MemberType is a object or key-value pair. More...

#include <WStructuredTextParser.h>

+ Inheritance diagram for IsLeafVisitor:

Public Member Functions

bool operator() (const KeyValueType &) const
 Returns always true as it is only called for key-value pairs. More...
 
template<typename T >
bool operator() (const T &) const
 Returns always false as it is only called for objects. More...
 

Detailed Description

Visitor to identify whether the given variant of type MemberType is a object or key-value pair.

Definition at line 508 of file WStructuredTextParser.h.

Member Function Documentation

bool IsLeafVisitor::operator() ( const KeyValueType &  ) const
inline

Returns always true as it is only called for key-value pairs.

Returns
always true since it identified an key-value pair

Definition at line 516 of file WStructuredTextParser.h.

template<typename T >
bool IsLeafVisitor::operator() ( const T ) const
inline

Returns always false as it is only called for objects.

Template Parameters
Tthe type. Should be ObjectType or CommentType
Returns
always false since it identified an Object/comment

Definition at line 528 of file WStructuredTextParser.h.


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